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:
parent
75df599e30
commit
3bae72e204
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue