diff options
author | Kevin Furrow <kevin.furrow@amd.com> | 2016-10-01 13:39:20 -0400 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2017-03-30 14:44:33 +0200 |
commit | 1360018c1c9e07fd04bf6a03f8f1d572fb5928ab (patch) | |
tree | ff554a92c94a6a6da5afdff80d67e6acee50bb8f /src/amd | |
parent | 9705e3b72c51f21caaf13d8bde1abf447e94f082 (diff) |
amd/addrlib: Fix selection of swizzle modes for 3D compressed images.
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/addrlib/core/addrelemlib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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))); } |