mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
zink: skip updating descriptor buffer sets that aren't active
this is a no-op and illegal
Fixes: 7ab5c5d36d ("zink: use EXT_descriptor_buffer with ZINK_DESCRIPTORS=db")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21085>
This commit is contained in:
parent
933f1dc50b
commit
e471b4360d
1 changed files with 2 additions and 0 deletions
|
|
@ -961,6 +961,8 @@ zink_descriptors_update_masked_buffer(struct zink_context *ctx, bool is_compute,
|
|||
return;
|
||||
|
||||
u_foreach_bit(type, changed_sets | bind_sets) {
|
||||
if (!pg->dd.pool_key[type])
|
||||
continue;
|
||||
assert(type + 1 < pg->num_dsl);
|
||||
assert(type < ZINK_DESCRIPTOR_BASE_TYPES);
|
||||
bool changed = (changed_sets & BITFIELD_BIT(type)) > 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue