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

Author: Jesse Natalie <[email protected]>
Date:   Wed Jan 11 13:09:49 2023 -0800

dzn: Enable multiview

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

---

 src/microsoft/vulkan/dzn_device.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/microsoft/vulkan/dzn_device.c 
b/src/microsoft/vulkan/dzn_device.c
index 7a2d707fc6d..563f4fd18d7 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -99,6 +99,7 @@ dzn_physical_device_get_extensions(struct dzn_physical_device 
*pdev)
       .KHR_draw_indirect_count               = true,
       .KHR_driver_properties                 = true,
       .KHR_dynamic_rendering                 = false,
+      .KHR_multiview                         = true,
       .KHR_shader_draw_parameters            = true,
 #ifdef DZN_USE_WSI_PLATFORM
       .KHR_swapchain                         = true,
@@ -1316,8 +1317,8 @@ dzn_GetPhysicalDeviceFeatures2(VkPhysicalDevice 
physicalDevice,
       .uniformAndStorageBuffer16BitAccess = false,
       .storagePushConstant16              = false,
       .storageInputOutput16               = false,
-      .multiview                          = false,
-      .multiviewGeometryShader            = false,
+      .multiview                          = true,
+      .multiviewGeometryShader            = true,
       .multiviewTessellationShader        = false,
       .variablePointersStorageBuffer      = true,
       .variablePointers                   = true,
@@ -1685,8 +1686,8 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice 
physicalDevice,
       .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES,
       .deviceLUIDValid                       = true,
       .pointClippingBehavior                 = 
VK_POINT_CLIPPING_BEHAVIOR_ALL_CLIP_PLANES,
-      .maxMultiviewViewCount                 = 0,
-      .maxMultiviewInstanceIndex             = 0,
+      .maxMultiviewViewCount                 = 6,
+      .maxMultiviewInstanceIndex             = UINT_MAX,
       .protectedNoFault                      = false,
       /* Vulkan 1.1 wants this value to be at least 1024. Let's stick to this
        * minimum requirement for now, and hope the total number of samplers

Reply via email to