mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
amd/addrlib: Fix selection of swizzle modes for 3D compressed images.
This commit is contained in:
parent
9705e3b72c
commit
1360018c1c
1 changed files with 2 additions and 1 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue