[Mesa-dev] [PATCH 2/2] loader/dri3: Invalidate the drawable after copySubBuffer

Thomas Hellstrom thellstrom at vmware.com
Mon Sep 4 12:27:44 UTC 2017


Anyone using copySubBuffer as a replacement for swapBuffers would probably
want window resizing to update the viewport.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
---
 src/loader/loader_dri3_helper.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c
index c0a6e0d..9549b18 100644
--- a/src/loader/loader_dri3_helper.c
+++ b/src/loader/loader_dri3_helper.c
@@ -664,6 +664,8 @@ loader_dri3_copy_sub_buffer(struct loader_dri3_drawable *draw,
       dri3_fence_trigger(draw->conn, dri3_fake_front_buffer(draw));
       dri3_fence_await(draw->conn, dri3_fake_front_buffer(draw));
    }
+
+   draw->ext->flush->invalidate(draw->dri_drawable);
    dri3_fence_await(draw->conn, back);
 }
 
-- 
2.7.4



More information about the mesa-dev mailing list