Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/rendervulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ bool CVulkanDevice::createDevice()
// (without an actual physical device)
vk_log.warnf( "physical device doesn't support VK_EXT_physical_device_drm" );
} else {
#if HAVE_DRM
VkPhysicalDeviceDrmPropertiesEXT drmProps = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT,
};
Expand Down Expand Up @@ -500,13 +499,10 @@ bool CVulkanDevice::createDevice()
return false;
}

if ( drmProps.hasPrimary ) {
if ( !GetBackend()->UsesVulkanSwapchain() && drmProps.hasPrimary ) {
m_bHasDrmPrimaryDevId = true;
m_drmPrimaryDevId = makedev( drmProps.primaryMajor, drmProps.primaryMinor );
}
#else
vk_log.warnf( "built without DRM support" );
#endif
}

if ( m_bSupportsModifiers && !supportsForeignQueue ) {
Expand Down