Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary node clarification for VK_EXT_physical_device_drm #2447

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
24 changes: 17 additions & 7 deletions appendices/VK_EXT_physical_device_drm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include::{generated}/meta/{refprefix}VK_EXT_physical_device_drm.adoc[]
=== Other Extension Metadata

*Last Modified Date*::
2021-06-09
2024-11-07
*IP Status*::
No known IP claims.
*Contributors*::
Expand All @@ -25,16 +25,22 @@ Unlike the EGL extension, this extension does not expose a string containing
the name of the device file and instead exposes device minor numbers.

DRM defines multiple device node types.
Each physical device may have one primary node and one render node
associated.
Physical devices may have no primary node (e.g. if the device does not have
a display subsystem), may have no render node (e.g. if it is a software
rendering engine), or may have neither (e.g. if it is a software rendering
engine without a display subsystem).
Each physical device can only be associated with a single underlying DRM
device, which have one primary node and may have one render node.

A physical devices always has the primary node if it is associated with a DRM
device. It may have no render node if e.g. it uses a software rendering engine.

To query DRM properties for a physical device, chain
slink:VkPhysicalDeviceDrmPropertiesEXT to slink:VkPhysicalDeviceProperties2.

[NOTE]
====
This extension only returns primary node and render node from the same
DRM device for a Vulkan physical device. Implementations should not return
primary node and render node from different DRM devices.
====

include::{generated}/interfaces/VK_EXT_physical_device_drm.adoc[]

=== References
Expand All @@ -44,5 +50,9 @@ include::{generated}/interfaces/VK_EXT_physical_device_drm.adoc[]

=== Version History

* Revision 2, 2024-11-07
** Clarification about the meaning of the primary node
** Clarification to not advertise more than one DRM device

* Revision 1, 2021-06-09
** First stable revision
2 changes: 1 addition & 1 deletion xml/vk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22497,7 +22497,7 @@ typedef void* <name>MTLSharedEvent_id</name>;
</extension>
<extension name="VK_EXT_physical_device_drm" number="354" author="EXT" type="device" contact="Simon Ser @emersion" supported="vulkan" depends="VK_KHR_get_physical_device_properties2,VK_VERSION_1_1">
<require>
<enum value="1" name="VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION"/>
<enum value="2" name="VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION"/>
<enum value="&quot;VK_EXT_physical_device_drm&quot;" name="VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME"/>

<enum offset="0" extends="VkStructureType" name="VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT"/>
Expand Down