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:
parent
2f1a1f589e
commit
3af8171547
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue