Lines Matching refs:user_key
77 static bool vmw_shader_id_ok(u32 user_key, SVGA3dShaderType shader_type);
78 static u32 vmw_shader_key(u32 user_key, SVGA3dShaderType shader_type);
586 u32 user_key, in vmw_dx_shader_add() argument
595 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_dx_shader_add()
607 shader->id = user_key; in vmw_dx_shader_add()
620 vmw_shader_key(user_key, 0), in vmw_dx_shader_add()
825 static bool vmw_shader_id_ok(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_id_ok() argument
827 return user_key <= ((1 << 20) - 1) && (unsigned) shader_type < 16; in vmw_shader_id_ok()
839 static u32 vmw_shader_key(u32 user_key, SVGA3dShaderType shader_type) in vmw_shader_key() argument
841 return user_key | (shader_type << 20); in vmw_shader_key()
854 u32 user_key, SVGA3dShaderType shader_type, in vmw_shader_remove() argument
859 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_remove()
863 vmw_shader_key(user_key, shader_type), in vmw_shader_remove()
883 u32 user_key, const void *bytecode, in vmw_compat_shader_add() argument
902 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_compat_shader_add()
933 vmw_shader_key(user_key, shader_type), in vmw_compat_shader_add()
955 u32 user_key, in vmw_shader_lookup() argument
958 if (!vmw_shader_id_ok(user_key, shader_type)) in vmw_shader_lookup()
962 vmw_shader_key(user_key, shader_type)); in vmw_shader_lookup()