mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-02 21:01:01 +00:00
Add support for VK_EXT_physical_device_drm
This commit is contained in:
@@ -89,6 +89,7 @@ Maintainers can update this file by updating vk.xml in this folder and running `
|
||||
* `VK_EXT_non_seamless_cube_map`
|
||||
* `VK_EXT_pageable_device_local_memory`
|
||||
* `VK_EXT_pci_bus_info`
|
||||
* `VK_EXT_physical_device_drm`
|
||||
* `VK_EXT_pipeline_creation_cache_control`
|
||||
* `VK_EXT_pipeline_creation_feedback`
|
||||
* `VK_EXT_pipeline_protected_access`
|
||||
@@ -331,7 +332,6 @@ The portability subset is only relevant on mac, which is not a supported platfor
|
||||
* `VK_EXT_multi_draw`
|
||||
* `VK_EXT_multisampled_render_to_swapchain`
|
||||
* `VK_EXT_opacity_micromap`
|
||||
* `VK_EXT_physical_device_drm`
|
||||
* `VK_EXT_pipeline_library_group_handles`
|
||||
* `VK_EXT_present_timing`
|
||||
* `VK_EXT_primitive_restart_index`
|
||||
|
||||
@@ -1781,6 +1781,7 @@ DECLARE_REFLECTION_STRUCT(VkPhysicalDeviceNestedCommandBufferPropertiesEXT);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDevicePCIBusInfoPropertiesEXT);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDeviceDrmPropertiesEXT);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDevicePerformanceQueryFeaturesKHR);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDevicePerformanceQueryPropertiesKHR);
|
||||
DECLARE_REFLECTION_STRUCT(VkPhysicalDevicePipelineCreationCacheControlFeatures);
|
||||
@@ -2331,6 +2332,7 @@ DECLARE_DESERIALISE_TYPE(VkPhysicalDeviceNestedCommandBufferPropertiesEXT);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDevicePCIBusInfoPropertiesEXT);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDeviceDrmPropertiesEXT);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDevicePerformanceQueryFeaturesKHR);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDevicePerformanceQueryPropertiesKHR);
|
||||
DECLARE_DESERIALISE_TYPE(VkPhysicalDevicePipelineCreationCacheControlFeatures);
|
||||
|
||||
@@ -1344,6 +1344,10 @@ static const VkExtensionProperties supportedExtensions[] = {
|
||||
VK_EXT_PCI_BUS_INFO_EXTENSION_NAME,
|
||||
VK_EXT_PCI_BUS_INFO_SPEC_VERSION,
|
||||
},
|
||||
{
|
||||
VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME,
|
||||
VK_EXT_PHYSICAL_DEVICE_DRM_SPEC_VERSION,
|
||||
},
|
||||
{
|
||||
VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_EXTENSION_NAME,
|
||||
VK_EXT_PIPELINE_CREATION_CACHE_CONTROL_SPEC_VERSION,
|
||||
|
||||
@@ -310,6 +310,8 @@ static void AppendModifiedChainedStruct(byte *&tempMem, VkStruct *outputStruct,
|
||||
VkPhysicalDeviceDiscardRectanglePropertiesEXT); \
|
||||
COPY_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES, \
|
||||
VkPhysicalDeviceDriverProperties); \
|
||||
COPY_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT, \
|
||||
VkPhysicalDeviceDrmPropertiesEXT); \
|
||||
COPY_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES, \
|
||||
VkPhysicalDeviceDynamicRenderingFeatures); \
|
||||
COPY_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_LOCAL_READ_FEATURES, \
|
||||
@@ -1297,7 +1299,6 @@ static void AppendModifiedChainedStruct(byte *&tempMem, VkStruct *outputStruct,
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ELAPSED_TIMER_QUERY_FEATURES_QCOM: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV: \
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_FLAGS_FEATURES_KHR: \
|
||||
|
||||
@@ -877,6 +877,10 @@ SERIALISE_VK_HANDLES();
|
||||
PNEXT_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT, \
|
||||
VkPhysicalDevicePCIBusInfoPropertiesEXT) \
|
||||
\
|
||||
/* VK_EXT_physical_device_drm */ \
|
||||
PNEXT_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT, \
|
||||
VkPhysicalDeviceDrmPropertiesEXT) \
|
||||
\
|
||||
/* VK_EXT_pipeline_creation_cache_control */ \
|
||||
PNEXT_STRUCT(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES, \
|
||||
VkPhysicalDevicePipelineCreationCacheControlFeatures) \
|
||||
@@ -2031,9 +2035,6 @@ SERIALISE_VK_HANDLES();
|
||||
PNEXT_UNSUPPORTED(VK_STRUCTURE_TYPE_MICROMAP_BUILD_SIZES_INFO_EXT) \
|
||||
PNEXT_UNSUPPORTED(VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_TRIANGLES_OPACITY_MICROMAP_EXT) \
|
||||
\
|
||||
/* VK_EXT_physical_device_drm */ \
|
||||
PNEXT_UNSUPPORTED(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT) \
|
||||
\
|
||||
/* VK_EXT_pipeline_library_group_handles */ \
|
||||
PNEXT_UNSUPPORTED(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_LIBRARY_GROUP_HANDLES_FEATURES_EXT) \
|
||||
\
|
||||
@@ -12135,6 +12136,26 @@ void Deserialise(const VkPhysicalDevicePCIBusInfoPropertiesEXT &el)
|
||||
DeserialiseNext(el.pNext);
|
||||
}
|
||||
|
||||
template <typename SerialiserType>
|
||||
void DoSerialise(SerialiserType &ser, VkPhysicalDeviceDrmPropertiesEXT &el)
|
||||
{
|
||||
RDCASSERT(ser.IsReading() || el.sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT);
|
||||
SerialiseNext(ser, el.sType, el.pNext);
|
||||
|
||||
SERIALISE_MEMBER(hasPrimary);
|
||||
SERIALISE_MEMBER(hasRender);
|
||||
SERIALISE_MEMBER(primaryMajor);
|
||||
SERIALISE_MEMBER(primaryMinor);
|
||||
SERIALISE_MEMBER(renderMajor);
|
||||
SERIALISE_MEMBER(renderMinor);
|
||||
}
|
||||
|
||||
template <>
|
||||
void Deserialise(const VkPhysicalDeviceDrmPropertiesEXT &el)
|
||||
{
|
||||
DeserialiseNext(el.pNext);
|
||||
}
|
||||
|
||||
template <typename SerialiserType>
|
||||
void DoSerialise(SerialiserType &ser, VkBindImagePlaneMemoryInfo &el)
|
||||
{
|
||||
@@ -15581,6 +15602,7 @@ INSTANTIATE_SERIALISE_TYPE(VkPhysicalDeviceNestedCommandBufferPropertiesEXT);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDeviceNonSeamlessCubeMapFeaturesEXT);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDevicePCIBusInfoPropertiesEXT);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDeviceDrmPropertiesEXT);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDevicePerformanceQueryFeaturesKHR);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDevicePerformanceQueryPropertiesKHR);
|
||||
INSTANTIATE_SERIALISE_TYPE(VkPhysicalDevicePipelineCreationCacheControlFeatures);
|
||||
|
||||
Reference in New Issue
Block a user