Mesa (master): cso: set index_bounds_valid = true for arrays draws
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jan 18 17:50:59 UTC 2021
Module: Mesa
Branch: master
Commit: 111c0733eaef2b3bfe9abaea2bb7880b5976dde6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=111c0733eaef2b3bfe9abaea2bb7880b5976dde6
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Sun Jan 17 12:46:03 2021 -0500
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 at alum.mit.edu>
Reported-by: Simon Ser <contact at emersion.fr>
Tested-by: Simon Ser <contact at emersion.fr>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8546>
---
src/gallium/auxiliary/cso_cache/cso_context.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the mesa-commit
mailing list