wgl: Fix depth/stencil image support when using zink kopper
authorBilly Laws <blaws05@gmail.com>
Thu, 29 Jun 2023 21:59:29 +0000 (22:59 +0100)
committerMarge Bot <emma+marge@anholt.net>
Sat, 8 Jul 2023 16:51:29 +0000 (16:51 +0000)
commitd3662ba461e15bbefc5f8887bee58e016f69f281
treed2ef5f0ab99b42413a741332711c12e13052ae17
parent544c0b572eaac6744d387d801b23854a70fda395
wgl: Fix depth/stencil image support when using zink kopper

Kopper requires that any depth/stencil images are created through winsys which
was not taken into account by the WGL frontend causing it to hit an assert:
'Assertion failed: ctx->fb_state.zsbuf->texture->bind & PIPE_BIND_DISPLAY_TARGET'

fixes #9256
cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24055>
src/gallium/frontends/wgl/stw_pixelformat.c
src/gallium/frontends/wgl/stw_st.c