mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
8d2f83ce98
commit
b06e237363
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue