diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-01-21 22:03:02 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-01-22 00:07:39 +0100 |
commit | 8b98929074f77156d8e1a10bc42b8eda0f9ce4ec (patch) | |
tree | 044e3ab0d3d95a5b92a6d0dfeadbb61c67d335ea | |
parent | fb0992e967e7f56604e1f5db8579ae6c2b8d0f2a (diff) |
radv: Init variant entry with memset.
This gets memcpy'd and written driectly, and due to alignment, this
resulted in uninitialized gaps. This makes those gaps go away.
CC: <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_pipeline_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c index a6508ae1b27..db48895817e 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]) |