mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
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 3af8171547)
This commit is contained in:
parent
7dceb97604
commit
a5feaf22be
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue