diff options
author | José Fonseca <[email protected]> | 2010-03-01 16:24:09 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-03-01 16:24:09 +0000 |
commit | cd8b6523039d68459756db487566a97fac1d4d75 (patch) | |
tree | 667190ddd22f75973ff00df44ba1eefda0448aeb | |
parent | d170d73b16aef3e61a7b50038e7208e46d7d1223 (diff) |
gallium: Introduce a new format to disambiguate PIPE_FORMAT_R8G8B8A8_UNORM.
PIPE_FORMAT_R8G8B8A8_UNORM now means just
R8 G8 B8 A8
PIPE_FORMAT_R8G8B8A8_UNORM_REV means
A8 B8 G8 R8
And the thumb rule is vertex buffers refer to PIPE_FORMAT_R8G8B8A8_UNORM,
while textures refer to PIPE_FORMAT_R8G8B8A8_UNORM_REV.
PIPE_FORMAT_R8G8B8A8_UNORM_REV is just a temporary name.
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 998d1a639f2..79e4df7b4de 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -158,6 +158,8 @@ enum pipe_format { PIPE_FORMAT_DXT3_SRGBA = 108, PIPE_FORMAT_DXT5_SRGBA = 109, + PIPE_FORMAT_R8G8B8A8_UNORM_REV = 110, + PIPE_FORMAT_COUNT }; |