dzn: Pass input clip size to shader compilation
authorJesse Natalie <jenatali@microsoft.com>
Thu, 15 Dec 2022 18:59:57 +0000 (10:59 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Dec 2022 18:40:47 +0000 (18:40 +0000)
commite4e0ab220794ba3c1ab9372bf77cdd4932e64574
treed91187d5c8ec4194d58ec9462aa1387655a33da6
parent565d4540719f0e5a31fc388885f2b2a72a23b849
dzn: Pass input clip size to shader compilation

For cases where both clip and cull are used, and a shader has both
inputs and outputs that can contain them, we need metadata to tell
us where the clip array ends and the cull array begins, since they
get combined into CLIP location registers. For outputs, this is in
the nir info, but for input we pass it in a sideband channel.

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