mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
nir/opt_load_store_vectorize: ignore load_vulkan_descriptor
These mess with alignment calculation. No fossil-db changes. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10384>
This commit is contained in:
parent
6ca11b4a66
commit
447820d003
1 changed files with 6 additions and 0 deletions
|
|
@ -325,6 +325,12 @@ parse_offset(nir_ssa_scalar *base, uint64_t *base_mul, uint64_t *offset)
|
|||
}
|
||||
} while (progress);
|
||||
|
||||
if (base->def->parent_instr->type == nir_instr_type_intrinsic) {
|
||||
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(base->def->parent_instr);
|
||||
if (intrin->intrinsic == nir_intrinsic_load_vulkan_descriptor)
|
||||
base->def = NULL;
|
||||
}
|
||||
|
||||
*base_mul = mul;
|
||||
*offset = add;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue