{
struct vk_object_base base;
- unsigned char sha1[20];
-
uint32_t code_size;
- const uint32_t *code[0];
+ uint32_t code[];
};
struct tu_push_constant_range
tu_shader_module_from_handle(stage_info->module);
assert(module->code_size % 4 == 0);
nir = tu_spirv_to_nir(
- dev->compiler, (const uint32_t *) module->code, module->code_size / 4,
+ dev->compiler, module->code, module->code_size / 4,
stage, stage_info->pName, stage_info->pSpecializationInfo);
} else {
assert(stage == MESA_SHADER_FRAGMENT);
module->code_size = pCreateInfo->codeSize;
memcpy(module->code, pCreateInfo->pCode, pCreateInfo->codeSize);
- _mesa_sha1_compute(module->code, module->code_size, module->sha1);
-
*pShaderModule = tu_shader_module_to_handle(module);
return VK_SUCCESS;