summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_draw.h
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_draw.h
parent501c6e70d417b6e7347e41976a753c0680268854 (diff)
freedreno: a2xx: a20x hw binning
Signed-off-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_draw.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_draw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_draw.h b/src/gallium/drivers/freedreno/freedreno_draw.h
index c2197f21a9f..b508f70f4ef 100644
--- a/src/gallium/drivers/freedreno/freedreno_draw.h
+++ b/src/gallium/drivers/freedreno/freedreno_draw.h
@@ -88,6 +88,10 @@ fd_draw(struct fd_batch *batch, struct fd_ringbuffer *ring,
if (idx_buffer)
size += 2;
+ BEGIN_RING(ring, size+1);
+ if (vismode)
+ util_dynarray_append(&batch->draw_patches, uint32_t*, ring->cur);
+
OUT_PKT3(ring, vismode ? CP_DRAW_INDX_BIN : CP_DRAW_INDX, size);
OUT_RING(ring, 0x00000000);
OUT_RING(ring, DRAW_A20X(primtype, DI_FACE_CULL_NONE, src_sel,