projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df68c6
)
nir: Propagate alignment when rematerializing cast derefs
author
Jesse Natalie
<jenatali@microsoft.com>
Thu, 16 Mar 2023 23:19:32 +0000
(16:19 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 17 Mar 2023 08:16:03 +0000
(08:16 +0000)
Fixes:
878a8daca6bf
("nir: Add alignment information to cast derefs")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21975>
src/compiler/nir/nir_deref.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_deref.c
b/src/compiler/nir/nir_deref.c
index
9289b23
..
9687eba
100644
(file)
--- 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: