mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 23:00:11 +01:00
cso: set index_bounds_valid = true for arrays draws
The min/max indices are valid. Set the bit to true to indicate that.
Fixes glClear (+ clear_with_quads) on nouveau.
Fixes: 72ff53098c (gallium: add pipe_draw_info::index_bounds_valid)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reported-by: Simon Ser <contact@emersion.fr>
Tested-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8546>
This commit is contained in:
parent
333730405d
commit
111c0733ea
1 changed files with 2 additions and 0 deletions
|
|
@ -1449,6 +1449,7 @@ cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count)
|
|||
util_draw_init_info(&info);
|
||||
|
||||
info.mode = mode;
|
||||
info.index_bounds_valid = true;
|
||||
info.min_index = start;
|
||||
info.max_index = start + count - 1;
|
||||
|
||||
|
|
@ -1469,6 +1470,7 @@ cso_draw_arrays_instanced(struct cso_context *cso, uint mode,
|
|||
util_draw_init_info(&info);
|
||||
|
||||
info.mode = mode;
|
||||
info.index_bounds_valid = true;
|
||||
info.min_index = start;
|
||||
info.max_index = start + count - 1;
|
||||
info.start_instance = start_instance;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue