summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_batch.c
diff options
context:
space:
mode:
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);