mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
etnaviv: Avoid duplicates in formats table
Remove the following duplicates from the formats table: - R8G8B8A8_UNORM (V_,_T) - R8G8B8X8_UNORM (_T,_T) - DXT3_RGBA (_T,_T) Only the first has an effect because the _T overrides the V_ initializer, the latter two were harmless duplications of the same. Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
parent
322b34e57e
commit
c27cbd88e6
1 changed files with 1 additions and 5 deletions
|
|
@ -155,7 +155,7 @@ static struct etna_format formats[PIPE_FORMAT_COUNT] = {
|
|||
|
||||
V_(A8B8G8R8_UNORM, UNSIGNED_BYTE, NONE),
|
||||
|
||||
V_(R8G8B8A8_UNORM, UNSIGNED_BYTE, A8B8G8R8),
|
||||
VT(R8G8B8A8_UNORM, UNSIGNED_BYTE, A8B8G8R8, SWIZ(X, Y, Z, W), A8B8G8R8),
|
||||
V_(R8G8B8A8_SNORM, BYTE, A8B8G8R8),
|
||||
_T(R8G8B8X8_UNORM, X8B8G8R8, SWIZ(X, Y, Z, W), X8B8G8R8),
|
||||
V_(R8G8B8A8_UINT, UNSIGNED_BYTE, A8B8G8R8),
|
||||
|
|
@ -163,9 +163,6 @@ static struct etna_format formats[PIPE_FORMAT_COUNT] = {
|
|||
V_(R8G8B8A8_USCALED, UNSIGNED_BYTE, A8B8G8R8),
|
||||
V_(R8G8B8A8_SSCALED, BYTE, A8B8G8R8),
|
||||
|
||||
_T(R8G8B8A8_UNORM, A8B8G8R8, SWIZ(X, Y, Z, W), A8B8G8R8),
|
||||
_T(R8G8B8X8_UNORM, X8B8G8R8, SWIZ(X, Y, Z, W), X8B8G8R8),
|
||||
|
||||
_T(B8G8R8A8_UNORM, A8R8G8B8, SWIZ(X, Y, Z, W), A8R8G8B8),
|
||||
_T(B8G8R8X8_UNORM, X8R8G8B8, SWIZ(X, Y, Z, W), X8R8G8B8),
|
||||
|
||||
|
|
@ -230,7 +227,6 @@ static struct etna_format formats[PIPE_FORMAT_COUNT] = {
|
|||
_T(DXT1_RGB, DXT1, SWIZ(X, Y, Z, W), NONE),
|
||||
_T(DXT1_RGBA, DXT1, SWIZ(X, Y, Z, W), NONE),
|
||||
_T(DXT3_RGBA, DXT2_DXT3, SWIZ(X, Y, Z, W), NONE),
|
||||
_T(DXT3_RGBA, DXT2_DXT3, SWIZ(X, Y, Z, W), NONE),
|
||||
_T(DXT5_RGBA, DXT4_DXT5, SWIZ(X, Y, Z, W), NONE),
|
||||
|
||||
_T(ETC2_RGB8, EXT_NONE | EXT_FORMAT, SWIZ(X, Y, Z, W), NONE), /* Extd. format NONE doubles as ETC2_RGB8 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue