freedreno: use fd_bc_alloc_batch instead of fd_batch_create.
authorHyunjun Ko <zzoon@igalia.com>
Wed, 24 Oct 2018 01:57:15 +0000 (10:57 +0900)
committerRob Clark <robdclark@gmail.com>
Thu, 25 Oct 2018 22:46:19 +0000 (18:46 -0400)
Following the commit 2385d7b066 and 8e798e28f7, for resource dependancy
tracking.

Fixes: dEQP-GLES31.functional.image_load_store.early_fragment_tests.no_early_fragment_tests_depth_fbo
with FD_MESA_DEBUG=inorder

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_blitter.c
src/gallium/drivers/freedreno/freedreno_batch.c

index 6e8177d3444870eaee42187b8f510842e36b2f82..09ff2b71eccf31ab5686c15d5b90731d575d87e7 100644 (file)
@@ -459,7 +459,7 @@ fd5_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info)
                return;
        }
 
-       batch = fd_batch_create(ctx, true);
+       batch = fd_bc_alloc_batch(&ctx->screen->batch_cache, ctx, true);
 
        fd5_emit_restore(batch, batch->draw);
        fd5_emit_lrz_flush(batch->draw);
index ff42d6c138cc3f75830b54b9e99a90398187ea31..a46fbecf2d7b2618fe4d0915c0d3a16e8b6cebc6 100644 (file)
@@ -358,7 +358,7 @@ fd_batch_flush(struct fd_batch *batch, bool sync, bool force)
                         */
                        new_batch = NULL;
                } else {
-                       new_batch = fd_batch_create(ctx, false);
+                       new_batch = fd_bc_alloc_batch(&ctx->screen->batch_cache, ctx, false);
                        util_copy_framebuffer_state(&new_batch->framebuffer, &batch->framebuffer);
                }