Mesa (master): v3d: make sure we have enough space in the CL for the primitive counts packet
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 13 07:37:43 UTC 2019
Module: Mesa
Branch: master
Commit: b9a07eed004c8c53f97d6d41e6816f1998d8dd8b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9a07eed004c8c53f97d6d41e6816f1998d8dd8b
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Tue Sep 10 13:46:25 2019 +0200
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 <eric at anholt.net>
---
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
More information about the mesa-commit
mailing list