Module: Mesa Branch: master Commit: f49ff1548be1306ece10cb3399fa55227025cf49 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f49ff1548be1306ece10cb3399fa55227025cf49
Author: Louis-Francis Ratté-Boulianne <[email protected]> Date: Wed May 27 01:47:16 2020 -0400 wgl: Call flush_resource() before presenting Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535> --- src/gallium/frontends/wgl/stw_st.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/frontends/wgl/stw_st.c b/src/gallium/frontends/wgl/stw_st.c index b640e0b6ebe..5a6990139f6 100644 --- a/src/gallium/frontends/wgl/stw_st.c +++ b/src/gallium/frontends/wgl/stw_st.c @@ -267,6 +267,9 @@ notify_before_flush_cb(void* _args) /* FRONT_LEFT is resolved in flush_frontbuffer. */ } + + if (args->stwfb->textures[ST_ATTACHMENT_BACK_LEFT]) + pipe->flush_resource(pipe, args->stwfb->textures[ST_ATTACHMENT_BACK_LEFT]); } void @@ -335,6 +338,9 @@ stw_st_framebuffer_flush_front(struct st_context_iface *stctx, stw_pipe_blit(pipe, stwfb->textures[statt], stwfb->msaa_textures[statt]); } + if (stwfb->textures[statt]) + pipe->flush_resource(pipe, stwfb->textures[statt]); + pipe->flush(pipe, NULL, 0); /* We must not cache HDCs anywhere, as they can be invalidated by the _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
