From 1360018c1c9e07fd04bf6a03f8f1d572fb5928ab Mon Sep 17 00:00:00 2001 From: Kevin Furrow Date: Sat, 1 Oct 2016 13:39:20 -0400 Subject: amd/addrlib: Fix selection of swizzle modes for 3D compressed images. --- src/amd/addrlib/core/addrelemlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/addrlib/core/addrelemlib.cpp b/src/amd/addrlib/core/addrelemlib.cpp index 477a078705..a60a667dcb 100644 --- a/src/amd/addrlib/core/addrelemlib.cpp +++ b/src/amd/addrlib/core/addrelemlib.cpp @@ -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))); } -- cgit v1.2.3