From 764f67a8f29d8fd0e3b79bcbdf5819b7c4c77cd6 Mon Sep 17 00:00:00 2001 From: "Lin, Shenghua" Date: Tue, 9 Apr 2024 06:37:06 +0000 Subject: [PATCH] Enable astc transcode to dxt for iris and astc compute shader decompress for anv In this change, for iris, astc will be converted to dxt. for vulkan, astc will be decompressed using compute shader. Tracked-On: OAM-117170 Signed-off-by: Lin, Shenghua --- src/gallium/auxiliary/pipe-loader/driinfo_gallium.h | 2 +- src/intel/vulkan/anv_device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h b/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h index f764916b630..6b8b4a98848 100644 --- a/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h +++ b/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h @@ -44,7 +44,7 @@ DRI_CONF_SECTION_DEBUG DRI_CONF_FORCE_GL_NAMES_REUSE(false) DRI_CONF_FORCE_GL_MAP_BUFFER_SYNCHRONIZED(false) DRI_CONF_TRANSCODE_ETC(false) - DRI_CONF_TRANSCODE_ASTC(false) + DRI_CONF_TRANSCODE_ASTC(true) DRI_CONF_FORCE_GL_VENDOR() DRI_CONF_FORCE_GL_RENDERER() DRI_CONF_OVERRIDE_VRAM_SIZE() diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index b0961dee7c8..3773aba74d4 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -101,7 +101,7 @@ static const driOptionDescription anv_dri_options[] = { DRI_CONF_ANV_MESH_CONV_PRIM_ATTRS_TO_VERT_ATTRS(-2) DRI_CONF_FORCE_VK_VENDOR(0) DRI_CONF_FAKE_SPARSE(false) -#if defined(ANDROID) && ANDROID_API_LEVEL >= 34 +#if defined(ANDROID) && ANDROID_API_LEVEL >= 32 DRI_CONF_VK_REQUIRE_ASTC(true) #else DRI_CONF_VK_REQUIRE_ASTC(false)