zink: simplify get_slot_components() for xfb emission
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 12 Jan 2023 17:59:58 +0000 (12:59 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 12 Jan 2023 23:43:40 +0000 (23:43 +0000)
commitf3d046af6ac3a124e4565b13075ef0b37e88e72d
treee85aafb01a3aa10952f2dc70e6fc1c8b7449a1f2
parent3fcdd9e4a7a63a9a6a1f72c2c459e02acba7f578
zink: simplify get_slot_components() for xfb emission

multiplying by the array size is always wrong for this case, and not
doing so allows for some simplification and better inlining, though
the output results are identical

the one corner case is clip/cull distance, which need special handling
since they're arrays with vec semantics

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20678>
src/gallium/drivers/zink/zink_compiler.c