microsoft/compiler: Don't split loads/stores that will be split by lower_explicit_io
authorJesse Natalie <jenatali@microsoft.com>
Fri, 7 Apr 2023 23:39:23 +0000 (16:39 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Apr 2023 18:43:12 +0000 (18:43 +0000)
commit01ccba0d8ef14da333272a8d03b32fb45fb6a392
tree8bc1a6558b46f4617080dd9dfcdf044c7be9581d
parent642a88df3d9a0d6319a6eeb0a24d2603c450236d
microsoft/compiler: Don't split loads/stores that will be split by lower_explicit_io

Otherwise we can end up splitting push constant loads, which currently require
an unbroken (no-cast) deref chain up to the variable.

Fixes: 4c527f4f ("spirv2dxil: Lower unaligned loads and stores")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22371>
src/microsoft/compiler/dxil_nir.c