From f49ff1548be1306ece10cb3399fa55227025cf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Wed, 27 May 2020 01:47:16 -0400 Subject: [PATCH] wgl: Call flush_resource() before presenting Reviewed-by: Charmaine Lee Reviewed-by: Erik Faye-Lund Part-of: --- 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