diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 28c918f8ba2..8ddc299f416 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -437,6 +437,7 @@ get_device_extensions(const struct anv_physical_device *device, .INTEL_shader_integer_functions2 = true, .EXT_multi_draw = true, .NV_compute_shader_derivatives = true, + .MESA_image_alignment_control = true, .VALVE_mutable_descriptor_type = true, }; } @@ -948,6 +949,9 @@ get_features(const struct anv_physical_device *pdevice, /* VK_EXT_legacy_dithering */ .legacyDithering = true, + + /* VK_MESA_image_alignment_control */ + .imageAlignmentControl = true, }; /* The new DOOM and Wolfenstein games require depthBounds without @@ -1890,6 +1894,12 @@ get_properties(const struct anv_physical_device *pdevice, } #endif /* DETECT_OS_ANDROID */ + + /* VK_MESA_image_alignment_control */ + { + /* We support 4k/64k tiling alignments on most platforms */ + props->supportedImageAlignmentMask = (1 << 12) | (1 << 16); + } } static VkResult MUST_CHECK