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:
Samuel Pitoiset 2026-05-27 08:30:49 +02:00 committed by Marge Bot
parent e83641907a
commit 56e96f5bff

View file

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