projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56e964
)
broadcom/vc4: Fix the scaling factor for the GFXH-515 workaround.
author
Eric Anholt
<eric@anholt.net>
Fri, 1 Dec 2017 23:29:05 +0000
(15:29 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 1 Dec 2017 23:37:28 +0000
(15:37 -0800)
For triangle strips, we step by max_verts - 2.
src/gallium/drivers/vc4/vc4_draw.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_draw.c
b/src/gallium/drivers/vc4/vc4_draw.c
index 9522bb94dda845b187e1e994f2ddf7356af1fb0d..0df2293141060e6b01327cd0738162d7b989c54d 100644
(file)
--- 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.