amd/addrlib: add ADDR_FMT_BG_RG_16_16_16_16

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23339>
This commit is contained in:
Marek Olšák 2023-05-31 12:21:40 -04:00 committed by Marge Bot
parent 9ddff6063f
commit 4ce5f31877
3 changed files with 7 additions and 1 deletions

View file

@ -24,7 +24,7 @@ extern "C"
#endif
#define ADDRLIB_VERSION_MAJOR 8
#define ADDRLIB_VERSION_MINOR 7
#define ADDRLIB_VERSION_MINOR 9
#define ADDRLIB_VERSION ((ADDRLIB_VERSION_MAJOR << 16) | ADDRLIB_VERSION_MINOR)
/// Virtually all interface functions need ADDR_HANDLE as first parameter

View file

@ -437,6 +437,7 @@ typedef enum _AddrFormat {
ADDR_FMT_ASTC_12x12 = 0x0000004d,
ADDR_FMT_ETC2_64BPP = 0x0000004e,
ADDR_FMT_ETC2_128BPP = 0x0000004f,
ADDR_FMT_BG_RG_16_16_16_16 = 0x00000050,
} AddrFormat;
/**

View file

@ -1390,6 +1390,10 @@ UINT_32 ElemLib::GetBitsPerPixel(
case ADDR_FMT_24_8:
bpp = 32;
break;
case ADDR_FMT_BG_RG_16_16_16_16:
elemMode = ADDR_PACKED_BGRG;
bpp = 32;
break;
case ADDR_FMT_16_16_16_16:
case ADDR_FMT_32_32:
case ADDR_FMT_CTX1:
@ -1801,6 +1805,7 @@ BOOL_32 ElemLib::IsMacroPixelPacked(
{
case ADDR_FMT_BG_RG:
case ADDR_FMT_GB_GR:
case ADDR_FMT_BG_RG_16_16_16_16:
isMacroPixelPacked = TRUE;
break;
default: