From: Iago Toral Quiroga Date: Tue, 10 Sep 2019 11:46:25 +0000 (+0200) Subject: v3d: make sure we have enough space in the CL for the primitive counts packet X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9a07eed004c8c53f97d6d41e6816f1998d8dd8b;p=mesa.git 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 --- 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