Searched refs:spec_entries (Results 1 – 5 of 5) sorted by relevance
/external/mesa3d/src/mesa/main/ |
D | glspirv.c | 234 struct nir_spirv_specialization *spec_entries = in _mesa_spirv_to_nir() local 235 calloc(sizeof(*spec_entries), 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() 241 spec_entries[i].defined_on_module = false; in _mesa_spirv_to_nir() 263 spec_entries, spirv_data->NumSpecializationConstants, in _mesa_spirv_to_nir() 267 free(spec_entries); in _mesa_spirv_to_nir() 330 struct nir_spirv_specialization *spec_entries = NULL; in _mesa_SpecializeShaderARB() local 376 spec_entries = calloc(sizeof(*spec_entries), numSpecializationConstants); in _mesa_SpecializeShaderARB() 379 spec_entries[i].id = pConstantIndex[i]; in _mesa_SpecializeShaderARB() [all …]
|
/external/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_pipeline.c | 480 struct nir_spirv_specialization *spec_entries = NULL; in lvp_shader_compile_to_ir() local 483 spec_entries = calloc(num_spec_entries, sizeof(*spec_entries)); in lvp_shader_compile_to_ir() 491 spec_entries[i].id = entry.constantID; in lvp_shader_compile_to_ir() 494 spec_entries[i].value.u64 = *(const uint64_t *)data; in lvp_shader_compile_to_ir() 497 spec_entries[i].value.u32 = *(const uint32_t *)data; in lvp_shader_compile_to_ir() 500 spec_entries[i].value.u16 = *(const uint16_t *)data; in lvp_shader_compile_to_ir() 503 spec_entries[i].value.u8 = *(const uint8_t *)data; in lvp_shader_compile_to_ir() 534 spec_entries, num_spec_entries, in lvp_shader_compile_to_ir() 539 free(spec_entries); in lvp_shader_compile_to_ir()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_shader.c | 398 struct nir_spirv_specialization *spec_entries = NULL; in radv_shader_compile_to_nir() local 401 spec_entries = calloc(num_spec_entries, sizeof(*spec_entries)); in radv_shader_compile_to_nir() 407 spec_entries[i].id = spec_info->pMapEntries[i].constantID; in radv_shader_compile_to_nir() 410 memcpy(&spec_entries[i].value.u64, data, sizeof(uint64_t)); in radv_shader_compile_to_nir() 413 memcpy(&spec_entries[i].value.u32, data, sizeof(uint32_t)); in radv_shader_compile_to_nir() 416 memcpy(&spec_entries[i].value.u16, data, sizeof(uint16_t)); in radv_shader_compile_to_nir() 419 memcpy(&spec_entries[i].value.u8, data, sizeof(uint8_t)); in radv_shader_compile_to_nir() 496 spec_entries, num_spec_entries, in radv_shader_compile_to_nir() 502 free(spec_entries); in radv_shader_compile_to_nir()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pipeline.c | 143 struct nir_spirv_specialization *spec_entries = NULL; in anv_shader_compile_to_nir() local 146 spec_entries = calloc(num_spec_entries, sizeof(*spec_entries)); in anv_shader_compile_to_nir() 152 spec_entries[i].id = spec_info->pMapEntries[i].constantID; in anv_shader_compile_to_nir() 155 spec_entries[i].value.u64 = *(const uint64_t *)data; in anv_shader_compile_to_nir() 158 spec_entries[i].value.u32 = *(const uint32_t *)data; in anv_shader_compile_to_nir() 161 spec_entries[i].value.u16 = *(const uint16_t *)data; in anv_shader_compile_to_nir() 164 spec_entries[i].value.u8 = *(const uint8_t *)data; in anv_shader_compile_to_nir() 241 spec_entries, num_spec_entries, in anv_shader_compile_to_nir() 248 free(spec_entries); in anv_shader_compile_to_nir()
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_pipeline.c | 430 struct nir_spirv_specialization *spec_entries = calloc(num_spec_entries, sizeof(*spec_entries)); in vk_spec_info_to_nir_spirv() local 437 spec_entries[i].id = spec_info->pMapEntries[i].constantID; in vk_spec_info_to_nir_spirv() 440 spec_entries[i].value.u64 = *(const uint64_t *)data; in vk_spec_info_to_nir_spirv() 443 spec_entries[i].value.u32 = *(const uint32_t *)data; in vk_spec_info_to_nir_spirv() 446 spec_entries[i].value.u16 = *(const uint16_t *)data; in vk_spec_info_to_nir_spirv() 449 spec_entries[i].value.u8 = *(const uint8_t *)data; in vk_spec_info_to_nir_spirv() 458 return spec_entries; in vk_spec_info_to_nir_spirv() 476 struct nir_spirv_specialization *spec_entries = in shader_module_compile_to_nir() local 480 spec_entries, num_spec_entries, in shader_module_compile_to_nir() 484 free(spec_entries); in shader_module_compile_to_nir()
|