summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2016-11-24 20:30:42 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2016-12-14 19:03:09 +0000
commita5feaf22be3e975a81a99318f5d3264387a9fa66 (patch)
tree01dfae361c4e56f1353897005dfcaf5eeeb5dd8f
parent7dceb97604203ad466d5355a5bdce8faddf2a919 (diff)
downloadexternal_mesa3d-a5feaf22be3e975a81a99318f5d3264387a9fa66.zip
external_mesa3d-a5feaf22be3e975a81a99318f5d3264387a9fa66.tar.gz
external_mesa3d-a5feaf22be3e975a81a99318f5d3264387a9fa66.tar.bz2
anv: don't double-close the same fd
Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit 3af81715470f8d656fe8b8e35475ed2b5fc766da)
-rw-r--r--src/intel/vulkan/anv_device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 125df22..ecdaeb7 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -162,8 +162,6 @@ anv_physical_device_init(struct anv_physical_device *device,
device->info.max_cs_threads = max_cs_threads;
}
- close(fd);
-
brw_process_intel_debug_variable();
device->compiler = brw_compiler_create(NULL, &device->info);
@@ -181,6 +179,7 @@ anv_physical_device_init(struct anv_physical_device *device,
/* XXX: Actually detect bit6 swizzling */
isl_device_init(&device->isl_dev, &device->info, swizzled);
+ close(fd);
return VK_SUCCESS;
fail: