v3d: Always emit a TF disable at the start of drawing on V3D 4.x.
authorEric Anholt <eric@anholt.net>
Thu, 13 Sep 2018 19:54:26 +0000 (12:54 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 17 Sep 2018 23:35:45 +0000 (16:35 -0700)
commit350cb790457a2868585a79366d130c0331b805df
tree53f357edbc3e8a3596e11c6fa8be21977879e550
parent7f08bcb73f7f7dbe675b8c4cc87ef98ea4412b72
v3d: Always emit a TF disable at the start of drawing on V3D 4.x.

The HW's FLUSH_ALL_STATE is not validated, so we probably shouldn't use
it, meaning that we need to reset state at the start.  By doing this, we
also make ourselves more resilient to another client leaving the TF state
enabled at the end of their batch (as we now do, ourselves).

However, we still need to emit a single TF disable at the end of the
frame, for SWVC5-718.
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3dx_emit.c
src/gallium/drivers/v3d/v3dx_job.c