From be26b06ed137c7ef7897818b08f44b6ce00a5dd6 Mon Sep 17 00:00:00 2001 From: "Mi, Yanfeng" Date: Tue, 28 May 2024 11:34:14 +0800 Subject: [PATCH] anv/android: enable emulated astc for 3Dmark app issue This layer was blocking Android emulated ASTC support as it did not take "emu_astc_ldr" into account. this commit already promoted to upstream mesa: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29415 Tracked-On: OAM-118516 Signed-off-by: Mi, Yanfeng --- src/intel/vulkan/layers/anv_android_layer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/layers/anv_android_layer.c b/src/intel/vulkan/layers/anv_android_layer.c index e36eb820ab6..bb742308de8 100644 --- a/src/intel/vulkan/layers/anv_android_layer.c +++ b/src/intel/vulkan/layers/anv_android_layer.c @@ -38,7 +38,8 @@ android_CreateImageView(VkDevice _device, * format. */ if (fmt && fmt->layout == UTIL_FORMAT_LAYOUT_ASTC && - device->info->verx10 >= 125) { + device->info->verx10 >= 125 && + !(device->physical->has_astc_ldr || device->physical->emu_astc_ldr)){ return vk_errorf(device, VK_ERROR_OUT_OF_HOST_MEMORY, "ASTC format not supported (%s).", __func__); }