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:
Ilia Mirkin 2021-01-17 12:46:03 -05:00 committed by Marge Bot
parent 333730405d
commit 111c0733ea

View file

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