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:
Mike Blumenkrantz 2023-02-15 14:34:23 -05:00 committed by Dylan Baker
parent db8e2cfb9f
commit f2b4378a5e
2 changed files with 3 additions and 2 deletions

View file

@ -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
},

View file

@ -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) {