From 912a9c8d8cf5e7e4e05a5cb06f4284eeff7b379a Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Mon, 28 Jan 2019 12:49:54 -0500 Subject: freedreno: a2xx: clear fixes and fast clear path This fixes the depth/stencil clear on a20x, and adds a fast clear path. The fast clear path is only used for a20x, needs performance tests on a22x. Signed-off-by: Jonathan Marek --- src/gallium/drivers/freedreno/freedreno_batch.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/freedreno/freedreno_batch.c') diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c index a852494a8fc..a1578506c2a 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch.c +++ b/src/gallium/drivers/freedreno/freedreno_batch.c @@ -90,8 +90,10 @@ batch_init(struct fd_batch *batch) util_dynarray_init(&batch->draw_patches, NULL); - if (is_a2xx(ctx->screen)) + if (is_a2xx(ctx->screen)) { util_dynarray_init(&batch->shader_patches, NULL); + util_dynarray_init(&batch->gmem_patches, NULL); + } if (is_a3xx(ctx->screen)) util_dynarray_init(&batch->rbrc_patches, NULL); @@ -167,8 +169,10 @@ batch_fini(struct fd_batch *batch) util_dynarray_fini(&batch->draw_patches); - if (is_a2xx(batch->ctx->screen)) + if (is_a2xx(batch->ctx->screen)) { util_dynarray_fini(&batch->shader_patches); + util_dynarray_fini(&batch->gmem_patches); + } if (is_a3xx(batch->ctx->screen)) util_dynarray_fini(&batch->rbrc_patches); -- cgit v1.2.3