Skip to content

Commit

Permalink
anv: Enable VK_EXT_swapchain_maintenance1 on Android 14
Browse files Browse the repository at this point in the history
VK_EXT_swapchain_maintenance1 is supported since Android 14 so enable
it in vulkan driver to pass CTS test.

Tracked-On: OAM-117264
Signed-off-by: Marc Mao <marc.mao@intel.com>
Signed-off-by: Lin, Shenghua <shenghua.lin@intel.com>
  • Loading branch information
ShenghuaLinINTEL authored and sysopenci committed Apr 16, 2024
1 parent 622f3b3 commit e113e4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/intel/vulkan/anv_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ static const struct vk_instance_extension_table instance_extensions = {
.KHR_get_surface_capabilities2 = true,
.KHR_surface = true,
.KHR_surface_protected_capabilities = true,
#if defined(ANDROID) && ANDROID_API_LEVEL >= 34
.EXT_surface_maintenance1 = true,
#endif
.EXT_swapchain_colorspace = true,
#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
Expand Down Expand Up @@ -391,6 +394,9 @@ get_device_extensions(const struct anv_physical_device *device,
.EXT_shader_subgroup_vote = true,
.EXT_shader_viewport_index_layer = true,
.EXT_subgroup_size_control = true,
#if defined(ANV_USE_WSI_PLATFORM) && defined(ANDROID) && ANDROID_API_LEVEL >= 34
.EXT_swapchain_maintenance1 = true,
#endif
.EXT_texel_buffer_alignment = true,
.EXT_tooling_info = true,
.EXT_transform_feedback = true,
Expand Down Expand Up @@ -849,6 +855,11 @@ get_features(const struct anv_physical_device *pdevice,
/* VK_EXT_dynamic_rendering_unused_attachments */
.dynamicRenderingUnusedAttachments = true,

/* VK_EXT_swapchain_maintenance1 */
#if defined(ANDROID) && ANDROID_API_LEVEL >= 34
.swapchainMaintenance1 = true,
#endif

/* VK_EXT_depth_bias_control */
.depthBiasControl = true,
.floatRepresentation = true,
Expand Down

0 comments on commit e113e4a

Please sign in to comment.