Skip to content

Commit

Permalink
anv/android: enable emulated astc for 3Dmark app issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Yanfeng-Mi authored and celadon committed May 29, 2024
1 parent 5bd3c53 commit be26b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/intel/vulkan/layers/anv_android_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
}
Expand Down

0 comments on commit be26b06

Please sign in to comment.