summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-11-24 20:30:42 +0000
committerEmil Velikov <[email protected]>2016-11-28 19:47:28 +0000
commit3af81715470f8d656fe8b8e35475ed2b5fc766da (patch)
treeebba5961b157ca77fbfb4a604ebee2503b471505
parent2f1a1f589e5f744b26ec17497097aae8de73672c (diff)
anv: don't double-close the same fd
Cc: "13.0" <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
-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 3050c383a79..a410376a9c7 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -197,8 +197,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);
@@ -215,6 +213,7 @@ anv_physical_device_init(struct anv_physical_device *device,
isl_device_init(&device->isl_dev, &device->info, swizzled);
+ close(fd);
return VK_SUCCESS;
fail: