diff options
author | Tapani Pälli <[email protected]> | 2019-09-17 10:21:24 +0300 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-18 09:09:54 -0700 |
commit | 2e9a37cf1cf47f9108595e0eefe333844b4caa9f (patch) | |
tree | 2295b8b25cfe64d4d543c5c51103eeba3a5d3830 | |
parent | b94ab6f5e33da7c3cf6c1194313f091795abff9d (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
(cherry picked from commit 631255387f0469910db99eccbfbaa63345425739)
-rw-r--r-- | src/gallium/drivers/iris/iris_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |