[Mesa-stable] [PATCH 6/6] radv: Init variant entry with memset.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun Jan 21 21:11:57 UTC 2018
This gets memcpy'd and written driectly, and due to alignment, this
resulted in uninitialized gaps. This makes those gaps go away.
CC: <mesa-stable at lists.freedesktop.org>
---
src/amd/vulkan/radv_pipeline_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c
index a6508ae1b2..db48895817 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -380,6 +380,7 @@ radv_pipeline_cache_insert_shaders(struct radv_device *device,
char* p = entry->code;
struct cache_entry_variant_info info;
+ memset(&info, 0, sizeof(info));
for (int i = 0; i < MESA_SHADER_STAGES; ++i) {
if (!variants[i])
--
2.15.1
More information about the mesa-stable
mailing list