summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pipeline_cache.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-04-20 00:59:31 +0200
committerBas Nieuwenhuizen <[email protected]>2017-04-20 01:01:49 +0200
commit6bb1ed6bccc0f0d5192e8871f954418857af2604 (patch)
tree9172170f4fe149379dabd95c6d068e3c43cb3005 /src/amd/vulkan/radv_pipeline_cache.c
parent1e1165389c1940415306fae1e5bbe3e75b649975 (diff)
radv: Set variant code_size when created from the cache.
Signed-off-by: Bas Nieeuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_pipeline_cache.c')
-rw-r--r--src/amd/vulkan/radv_pipeline_cache.c1
1 files changed, 1 insertions, 0 deletions
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,