[Mesa-dev] [PATCH] vl/dri3: set back buffer from output to NULL with front buffer case

Liu, Leo Leo.Liu at amd.com
Thu May 9 18:10:21 UTC 2019


Since the using output optimization is only for back buffer case

Signed-off-by: Leo Liu <leo.liu at amd.com>
---
 src/gallium/auxiliary/vl/vl_winsys_dri3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri3.c b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
index 1558d832555..77d1972af2c 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri3.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri3.c
@@ -438,6 +438,7 @@ dri3_set_drawable(struct vl_dri3_screen *scrn, Drawable drawable)
          ret = false;
       else {
          scrn->is_pixmap = true;
+         scrn->base.set_back_texture_from_output = NULL;
          if (scrn->front_buffer) {
             dri3_free_front_buffer(scrn, scrn->front_buffer);
             scrn->front_buffer = NULL;
-- 
2.20.1



More information about the mesa-dev mailing list