projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75df599
)
draw: Fix max_index check.
author
Keith Whitwell
<keithw@vmware.com>
Thu, 26 Nov 2009 18:24:57 +0000
(19:24 +0100)
committer
Michal Krol
<michal@vmware.com>
Thu, 26 Nov 2009 19:41:41 +0000
(20:41 +0100)
We want to fallback to draw splitting when vertex element indices
might be too high for atomic draw path (currently limited to 4095).
src/gallium/auxiliary/draw/draw_pt_vcache.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pt_vcache.c
b/src/gallium/auxiliary/draw/draw_pt_vcache.c
index d3f179ced18bb2431d912048825fad787b1f2914..757c48745456d59db25a07084cb1a691d36f07df 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt_vcache.c
+++ b/
src/gallium/auxiliary/draw/draw_pt_vcache.c
@@
-346,7
+346,8
@@
vcache_check_run( struct draw_pt_front_end *frontend,
vcache->fetch_max,
draw_count);
- if (max_index == 0xffffffff ||
+ if (max_index >= DRAW_PIPE_MAX_VERTICES ||
+ fetch_count >= UNDEFINED_VERTEX_ID ||
fetch_count > draw_count) {
if (0) debug_printf("fail\n");
goto fail;