zink: fix global stores
authorKarol Herbst <git@karolherbst.de>
Tue, 22 Aug 2023 19:18:17 +0000 (21:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Aug 2023 12:44:23 +0000 (12:44 +0000)
commitac289b7268a510852df3d48ce4786674142e109f
tree73d2e40ca2f0393776f117943aace0d614460c44
parentac1685bc6a8ca6d36c1048bf8fac1af44f88ed94
zink: fix global stores

We have to cast the value if the type doesn't match.

Fixes: ddc5c304899 ("zink: handle global and scratch vars")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24859>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c