zink: move spec constant emission to the types/consts block
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 17 Oct 2022 12:22:18 +0000 (08:22 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 14:17:05 +0000 (14:17 +0000)
commitc305a2c9625a91e8e4bbaca5b20b2eb7d69a74de
treebae37ae50eb9577a26506aed42dc24ab1b0e5896
parent1e51383258ee48f6af8745d99638f4b45b8c52f6
zink: move spec constant emission to the types/consts block

spec constants are used as constants, so emitting them in the instructions
block can create mismatched ordering of the constant usage with other types

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19116>
src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c