Skip to content

Commit

Permalink
Primary node clarification for VK_EXT_physical_device_drm
Browse files Browse the repository at this point in the history
The extension hinted that the primary node represents display
capabilities as its intended purpose, but the current text let it
ambiguous enough that there has been confusion and proposed
implementations which expose different devices for the primary node.

Add clarification notes to further define the scope of primary node
in the context of this extension.

Signed-off-by: Erico Nunes <[email protected]>
  • Loading branch information
enunes committed Jan 20, 2025
1 parent 46e04bb commit 5198452
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
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

0 comments on commit 5198452

Please sign in to comment.