mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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 commit07fe297a3e)
This commit is contained in:
parent
6c1721fdee
commit
2f5e8312b9
8 changed files with 45 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue