mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
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:
parent
28be0cca45
commit
6836118cd2
1 changed files with 2 additions and 1 deletions
|
|
@ -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__);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue