Mesa (master): broadcom/vc4: Fix the scaling factor for the GFXH-515 workaround.
Eric Anholt
anholt at kemper.freedesktop.org
Fri Dec 1 23:37:47 UTC 2017
Module: Mesa
Branch: master
Commit: bcb6ebe91a1bbbe6ad62f0e99707414fb91e488e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bcb6ebe91a1bbbe6ad62f0e99707414fb91e488e
Author: Eric Anholt <eric at anholt.net>
Date: Fri Dec 1 15:29:05 2017 -0800
broadcom/vc4: Fix the scaling factor for the GFXH-515 workaround.
For triangle strips, we step by max_verts - 2.
---
src/gallium/drivers/vc4/vc4_draw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 9522bb94dd..0df2293141 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -40,7 +40,7 @@ vc4_get_draw_cl_space(struct vc4_job *job, int vert_count)
/* The SW-5891 workaround may cause us to emit multiple shader recs
* and draw packets.
*/
- int num_draws = DIV_ROUND_UP(vert_count, 65535) + 1;
+ int num_draws = DIV_ROUND_UP(vert_count, 65535 - 2) + 1;
/* Binner gets our packet state -- vc4_emit.c contents,
* and the primitive itself.
More information about the mesa-commit
mailing list