anv/android: enable emulated astc for applications
This layer was blocking Android emulated ASTC support as it did not take "emu_astc_ldr" in to account. Cc: mesa-stable Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Tested-by: Mi, Yanfeng <yanfeng.mi@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29415>
This commit is contained in:
@@ -38,7 +38,8 @@ VkResult anv_android_CreateImageView(
|
||||
* 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__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user