Mesa (master): wgl: Call flush_resource() before presenting
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 18 10:43:33 UTC 2020
Module: Mesa
Branch: master
Commit: f49ff1548be1306ece10cb3399fa55227025cf49
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f49ff1548be1306ece10cb3399fa55227025cf49
Author: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
Date: Wed May 27 01:47:16 2020 -0400
wgl: Call flush_resource() before presenting
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
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
More information about the mesa-commit
mailing list