broadcom/vc4: Fix the scaling factor for the GFXH-515 workaround.

For triangle strips, we step by max_verts - 2.
This commit is contained in:
Eric Anholt
2017-12-01 15:29:05 -08:00
parent f56e964e01
commit bcb6ebe91a
+1 -1
View File
@@ -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.