zink: fix surface creation for cube slices
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 17 Feb 2021 03:20:08 +0000 (22:20 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 03:10:17 +0000 (03:10 +0000)
commit0a6b8685aa394c280711cc2ea2148e6e1b3d1310
tree908ad164db66e3af2155ec1560e96c965a714bf3
parent44f76d5fc7630913eab7450b70719bc20588e6d7
zink: fix surface creation for cube slices

if first==last layer, this should be a 2D slice of the cube

else if this isn't all the layers, this should be an array of slices

fixes a bunch of spec@arb_shader_image_size@builtin cases

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9080>
src/gallium/drivers/zink/zink_surface.c