Mesa (staging/19.2): iris: close screen fd on iris_destroy_screen

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 17 16:01:47 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: 2f90007c8b902c3c88d0a449323cc2a60cd9b2c6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f90007c8b902c3c88d0a449323cc2a60cd9b2c6

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Tue Sep 17 10:21:24 2019 +0300

iris: close screen fd on iris_destroy_screen

Otherwise it never gets closed, this fixes errors seen with deqp-egl
where we end up opening 1024 files.

Fixes: 2dce0e94 ("iris: Initial commit of a new 'iris' driver for Intel Gen8+ GPUs.")
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
(cherry picked from commit 631255387f0469910db99eccbfbaa63345425739)

---

 src/gallium/drivers/iris/iris_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index fa528a0d67a..10b1b5969d8 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -521,6 +521,7 @@ iris_destroy_screen(struct pipe_screen *pscreen)
    u_transfer_helper_destroy(pscreen->transfer_helper);
    iris_bufmgr_destroy(screen->bufmgr);
    disk_cache_destroy(screen->disk_cache);
+   close(screen->fd);
    ralloc_free(screen);
 }
 




More information about the mesa-commit mailing list