mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
zink: fix descriptor update flagging on null ssbo set
this could unset the update flag if the last ssbo was null, which would
be a bug if it could ever be triggered
found by inspection
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21739>
(cherry picked from commit 7145ccfa05)
This commit is contained in:
parent
db8e2cfb9f
commit
f2b4378a5e
2 changed files with 3 additions and 2 deletions
|
|
@ -3280,7 +3280,7 @@
|
|||
"description": "zink: fix descriptor update flagging on null ssbo set",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1561,7 +1561,8 @@ zink_set_shader_buffers(struct pipe_context *pctx,
|
|||
else
|
||||
new_res->obj->unordered_read = false;
|
||||
} else {
|
||||
update = !!res;
|
||||
if (res)
|
||||
update = true;
|
||||
ssbo->buffer_offset = 0;
|
||||
ssbo->buffer_size = 0;
|
||||
if (res) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue