microsoft/compiler: Fix 8-bit loads and stores when supporting 16-bit DXIL
authorJesse Natalie <jenatali@microsoft.com>
Thu, 23 Mar 2023 15:30:58 +0000 (08:30 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 22:08:28 +0000 (22:08 +0000)
commit477332a347799e08d884f8fcc31816291575a955
tree3d1dc1c071bdcd09e0494c54bba63228f9eafd27
parente89e1f5049d3b78542fcd69b7d6106dd4bdafc39
microsoft/compiler: Fix 8-bit loads and stores when supporting 16-bit DXIL

Shifts should always use 32bit shift values, and when lowering to
masked, we need to use 32-bit atomics. That means that we should also
treat 24bit stores as a single masked op rather than one 16bit unmasked
and one 8bit masked.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>
src/microsoft/compiler/dxil_nir.c