amd/addrlib: Fix selection of swizzle modes for 3D compressed images.
authorKevin Furrow <kevin.furrow@amd.com>
Sat, 1 Oct 2016 17:39:20 +0000 (13:39 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000 (14:44 +0200)
src/amd/addrlib/core/addrelemlib.cpp

index 477a078705ae2799f0d38aa10252ed536b2d374f..a60a667dcb42ce91230c90dcc84afc70b3f3d1c6 100644 (file)
@@ -1724,7 +1724,8 @@ VOID ElemLib::SetClearComps(
 BOOL_32 ElemLib::IsBlockCompressed(
     AddrFormat format)  ///< [in] Format
 {
-    return format >= ADDR_FMT_BC1 && format <= ADDR_FMT_BC7;
+    return (((format >= ADDR_FMT_BC1) && (format <= ADDR_FMT_BC7)) ||
+            ((format >= ADDR_FMT_ASTC_4x4) && (format <= ADDR_FMT_ASTC_12x12)));
 }