Mesa (gallium-format-cleanup): gallium: Introduce a new format to disambiguate PIPE_FORMAT_R8G8B8A8_UNORM.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Mar 1 16:43:40 UTC 2010
Module: Mesa
Branch: gallium-format-cleanup
Commit: cd8b6523039d68459756db487566a97fac1d4d75
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd8b6523039d68459756db487566a97fac1d4d75
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Mar 1 16:24:09 2010 +0000
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.
---
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 998d1a6..79e4df7 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
};
More information about the mesa-commit
mailing list