zink: correct depth-stencil format
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 8 Nov 2019 11:22:00 +0000 (12:22 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 11 Nov 2019 14:35:53 +0000 (14:35 +0000)
commitb4d47e21d7004412a16c12b762239dbeee665752
treebecdbdec6860a16db2cf21aa7088702e8327ec76
parentd7a6cc8f4afef694d1aa95d1bb8f5ac459cb5559
zink: correct depth-stencil format

When using packed vulkan-formats on little-endian systems, we need to
swap the components for the gallium formats. And since Zink isn't
big-endian safe yet, little-endian is the only endianess we care about
right now.

This fixes a bunch of piglit tests, amongs others:
- spec@arb_depth_texture@depth-level-clamp
- spec@arb_depth_texture@depthstencil-render-miplevels * d=z24
- spec@arb_depth_texture@fbo-depth-gl_depth_component24-blit
- spec@arb_depth_texture@fbo-depth-gl_depth_component24-copypixels
- spec@arb_depth_texture@fbo-depth-gl_depth_component24-drawpixels
- spec@arb_depth_texture@fbo-depth-gl_depth_component24-readpixels

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: 8d46e35d16e ("zink: introduce opengl over vulkan")
src/gallium/drivers/zink/zink_screen.c