projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9705e3b
)
amd/addrlib: Fix selection of swizzle modes for 3D compressed images.
author
Kevin Furrow
<kevin.furrow@amd.com>
Sat, 1 Oct 2016 17:39:20 +0000
(13:39 -0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000
(14:44 +0200)
src/amd/addrlib/core/addrelemlib.cpp
patch
|
blob
|
history
diff --git
a/src/amd/addrlib/core/addrelemlib.cpp
b/src/amd/addrlib/core/addrelemlib.cpp
index 477a078705ae2799f0d38aa10252ed536b2d374f..a60a667dcb42ce91230c90dcc84afc70b3f3d1c6 100644
(file)
--- 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)));
}