Mesa (master): gallium/ntt: Fix dynamic indirect indexing of per_vertex_input.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 6 01:03:38 UTC 2021
Module: Mesa
Branch: master
Commit: 9789417055f3aa8ba9f3417cabf58c526521b49f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9789417055f3aa8ba9f3417cabf58c526521b49f
Author: Eric Anholt <eric at anholt.net>
Date: Mon Dec 21 17:12:02 2020 -0800
gallium/ntt: Fix dynamic indirect indexing of per_vertex_input.
It was off by one due to some copy and paste from UBO handling.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8196>
---
src/gallium/auxiliary/nir/nir_to_tgsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c
index b3269be3644..69cb3b9d4d9 100644
--- a/src/gallium/auxiliary/nir/nir_to_tgsi.c
+++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c
@@ -980,7 +980,7 @@ ntt_ureg_src_dimension_indirect(struct ntt_compile *c, struct ureg_src usrc,
} else {
return ureg_src_dimension_indirect(usrc,
ntt_reladdr(c, ntt_get_src(c, src)),
- 1);
+ 0);
}
}
More information about the mesa-commit
mailing list