mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
nir: Use src_is_invocation_id in get_deref_info.
Signed-off-by: Timur Kristof <timur.kristof@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7622>
This commit is contained in:
parent
e78c089aae
commit
5b77b14448
1 changed files with 1 additions and 5 deletions
|
|
@ -53,11 +53,7 @@ get_deref_info(nir_shader *shader, nir_variable *var, nir_deref_instr *deref,
|
||||||
/* Vertex index is the outermost array index. */
|
/* Vertex index is the outermost array index. */
|
||||||
if (per_vertex) {
|
if (per_vertex) {
|
||||||
assert((*p)->deref_type == nir_deref_type_array);
|
assert((*p)->deref_type == nir_deref_type_array);
|
||||||
nir_instr *vertex_index_instr = (*p)->arr.index.ssa->parent_instr;
|
*cross_invocation = src_is_invocation_id(&(*p)->arr.index);
|
||||||
*cross_invocation =
|
|
||||||
vertex_index_instr->type != nir_instr_type_intrinsic ||
|
|
||||||
nir_instr_as_intrinsic(vertex_index_instr)->intrinsic !=
|
|
||||||
nir_intrinsic_load_invocation_id;
|
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue