mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-11 11:15:11 +08: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>
This commit is contained in:
parent
e0dfe058c4
commit
7145ccfa05
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user