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>
This commit is contained in:
Mike Blumenkrantz 2023-02-15 14:34:23 -05:00 committed by Marge Bot
parent e0dfe058c4
commit 7145ccfa05

View File

@ -1587,7 +1587,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) {