mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
panfrost: Update ctx->batch when a fresh batch is requested
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8808>
This commit is contained in:
parent
834bb5e54c
commit
470d3a3640
1 changed files with 6 additions and 2 deletions
|
|
@ -308,14 +308,18 @@ panfrost_get_fresh_batch_for_fbo(struct panfrost_context *ctx)
|
|||
* Note that it's perfectly fine to re-use a batch with an
|
||||
* existing clear, we'll just update it with the new clear request.
|
||||
*/
|
||||
if (!batch->scoreboard.first_job)
|
||||
if (!batch->scoreboard.first_job) {
|
||||
ctx->batch = batch;
|
||||
return batch;
|
||||
}
|
||||
|
||||
/* Otherwise, we need to freeze the existing one and instantiate a new
|
||||
* one.
|
||||
*/
|
||||
panfrost_freeze_batch(batch);
|
||||
return panfrost_get_batch(ctx, &ctx->pipe_framebuffer);
|
||||
batch = panfrost_get_batch(ctx, &ctx->pipe_framebuffer);
|
||||
ctx->batch = batch;
|
||||
return batch;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue