iris: close screen fd on iris_destroy_screen
authorTapani Pälli <tapani.palli@intel.com>
Tue, 17 Sep 2019 07:21:24 +0000 (10:21 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 17 Sep 2019 11:46:45 +0000 (14:46 +0300)
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@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_screen.c

index 2e7cf9f4e596a84b08861618788fab6a170e7c25..d61993fbaffb82a1a83f8361595858a970370607 100644 (file)
@@ -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);
 }