nir: fix gathering cross invocation info

Fixes: 5b77b14448 ("nir: Use src_is_invocation_id in get_deref_info.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7730>
This commit is contained in:
Samuel Pitoiset 2020-11-23 10:39:52 +01:00 committed by Marge Bot
parent 79bd8edd87
commit 88b5a2b80b

View file

@ -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++;
}