aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_draw.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-10-17 09:40:12 +0100
committerEric Anholt <[email protected]>2014-10-17 13:09:28 +0100
commit000976ed9926266b52827108c666d4c05e4f4a35 (patch)
tree7d0bf92c2816c822e73cfc3d2a99de2fa63b3393 /src/gallium/drivers/vc4/vc4_draw.c
parent135287db175de9496b76f8edce04871ca6444d72 (diff)
vc4: Add some comments about state management.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 0938a76e000..f3c225de399 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -78,6 +78,11 @@ vc4_start_draw(struct vc4_context *vc4)
VC4_BIN_CONFIG_ALLOC_BLOCK_SIZE_32 |
VC4_BIN_CONFIG_ALLOC_INIT_BLOCK_SIZE_32);
+ /* START_TILE_BINNING resets the statechange counters in the hardware,
+ * which are what is used when a primitive is binned to a tile to
+ * figure out what new state packets need to be written to that tile's
+ * command list.
+ */
cl_u8(&vc4->bcl, VC4_PACKET_START_TILE_BINNING);
vc4->needs_flush = true;