mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 22:20:38 +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>
This commit is contained in:
parent
b0c02f5ce9
commit
0f510040dc
1 changed files with 1 additions and 0 deletions
|
|
@ -289,6 +289,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