From b9a07eed004c8c53f97d6d41e6816f1998d8dd8b Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Tue, 10 Sep 2019 13:46:25 +0200 Subject: [PATCH] v3d: make sure we have enough space in the CL for the primitive counts packet Fixes: 0f2d1dfe65 ("v3d: use the GPU to record primitives written to transform feedback") Reviewed-by: Eric Anholt --- src/gallium/drivers/v3d/v3dx_job.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/v3d/v3dx_job.c b/src/gallium/drivers/v3d/v3dx_job.c index 84228a48760..83086134a99 100644 --- a/src/gallium/drivers/v3d/v3dx_job.c +++ b/src/gallium/drivers/v3d/v3dx_job.c @@ -33,6 +33,7 @@ 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 -- 2.30.2