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:
Mike Blumenkrantz 2023-05-15 09:24:48 -04:00 committed by Eric Engestrom
parent c60508ba3b
commit 3b23995a8c
2 changed files with 2 additions and 1 deletions

View file

@ -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
},

View file

@ -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;