summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2023-02-15 14:34:23 -0500
committerEric Engestrom <eric@engestrom.ch>2023-03-08 18:00:16 +0000
commitce2dba376a7760a923e106d1fe1588c051dcb33f (patch)
tree54634c670815a632f403f4f3563be708b1d15df1
parentbd0217cace3f0cd715fb7e4a64c0316a498a1165 (diff)
downloadmesa-ce2dba376a7760a923e106d1fe1588c051dcb33f.tar.gz
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 7145ccfa0596a2c4adb707f657161fe3ba5e09af)
-rw-r--r--.pick_status.json2
-rw-r--r--src/gallium/drivers/zink/zink_context.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/.pick_status.json b/.pick_status.json
index f1168bb1345..2be24622384 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -1201,7 +1201,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
},
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 452ac0a16fc..dd35868076a 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -1524,7 +1524,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) {