diff options
author | Eric Anholt <[email protected]> | 2018-09-13 12:54:26 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-09-17 16:35:45 -0700 |
commit | 350cb790457a2868585a79366d130c0331b805df (patch) | |
tree | 53f357edbc3e8a3596e11c6fa8be21977879e550 /src/gallium/drivers/v3d/v3dx_job.c | |
parent | 7f08bcb73f7f7dbe675b8c4cc87ef98ea4412b72 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/v3d/v3dx_job.c')
-rw-r--r-- | src/gallium/drivers/v3d/v3dx_job.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_job.c b/src/gallium/drivers/v3d/v3dx_job.c index d87dcea8c49..e0bd71fcf77 100644 --- a/src/gallium/drivers/v3d/v3dx_job.c +++ b/src/gallium/drivers/v3d/v3dx_job.c @@ -47,10 +47,9 @@ void v3dX(bcl_epilogue)(struct v3d_context *v3d, struct v3d_job *job) cl_emit(&job->bcl, OCCLUSION_QUERY_COUNTER, counter); } - /* Disable TF at the end of the CL, so that the next job to be - * run doesn't start out trying to write TF primitives. On - * V3D 3.x, it's only the TF primitive mode that triggers TF - * writes. + /* Disable TF at the end of the CL, so that the TF block + * cleans up and finishes before it gets reset by the next + * frame's tile binning mode cfg packet. (SWVC5-718). */ #if V3D_VERSION >= 41 if (job->tf_enabled) { |