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)
commit631255387f0469910db99eccbfbaa63345425739
treed769105ab788543633b41fb1fddae12a1b18bc28
parent34d51f931bf5a4cd5814ab71d5371a6075ecb1ff
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@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_screen.c