Module: Mesa Branch: master Commit: 88b5a2b80bc60f0d7416275835a264c7ce19b656 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=88b5a2b80bc60f0d7416275835a264c7ce19b656
Author: Samuel Pitoiset <[email protected]> Date: Mon Nov 23 10:39:52 2020 +0100 nir: fix gathering cross invocation info Fixes: 5b77b14448c ("nir: Use src_is_invocation_id in get_deref_info.") Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7730> --- src/compiler/nir/nir_gather_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index bf0f1e37a9b..097aaa8e541 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -53,7 +53,7 @@ get_deref_info(nir_shader *shader, nir_variable *var, nir_deref_instr *deref, /* Vertex index is the outermost array index. */ if (per_vertex) { assert((*p)->deref_type == nir_deref_type_array); - *cross_invocation = src_is_invocation_id(&(*p)->arr.index); + *cross_invocation = !src_is_invocation_id(&(*p)->arr.index); p++; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
