Lines Matching refs:spirv_data
74 struct gl_shader_spirv_data *spirv_data; in _mesa_spirv_shader_binary() local
89 spirv_data = rzalloc(NULL, struct gl_shader_spirv_data); in _mesa_spirv_shader_binary()
90 _mesa_shader_spirv_data_reference(&sh->spirv_data, spirv_data); in _mesa_spirv_shader_binary()
91 _mesa_spirv_module_reference(&spirv_data->SpirVModule, module); in _mesa_spirv_shader_binary()
144 assert(shader->spirv_data); in _mesa_spirv_link_shaders()
166 _mesa_shader_spirv_data_reference(&linked->spirv_data, in _mesa_spirv_link_shaders()
167 shader->spirv_data); in _mesa_spirv_link_shaders()
225 struct gl_shader_spirv_data *spirv_data = linked_shader->spirv_data; in _mesa_spirv_to_nir() local
226 assert(spirv_data); in _mesa_spirv_to_nir()
228 struct gl_spirv_module *spirv_module = spirv_data->SpirVModule; in _mesa_spirv_to_nir()
231 const char *entry_point_name = spirv_data->SpirVEntryPoint; in _mesa_spirv_to_nir()
236 spirv_data->NumSpecializationConstants); in _mesa_spirv_to_nir()
238 for (unsigned i = 0; i < spirv_data->NumSpecializationConstants; ++i) { in _mesa_spirv_to_nir()
239 spec_entries[i].id = spirv_data->SpecializationConstantsIndex[i]; in _mesa_spirv_to_nir()
240 spec_entries[i].value.u32 = spirv_data->SpecializationConstantsValue[i]; in _mesa_spirv_to_nir()
263 spec_entries, spirv_data->NumSpecializationConstants, in _mesa_spirv_to_nir()
341 if (!sh->spirv_data) { in _mesa_SpecializeShaderARB()
353 struct gl_shader_spirv_data *spirv_data = sh->spirv_data; in _mesa_SpecializeShaderARB() local
385 gl_spirv_validation((uint32_t *)&spirv_data->SpirVModule->Binary[0], in _mesa_SpecializeShaderARB()
386 spirv_data->SpirVModule->Length / 4, in _mesa_SpecializeShaderARB()
407 spirv_data->SpirVEntryPoint = ralloc_strdup(spirv_data, pEntryPoint); in _mesa_SpecializeShaderARB()
415 spirv_data->NumSpecializationConstants = numSpecializationConstants; in _mesa_SpecializeShaderARB()
416 spirv_data->SpecializationConstantsIndex = in _mesa_SpecializeShaderARB()
417 rzalloc_array_size(spirv_data, sizeof(GLuint), in _mesa_SpecializeShaderARB()
419 spirv_data->SpecializationConstantsValue = in _mesa_SpecializeShaderARB()
420 rzalloc_array_size(spirv_data, sizeof(GLuint), in _mesa_SpecializeShaderARB()
423 spirv_data->SpecializationConstantsIndex[i] = pConstantIndex[i]; in _mesa_SpecializeShaderARB()
424 spirv_data->SpecializationConstantsValue[i] = pConstantValue[i]; in _mesa_SpecializeShaderARB()