Module: Mesa Branch: main Commit: 49885f87c3b90cc3e1885530cb5873a8960aca47 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=49885f87c3b90cc3e1885530cb5873a8960aca47
Author: Jesse Natalie <[email protected]> Date: Thu Mar 16 16:19:32 2023 -0700 nir: Propagate alignment when rematerializing cast derefs Fixes: 878a8daca6bf ("nir: Add alignment information to cast derefs") Reviewed-by: Faith Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21975> --- src/compiler/nir/nir_deref.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 9289b23f6a2..9687eba60e6 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -769,6 +769,8 @@ rematerialize_deref_in_block(nir_deref_instr *deref, case nir_deref_type_cast: new_deref->cast.ptr_stride = deref->cast.ptr_stride; + new_deref->cast.align_mul = deref->cast.align_mul; + new_deref->cast.align_offset = deref->cast.align_offset; break; case nir_deref_type_array:
