zink: Fix 32-bit compilation
authorJoshua Ashton <joshua@froggi.es>
Sat, 8 Aug 2020 06:24:56 +0000 (07:24 +0100)
committerJoshua Ashton <joshua@froggi.es>
Sat, 8 Aug 2020 11:46:51 +0000 (12:46 +0100)
commitb238d17a02f13a80771e81e3604bc6cc86e26da2
tree8094422b919c2879ea00e83f42bb5b1ce997ce9a
parent08f3dcf2f6ef1da8aec4c95a531851c62c5798d6
zink: Fix 32-bit compilation

`sizeof(void*) != sizeof(VkShaderModule)` on x86 hence this fails with `-Werror=int-conversion`

Fixes: 0f059d550bd "zink: split up creating zink_shader objects and VkShaderModule objects"
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6239>
src/gallium/drivers/zink/zink_compiler.c