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()
823 static bool vmw_shader_id_ok(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_id_ok() argument
825 return user_key <= ((1 << 20) - 1) && (unsigned) shader_type < 16; in vmw_shader_id_ok()
837 static u32 vmw_shader_key(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_key() argument
839 return user_key | (shader_type << 20); in vmw_shader_key()
852 u32 user_key, SVGA3dShaderType shader_type, in vmw_shader_remove() argument
857 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_remove()
861 vmw_shader_key(user_key, shader_type), in vmw_shader_remove()
881 u32 user_key, const void *bytecode, in vmw_compat_shader_add() argument
893 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_compat_shader_add()
925 vmw_shader_key(user_key, shader_type), in vmw_compat_shader_add()
947 u32 user_key, in vmw_shader_lookup() argument
950 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_lookup()
954 vmw_shader_key(user_key, shader_type)); in vmw_shader_lookup()