mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
79bd8edd87
commit
88b5a2b80b
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue