radv: Set variant code_size when created from the cache.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Apr 2017 22:59:31 +0000 (00:59 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 19 Apr 2017 23:01:49 +0000 (01:01 +0200)
Signed-off-by: Bas Nieeuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline_cache.c

index 5f6355f0d1a670981acc1954e342ec48058d9d23..0ab4d2a26e33d98b2b396b050c04c28f87ba3270 100644 (file)
@@ -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,