mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
zink: avoid zero-sized memcmp for descriptor layouts
cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22559>
This commit is contained in:
parent
f2e7482202
commit
cbac02b7d3
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ equals_descriptor_layout(const void *a, const void *b)
|
|||
const struct zink_descriptor_layout_key *a_k = a;
|
||||
const struct zink_descriptor_layout_key *b_k = b;
|
||||
return a_k->num_bindings == b_k->num_bindings &&
|
||||
!memcmp(a_k->bindings, b_k->bindings, a_k->num_bindings * sizeof(VkDescriptorSetLayoutBinding));
|
||||
(!a_k->num_bindings || !memcmp(a_k->bindings, b_k->bindings, a_k->num_bindings * sizeof(VkDescriptorSetLayoutBinding)));
|
||||
}
|
||||
|
||||
static struct zink_descriptor_layout *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue