mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue