Module: Mesa
Branch: master
Commit: ece2cc3352f52858587d13092b4300b0d6447760
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ece2cc3352f52858587d13092b4300b0d6447760

Author: Louis-Francis Ratté-Boulianne <[email protected]>
Date:   Wed May 27 01:50:20 2020 -0400

wgl: Wait for fence when not using winsys framebuffer

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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/frontends/wgl/stw_st.c 
b/src/gallium/frontends/wgl/stw_st.c
index 5a6990139f6..6dabb2ae2d8 100644
--- a/src/gallium/frontends/wgl/stw_st.c
+++ b/src/gallium/frontends/wgl/stw_st.c
@@ -286,6 +286,9 @@ stw_st_flush(struct st_context_iface *stctx,
    args.stwfb = stwfb;
    args.flags = flags;
 
+   if (flags & ST_FLUSH_END_OF_FRAME && !stwfb->fb->winsys_framebuffer)
+      flags |= ST_FLUSH_WAIT;
+
    if (flags & ST_FLUSH_WAIT)
       pfence = &fence;
    stctx->flush(stctx, flags, pfence, notify_before_flush_cb, &args);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to