spirv2dxil: Lower large temps to scratch
authorJesse Natalie <jenatali@microsoft.com>
Mon, 1 May 2023 23:18:22 +0000 (16:18 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 9 May 2023 00:33:59 +0000 (00:33 +0000)
commita6ac1f5fbd392ff2ce966a55b8634ee3366cb93e
treef8954b79ca21cdbc26be017587903d7d6027aa04
parenta4ce095bad9115c25b05c82db171171275d6e3a4
spirv2dxil: Lower large temps to scratch

WARP has a temp register limit, and the control flow needed to convert
indirect to direct accesses on large temps ends up bloating shaders massively.
We can just go ahead and spill these large temps to scratch, which maps
to an alloca in DXIL.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22787>
src/microsoft/spirv_to_dxil/dxil_spirv_nir.c