vulkan: fix missing presentId2/presentWait2 enable features
Fixes recent VKCTS changes for dEQP-VK.info.device_mandatory_features.
Fixes: 07881b085e ("vulkan: Enable PresentWait2 on many physical devices")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36547>
This commit is contained in:
committed by
Marge Bot
parent
72cf81df54
commit
07fe297a3e
@@ -1376,6 +1376,12 @@ radv_physical_device_get_features(const struct radv_physical_device *pdev, struc
|
||||
|
||||
/* VK_KHR_video_encode_av1 */
|
||||
.videoEncodeAV1 = true,
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = true,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = true,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -510,6 +510,12 @@ get_features(const struct v3dv_physical_device *physical_device,
|
||||
#ifdef V3DV_USE_WSI_PLATFORM
|
||||
/* VK_EXT_swapchain_maintenance1 */
|
||||
.swapchainMaintenance1 = true,
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = true,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = true,
|
||||
#endif
|
||||
|
||||
/* VK_KHR_shader_relaxed_extended_instruction */
|
||||
|
||||
@@ -753,6 +753,12 @@ tu_get_features(struct tu_physical_device *pdevice,
|
||||
#ifdef TU_USE_WSI_PLATFORM
|
||||
/* VK_EXT_swapchain_maintenance1 */
|
||||
features->swapchainMaintenance1 = true;
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
features->presentId2 = true;
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
features->presentWait2 = true;
|
||||
#endif
|
||||
|
||||
/* VK_EXT_texel_buffer_alignment */
|
||||
|
||||
@@ -283,6 +283,12 @@ static void pvr_physical_device_get_supported_features(
|
||||
|
||||
/* VK_KHR_shader_expect_assume */
|
||||
.shaderExpectAssume = false,
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = PVR_USE_WSI_PLATFORM,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = PVR_USE_WSI_PLATFORM,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -974,6 +974,12 @@ get_features(const struct anv_physical_device *pdevice,
|
||||
|
||||
/* VK_KHR_maintenance9 */
|
||||
.maintenance9 = true,
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = true,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = true,
|
||||
};
|
||||
|
||||
/* The new DOOM and Wolfenstein games require depthBounds without
|
||||
|
||||
@@ -717,6 +717,12 @@ nvk_get_device_features(const struct nv_device_info *info,
|
||||
|
||||
/* VK_NV_shader_sm_builtins */
|
||||
.shaderSMBuiltins = true,
|
||||
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = supported_extensions->KHR_present_id2,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = supported_extensions->KHR_present_wait2,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -495,6 +495,14 @@ panvk_per_arch(get_physical_device_features)(
|
||||
|
||||
/* VK_EXT_mutable_descriptor_type */
|
||||
.mutableDescriptorType = PAN_ARCH >= 9,
|
||||
|
||||
#ifdef PANVK_USE_WSI_PLATFORM
|
||||
/* VK_KHR_present_id2 */
|
||||
.presentId2 = true,
|
||||
|
||||
/* VK_KHR_present_wait2 */
|
||||
.presentWait2 = true,
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user