Fixes:
5b77b14448c ("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>
/* 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++;
}