diff options
-rw-r--r-- | src/amd/vulkan/radv_pipeline_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c index a75356b8229..9ba9a3b61ba 100644 --- a/src/amd/vulkan/radv_pipeline_cache.c +++ b/src/amd/vulkan/radv_pipeline_cache.c @@ -231,6 +231,8 @@ radv_create_shader_variants_from_pipeline_cache(struct radv_device *device, p += entry->code_sizes[i]; entry->variants[i] = variant; + } else if (entry->code_sizes[i]) { + p += sizeof(struct cache_entry_variant_info) + entry->code_sizes[i]; } } |