mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 10:18:30 +02:00
radv: prevent closing the render node fd twice for AMD_FORCE_VPIPE=1
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41824>
This commit is contained in:
parent
e83641907a
commit
56e96f5bff
1 changed files with 2 additions and 1 deletions
|
|
@ -2776,7 +2776,8 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
|
|||
|
||||
*pdev_out = pdev;
|
||||
|
||||
close(fd);
|
||||
if (fd != -1)
|
||||
close(fd);
|
||||
fd = -1;
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue