wgl, d3d12: Handle front buffer writes for double-buffered MSAA surfaces backed by...
authorJesse Natalie <jenatali@microsoft.com>
Thu, 28 Apr 2022 20:53:58 +0000 (13:53 -0700)
committerJesse Natalie <jenatali@microsoft.com>
Wed, 1 Jun 2022 23:18:12 +0000 (16:18 -0700)
commit1ef329b825c27871cec86b17bf49d9e4d0eb1637
treec655dd016e68eb298eec9fbf50cf25dffb00c35b
parent49dc60efa1df60563a7e992f5070ed10541ab8af
wgl, d3d12: Handle front buffer writes for double-buffered MSAA surfaces backed by swapchains

We don't need to go as far as the fake front thing when MSAA is being used, because the
swapchain (single-sampled) is already decoupled from the app render buffers. But we do
need to direct the frontbuffer flush to the single-sampled back buffer, and then present
the back buffer. We also need to swap the buffers when we do this, so the next blit
targets the former front buffer.

Reviewed-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16227>
src/gallium/frontends/wgl/stw_st.c