mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
zink: flag 'has_work' on batch when promoting a cmd
has_work controls whether a flush can be deferred, i.e., when unset
a flush may be deferred
since a promoted cmd must still be flushed to take effect, ensure this
is always set when promoted cmds are pending
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23035>
(cherry picked from commit 0f510040dc)
This commit is contained in:
parent
c60508ba3b
commit
3b23995a8c
2 changed files with 2 additions and 1 deletions
|
|
@ -409,7 +409,7 @@
|
|||
"description": "zink: flag 'has_work' on batch when promoting a cmd",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -280,6 +280,7 @@ zink_get_cmdbuf(struct zink_context *ctx, struct zink_resource *src, struct zink
|
|||
zink_batch_no_rp(ctx);
|
||||
if (unordered_exec) {
|
||||
ctx->batch.state->has_barriers = true;
|
||||
ctx->batch.has_work = true;
|
||||
return ctx->batch.state->barrier_cmdbuf;
|
||||
}
|
||||
return ctx->batch.state->cmdbuf;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue