summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/v3d/v3dx_job.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/v3d/v3dx_job.c')
-rw-r--r--src/gallium/drivers/v3d/v3dx_job.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/v3d/v3dx_job.c b/src/gallium/drivers/v3d/v3dx_job.c
index 40d6f16a4e2..391c1383971 100644
--- a/src/gallium/drivers/v3d/v3dx_job.c
+++ b/src/gallium/drivers/v3d/v3dx_job.c
@@ -34,12 +34,10 @@ void v3dX(bcl_epilogue)(struct v3d_context *v3d, struct v3d_job *job)
{
v3d_cl_ensure_space_with_branch(&job->bcl,
cl_packet_length(PRIMITIVE_COUNTS_FEEDBACK) +
-#if V3D_VERSION >= 41
cl_packet_length(TRANSFORM_FEEDBACK_SPECS) +
-#endif
cl_packet_length(FLUSH));
- if (job->tf_enabled) {
+ if (job->tf_enabled || job->needs_primitives_generated) {
/* Write primitive counts to memory. */
assert(v3d->prim_counts);
struct v3d_resource *rsc =
@@ -57,13 +55,11 @@ void v3dX(bcl_epilogue)(struct v3d_context *v3d, struct v3d_job *job)
* 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) {
cl_emit(&job->bcl, TRANSFORM_FEEDBACK_SPECS, tfe) {
tfe.enable = false;
};
}
-#endif /* V3D_VERSION >= 41 */
/* We just FLUSH here to tell the HW to cap the bin CLs with a
* return. Any remaining state changes won't be flushed to