draw: Fix max_index check.

We want to fallback to draw splitting when vertex element indices
might be too high for atomic draw path (currently limited to 4095).
This commit is contained in:
Keith Whitwell 2009-11-26 19:24:57 +01:00 committed by Michal Krol
parent 75df599e30
commit 3bae72e204
1 changed files with 2 additions and 1 deletions

View File

@ -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;