[Mesa-dev] [PATCH] radv: Set variant code_size when created from the cache.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Wed Apr 19 23:00:14 UTC 2017
Signed-off-by: Bas Nieeuwenhuizen <basni at google.com>
---
src/amd/vulkan/radv_pipeline_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c
index 5f6355f0d1a..0ab4d2a26e3 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -171,6 +171,7 @@ radv_create_shader_variant_from_pipeline_cache(struct radv_device *device,
variant->info = entry->variant_info;
variant->rsrc1 = entry->rsrc1;
variant->rsrc2 = entry->rsrc2;
+ variant->code_size = entry->code_size;
variant->ref_count = 1;
variant->bo = device->ws->buffer_create(device->ws, entry->code_size, 256,
--
2.12.2
More information about the mesa-dev
mailing list