nvk: Remove duplicate DRM_NODE_RENDER check

This check happens at the top of nvk_create_drm_physical_device(..).

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28741>
This commit is contained in:
Christian Gmeiner 2024-04-15 13:09:42 +02:00 committed by Marge Bot
parent 8d2f83ce98
commit b06e237363
1 changed files with 0 additions and 6 deletions

View File

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