[Mesa-dev] [PATCH 056/140] amd/addrlib: Fix selection of swizzle modes for 3D compressed images.
Marek Olšák
maraeo at gmail.com
Mon Mar 20 22:43:06 UTC 2017
From: Kevin Furrow <kevin.furrow at amd.com>
---
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 477a078..a60a667 100644
--- a/src/amd/addrlib/core/addrelemlib.cpp
+++ b/src/amd/addrlib/core/addrelemlib.cpp
@@ -1717,21 +1717,22 @@ VOID ElemLib::SetClearComps(
*
* @note
*
* @return
* BOOL_32
****************************************************************************************************
*/
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)));
}
/**
****************************************************************************************************
* ElemLib::IsCompressed
*
* @brief
* TRUE if this is block compressed format or 1 bit format
*
--
2.7.4
More information about the mesa-dev
mailing list