diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2021-01-17 12:46:03 -0500 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-18 17:33:52 +0000 |
commit | 111c0733eaef2b3bfe9abaea2bb7880b5976dde6 (patch) | |
tree | d533a75b0825dfc471897ef1e751085344db622e /src/gallium/auxiliary/cso_cache | |
parent | 333730405de28153f2378d498e45cb82024fc230 (diff) |
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: 72ff53098c64 (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>
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 86c74123425..eb683872edf 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -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; |