tu: Move Android extensions into main list

No reason for these to be separated or be guarded by DETECT_OS_ANDROID.

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41195>
This commit is contained in:
Valentine Burley 2026-04-27 10:07:42 +02:00 committed by Marge Bot
parent 6d6efc332a
commit 924e86b957

View file

@ -154,6 +154,7 @@ static void
get_device_extensions(const struct tu_physical_device *device,
struct vk_device_extension_table *ext)
{
bool has_gralloc = vk_android_get_ugralloc() != NULL;
/* device->has_raytracing contains the value of the SW fuse. If the
* device doesn't have a fuse (i.e. a740), we have to ignore it because
* kgsl returns false. If it does have a fuse, enable raytracing if the
@ -352,6 +353,8 @@ get_device_extensions(const struct tu_physical_device *device,
/* For Graphics Flight Recorder (GFR) */
.AMD_buffer_marker = true,
.ANDROID_external_memory_android_hardware_buffer = has_gralloc,
.ANDROID_native_buffer = has_gralloc,
.ARM_rasterization_order_attachment_access = true,
.GOOGLE_decorate_string = true,
.GOOGLE_hlsl_functionality1 = true,
@ -367,13 +370,6 @@ get_device_extensions(const struct tu_physical_device *device,
.VALVE_fragment_density_map_layered = true,
.VALVE_mutable_descriptor_type = true,
} };
#if DETECT_OS_ANDROID
if (vk_android_get_ugralloc() != NULL) {
ext->ANDROID_external_memory_android_hardware_buffer = true,
ext->ANDROID_native_buffer = true;
}
#endif
}
static void