From: Tapani Pälli Date: Tue, 17 Sep 2019 07:21:24 +0000 (+0300) Subject: iris: close screen fd on iris_destroy_screen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=631255387f0469910db99eccbfbaa63345425739;p=mesa.git 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 Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 2e7cf9f4e59..d61993fbaff 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -525,6 +525,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); }