Lines Matching refs:user_key
76 static bool vmw_shader_id_ok(u32 user_key, SVGA3dShaderType shader_type);
77 static u32 vmw_shader_key(u32 user_key, SVGA3dShaderType shader_type);
583 u32 user_key, in vmw_dx_shader_add() argument
592 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_dx_shader_add()
604 shader->id = user_key; in vmw_dx_shader_add()
617 vmw_shader_key(user_key, 0), in vmw_dx_shader_add()
822 static bool vmw_shader_id_ok(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_id_ok() argument
824 return user_key <= ((1 << 20) - 1) && (unsigned) shader_type < 16; in vmw_shader_id_ok()
836 static u32 vmw_shader_key(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_key() argument
838 return user_key | (shader_type << 20); in vmw_shader_key()
851 u32 user_key, SVGA3dShaderType shader_type, in vmw_shader_remove() argument
856 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_remove()
860 vmw_shader_key(user_key, shader_type), in vmw_shader_remove()
880 u32 user_key, const void *bytecode, in vmw_compat_shader_add() argument
892 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_compat_shader_add()
924 vmw_shader_key(user_key, shader_type), in vmw_compat_shader_add()
946 u32 user_key, in vmw_shader_lookup() argument
949 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_lookup()
953 vmw_shader_key(user_key, shader_type)); in vmw_shader_lookup()