[Mesa-dev] [PATCH 03/11] glx: Notify the dri3 loader if we are about destroy a dri screen

Thomas Hellstrom thellstrom at vmware.com
Fri Aug 11 14:14:12 UTC 2017


This gives the dri3 loader a chance to clean up the blit context cache.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
---
 src/glx/dri3_glx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index dc94740..b79fec7 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -572,6 +572,7 @@ dri3_destroy_screen(struct glx_screen *base)
    struct dri3_screen *psc = (struct dri3_screen *) base;
 
    /* Free the direct rendering per screen data */
+   loader_dri3_close_screen(psc->driScreen);
    (*psc->core->destroyScreen) (psc->driScreen);
    driDestroyConfigs(psc->driver_configs);
    close(psc->fd);
-- 
2.7.4



More information about the mesa-dev mailing list