st/wgl: allocate and resolve msaa-textures
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 5 May 2020 20:01:42 +0000 (22:01 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 7 May 2020 22:38:03 +0000 (22:38 +0000)
commita885ee5258241d7ec4b9288cb15955e59d526d1a
treecfc6940fc4e2092e9f8b046a41354fef20aa1b62
parent947bb04fcc03c9c1b8a04a6b3cd7f86825e6f244
st/wgl: allocate and resolve msaa-textures

LLVMpipe recently got the ability to render to MSAA-surfaces, but in
order for this to work on Windows, we need to allocate a separate MSAA
resource and resolve using a blit before we can display it.

Without this, we end up always displaying the first sample instead of
the resolved result.

Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4926>
src/gallium/state_trackers/wgl/stw_st.c