mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 05:48:04 +02: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> (cherry picked from commit111c0733ea)
This commit is contained in:
parent
5e436d9f2d
commit
9fc330f27b
2 changed files with 3 additions and 1 deletions
|
|
@ -409,7 +409,7 @@
|
|||
"description": "cso: set index_bounds_valid = true for arrays draws",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "72ff53098c648ea5513fc2b150349b5b9ae58667"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1718,6 +1718,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;
|
||||
|
||||
|
|
@ -1738,6 +1739,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