dzn: Enable multiview

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20650>
This commit is contained in:
Jesse Natalie 2023-01-11 13:09:49 -08:00 committed by Marge Bot
parent ebf2604562
commit 8c0531cf91

View file

@ -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