zink: fix spirv_builder_spec_const_uint
authorKarol Herbst <kherbst@redhat.com>
Tue, 25 Oct 2022 22:02:15 +0000 (00:02 +0200)
committerKarol Herbst <kherbst@redhat.com>
Tue, 25 Oct 2022 22:02:37 +0000 (00:02 +0200)
commit3128a8cada2a3434ed27211a432fa8c0dd21f348
treeeec0e7e8cdc6ba674e7d138d8a6e7d590a287e48
parent0c4676a3aa182ceca13182c5db245dc3dacad419
zink: fix spirv_builder_spec_const_uint

We need to create the type upfront otherwise the spir-v binary gets
corrupted.

Fixes: c305a2c9625 ("zink: move spec constant emission to the types/consts block")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19310>
src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c