mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
anv/descriptor_set: memset anv_descriptor_set_layout
We hash this data structure so we can't afford to have uninitialized data even if it is just structure padding. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: "12.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
d5899b3010
commit
d316cec1c1
1 changed files with 1 additions and 2 deletions
|
|
@ -67,9 +67,8 @@ VkResult anv_CreateDescriptorSetLayout(
|
|||
struct anv_sampler **samplers =
|
||||
(struct anv_sampler **)&set_layout->binding[max_binding + 1];
|
||||
|
||||
memset(set_layout, 0, sizeof(*set_layout));
|
||||
set_layout->binding_count = max_binding + 1;
|
||||
set_layout->shader_stages = 0;
|
||||
set_layout->size = 0;
|
||||
|
||||
for (uint32_t b = 0; b <= max_binding; b++) {
|
||||
/* Initialize all binding_layout entries to -1 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue