gallium: Introduce a new format to disambiguate PIPE_FORMAT_R8G8B8A8_UNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:24:09 +0000 (16:24 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:24:09 +0000 (16:24 +0000)
commitcd8b6523039d68459756db487566a97fac1d4d75
tree667190ddd22f75973ff00df44ba1eefda0448aeb
parentd170d73b16aef3e61a7b50038e7208e46d7d1223
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