zink: fix crash when restoring sampler-states
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 28 Nov 2019 17:22:24 +0000 (18:22 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 08:19:54 +0000 (09:19 +0100)
commitf2188e58cea14c4b4e05634b7b82c4743d1c5c1d
treeec1dd78b2dbafb92a1e55a733888539f496f2204
parent655b9aa711d78c685866b7956d0de7b2d0db52a2
zink: fix crash when restoring sampler-states

When I changed to heap-allocated sampler-objects, I missed the code-path
that restores sampler-states after the blitter; it needs an array of
pointers, not an array of VkSampler objects to behave.

This fixes spec@arb_texture_cube_map@copyteximage for me.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 5ea787950f6 ("zink: heap-allocate samplers objects")
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_context.h