Module: Mesa
Branch: main
Commit: 8f9888fd75480b8ab6f2f130c783ec689466380c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f9888fd75480b8ab6f2f130c783ec689466380c

Author: Jesse Natalie <jenat...@microsoft.com>
Date:   Wed Nov  1 10:00:37 2023 -0700

dzn: Implement VK_MSFT_layered_driver

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25993>

---

 src/microsoft/vulkan/dzn_device.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/microsoft/vulkan/dzn_device.c 
b/src/microsoft/vulkan/dzn_device.c
index a11a482e1e1..8581a2882d1 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -156,6 +156,7 @@ dzn_physical_device_get_extensions(struct 
dzn_physical_device *pdev)
       .EXT_shader_subgroup_vote              = true,
       .EXT_subgroup_size_control             = true,
       .EXT_vertex_attribute_divisor          = true,
+      .MSFT_layered_driver                   = true,
    };
 }
 
@@ -1960,6 +1961,12 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice 
physicalDevice,
          break;
       }
 #endif
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT: {
+         VkPhysicalDeviceLayeredDriverPropertiesMSFT *layered_props =
+            (VkPhysicalDeviceLayeredDriverPropertiesMSFT *)ext;
+         layered_props->underlyingAPI = 
VK_LAYERED_DRIVER_UNDERLYING_API_D3D12_MSFT;
+         break;
+      }
       default:
          dzn_debug_ignored_stype(ext->sType);
          break;

Reply via email to