vulkan: Actually increment the count of objects in GetPipelineCacheData.
authorEmma Anholt <emma@anholt.net>
Tue, 25 Apr 2023 20:20:53 +0000 (13:20 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 May 2023 00:27:49 +0000 (00:27 +0000)
Otherwise a load of the cache won't load any of the objects in it!

Fixes: 591da9877900 ("vulkan: Add a common VkPipelineCache implementation")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22700>

src/vulkan/runtime/vk_pipeline_cache.c

index 95c1a46..d9d8695 100644 (file)
@@ -733,6 +733,8 @@ vk_common_GetPipelineCacheData(VkDevice _device,
 
          assert(data_size_resv >= 0);
          blob_overwrite_uint32(&blob, data_size_resv, data_size);
+
+         count++;
       }
    }