mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
freedreno: allocate batches from the cache in launch_grid
Needs to allocate batches from the cache so that it could
get a valid index and make resource dependancy tracking right.
In addition this fixes assertion on debug build since the commit
1a40faa8 landed.
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
2385d7b066
commit
8e798e28f7
1 changed files with 2 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ fd_launch_grid(struct pipe_context *pctx, const struct pipe_grid_info *info)
|
||||||
struct fd_batch *batch, *save_batch = NULL;
|
struct fd_batch *batch, *save_batch = NULL;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
batch = fd_batch_create(ctx, true);
|
batch = fd_bc_alloc_batch(&ctx->screen->batch_cache, ctx, true);
|
||||||
fd_batch_reference(&save_batch, ctx->batch);
|
fd_batch_reference(&save_batch, ctx->batch);
|
||||||
fd_batch_reference(&ctx->batch, batch);
|
fd_batch_reference(&ctx->batch, batch);
|
||||||
|
|
||||||
|
|
@ -506,6 +506,7 @@ fd_launch_grid(struct pipe_context *pctx, const struct pipe_grid_info *info)
|
||||||
|
|
||||||
fd_batch_reference(&ctx->batch, save_batch);
|
fd_batch_reference(&ctx->batch, save_batch);
|
||||||
fd_batch_reference(&save_batch, NULL);
|
fd_batch_reference(&save_batch, NULL);
|
||||||
|
fd_batch_reference(&batch, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue