diff options
author | Iago Toral Quiroga <[email protected]> | 2019-09-10 13:46:25 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-18 09:09:54 -0700 |
commit | 110dc21ed3a7e5a46a3d1d35ea2a3bf062e6e50f (patch) | |
tree | 1f8ef1831ddc100a94e1d0e979e62300f04fcb7b | |
parent | cfcb96da38d845e2b8161e0acfe004fb426c8f7f (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]>
(cherry picked from commit b9a07eed004c8c53f97d6d41e6816f1998d8dd8b)
-rw-r--r-- | src/gallium/drivers/v3d/v3dx_job.c | 1 |
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 |