From b06e237363d0137861e71729556d5fb5e65b5887 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Mon, 15 Apr 2024 13:09:42 +0200 Subject: [PATCH] nvk: Remove duplicate DRM_NODE_RENDER check This check happens at the top of nvk_create_drm_physical_device(..). Signed-off-by: Christian Gmeiner Part-of: --- src/nouveau/vulkan/nvk_physical_device.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index fa339c6e633..8644217ebe3 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -1120,12 +1120,6 @@ nvk_create_drm_physical_device(struct vk_instance *_instance, goto fail_ws_dev; } - if (!(drm_device->available_nodes & (1 << DRM_NODE_RENDER))) { - result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, - "NVK requires a render node"); - goto fail_ws_dev; - } - struct stat st; if (stat(drm_device->nodes[DRM_NODE_RENDER], &st)) { result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,