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>
(cherry picked from commit 07fe297a3e)
This commit is contained in:
Samuel Pitoiset 2025-08-04 11:20:43 +02:00 committed by Eric Engestrom
parent 6c1721fdee
commit 2f5e8312b9
8 changed files with 45 additions and 1 deletions

View file

@ -854,7 +854,7 @@
"description": "vulkan: fix missing presentId2/presentWait2 enable features",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "07881b085e6742e3664671cbe09b4220dbb56308",
"notes": null

View file

@ -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,
};
}

View file

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

View file

@ -754,6 +754,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 */

View file

@ -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,
};
}

View file

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

View file

@ -718,6 +718,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,
};
}

View file

@ -491,6 +491,14 @@ panvk_per_arch(get_physical_device_features)(
.unifiedImageLayouts = true,
/* Video is not currently supported, so set to false */
.unifiedImageLayoutsVideo = false,
#ifdef PANVK_USE_WSI_PLATFORM
/* VK_KHR_present_id2 */
.presentId2 = true,
/* VK_KHR_present_wait2 */
.presentWait2 = true,
#endif
};
}