From: Daniel Schürmann Date: Fri, 31 Mar 2023 14:08:59 +0000 (+0200) Subject: radv: unconditionally store the binary code in radv_shader X-Git-Tag: upstream/23.3.3~10188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efbf0e70ebaf2f9ce334e566c18080d7ac6f4f81;p=platform%2Fupstream%2Fmesa.git radv: unconditionally store the binary code in radv_shader We will (temporarily) use it to serialize shader binaries with the common vk_pipeline_cache. Part-of: --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index a6d0d5b..a75070f 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1696,12 +1696,10 @@ static bool radv_shader_binary_upload(struct radv_device *device, const struct radv_shader_binary *binary, struct radv_shader *shader, void *dest_ptr) { - if (device->thread_trace.bo) { - shader->code = calloc(shader->code_size, 1); - if (!shader->code) { - radv_shader_unref(device, shader); - return false; - } + shader->code = calloc(shader->code_size, 1); + if (!shader->code) { + radv_shader_unref(device, shader); + return false; } if (binary->type == RADV_BINARY_TYPE_RTLD) { diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 3f41105..1b5b2e9 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -517,8 +517,6 @@ struct radv_shader { struct radv_shader_info info; uint8_t sha1[SHA1_DIGEST_LENGTH]; - - /* sqtt only */ void *code; /* debug only */