diff options
author | Grazvydas Ignotas <[email protected]> | 2017-08-28 02:01:21 +0300 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-08-29 19:14:13 +0100 |
commit | e040bdbc8a8d8170d54fcad5cb084d5ff9008f3b (patch) | |
tree | f772c22b1daaa02b0fcf77d11039b4201f0fd9af | |
parent | e4c4b0dbcbd037ccf3abc40bb168d68c30e8c40e (diff) |
radv: clear dynamic_shader_stages on create
Valgrind reports it's being used uninitialized.
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
(cherry picked from commit 77803748336713854a4ade192253c0ba01c49047)
-rw-r--r-- | src/amd/vulkan/radv_descriptor_set.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index 7cee9d4dedd..314ab5a96d0 100644 --- a/src/amd/vulkan/radv_descriptor_set.c +++ b/src/amd/vulkan/radv_descriptor_set.c @@ -66,6 +66,7 @@ VkResult radv_CreateDescriptorSetLayout( set_layout->binding_count = max_binding + 1; set_layout->shader_stages = 0; + set_layout->dynamic_shader_stages = 0; set_layout->size = 0; memset(set_layout->binding, 0, size - sizeof(struct radv_descriptor_set_layout)); |