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>
This commit is contained in:
Emil Velikov 2016-11-24 20:30:42 +00:00 committed by Emil Velikov
parent 2f1a1f589e
commit 3af8171547
1 changed files with 1 additions and 2 deletions

View File

@ -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: