projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc25792
)
vulkan: Actually increment the count of objects in GetPipelineCacheData.
author
Emma Anholt
<emma@anholt.net>
Tue, 25 Apr 2023 20:20:53 +0000
(13:20 -0700)
committer
Marge 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
patch
|
blob
|
history
diff --git
a/src/vulkan/runtime/vk_pipeline_cache.c
b/src/vulkan/runtime/vk_pipeline_cache.c
index
95c1a46
..
d9d8695
100644
(file)
--- a/
src/vulkan/runtime/vk_pipeline_cache.c
+++ b/
src/vulkan/runtime/vk_pipeline_cache.c
@@
-733,6
+733,8
@@
vk_common_GetPipelineCacheData(VkDevice _device,
assert(data_size_resv >= 0);
blob_overwrite_uint32(&blob, data_size_resv, data_size);
+
+ count++;
}
}