summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-09-10 13:46:25 +0200
committerIago Toral <[email protected]>2019-09-13 06:53:26 +0000
commitb9a07eed004c8c53f97d6d41e6816f1998d8dd8b (patch)
tree61d3272d8e1e9f58b5729576e1603756c7394707 /src/gallium/drivers
parentb69f51a5efa854dea5c123733e4d0134e2c38930 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/v3d/v3dx_job.c1
1 files changed, 1 insertions, 0 deletions
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