zink: heap-allocate samplers objects
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 29 Oct 2019 09:07:53 +0000 (10:07 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 31 Oct 2019 13:57:43 +0000 (13:57 +0000)
commit5ea787950f6e7feb0f9f3a146ae0d626bad19b63
treec6de8788be17900a74e93051f1da58c5e43c966c
parent0ca0ad1252bbdc8e9fba5d3d89f8bc854ce355eb
zink: heap-allocate samplers objects

VkSampler is 64-bit even on 32-bit systems, so casting it to a pointer
is a bad idea there. So let's heap-allocate the sampler-object instead.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2017
Reviewed-by: Witold Baryluk <witold.baryluk@gmail.com>
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
src/gallium/drivers/zink/zink_context.c