summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_batch.c
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2018-12-18 23:33:54 -0500
committerRob Clark <[email protected]>2019-01-28 18:21:16 -0500
commitcb2322c7c0f95d6d1a2b90494cf5f6fd55f55638 (patch)
tree2456dacc3bab7f9d0be62965913b8922d78f7f46 /src/gallium/drivers/freedreno/freedreno_batch.c
parent501c6e70d417b6e7347e41976a753c0680268854 (diff)
freedreno: a2xx: a20x hw binning
Signed-off-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_batch.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_batch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c
index eae2f68ce11..a852494a8fc 100644
--- a/src/gallium/drivers/freedreno/freedreno_batch.c
+++ b/src/gallium/drivers/freedreno/freedreno_batch.c
@@ -90,6 +90,9 @@ batch_init(struct fd_batch *batch)
util_dynarray_init(&batch->draw_patches, NULL);
+ if (is_a2xx(ctx->screen))
+ util_dynarray_init(&batch->shader_patches, NULL);
+
if (is_a3xx(ctx->screen))
util_dynarray_init(&batch->rbrc_patches, NULL);
@@ -164,6 +167,9 @@ batch_fini(struct fd_batch *batch)
util_dynarray_fini(&batch->draw_patches);
+ if (is_a2xx(batch->ctx->screen))
+ util_dynarray_fini(&batch->shader_patches);
+
if (is_a3xx(batch->ctx->screen))
util_dynarray_fini(&batch->rbrc_patches);