nir: Don't update base in vectorize_loads()

The offset is already updated with consideration to the base above under
"/* update the offset */".

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9201>
This commit is contained in:
Rhys Perry 2021-03-04 18:35:08 +00:00 committed by Marge Bot
parent c580c3f9c7
commit 5bc42ce579
1 changed files with 1 additions and 4 deletions

View File

@ -773,10 +773,7 @@ vectorize_loads(nir_builder *b, struct vectorize_ctx *ctx,
nir_src_for_ssa(&first->deref->dest.ssa));
}
/* update base/align */
if (first != low && nir_intrinsic_has_base(first->intrin))
nir_intrinsic_set_base(first->intrin, nir_intrinsic_base(low->intrin));
/* update align */
if (nir_intrinsic_has_range_base(first->intrin)) {
uint32_t low_base = nir_intrinsic_range_base(low->intrin);
uint32_t high_base = nir_intrinsic_range_base(high->intrin);