diff options
author | Richard Sandiford <[email protected]> | 2014-07-22 10:51:15 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-09-17 13:17:46 +1000 |
commit | f14b40ab320db149b3ea1c293ef4e14ce8a29fc5 (patch) | |
tree | f1ef285a6fdc470a3d26eca464fae9cf0200ebef /src/gallium/include/pipe | |
parent | 9ea045e85eee506d919b880e4d8d7428faaea6a1 (diff) |
gallium: Add PIPE_FORMAT_AnLn and PIPE_FORMAT_GnRn formats
...i.e. formats in which the alpha or green channel is first in memory.
This means that each LnAn and RnGn format has a reversed counterpart,
which is necessary for handling big-endian mesa<->gallium mappings.
Signed-off-by: Richard Sandiford <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 1b048840ff8..d744205d688 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -349,6 +349,16 @@ enum pipe_format { PIPE_FORMAT_BPTC_RGB_FLOAT = 257, PIPE_FORMAT_BPTC_RGB_UFLOAT = 258, + PIPE_FORMAT_A8L8_UNORM = 259, + PIPE_FORMAT_A8L8_SNORM = 260, + PIPE_FORMAT_A8L8_SRGB = 261, + PIPE_FORMAT_A16L16_UNORM = 262, + + PIPE_FORMAT_G8R8_UNORM = 263, + PIPE_FORMAT_G8R8_SNORM = 264, + PIPE_FORMAT_G16R16_UNORM = 265, + PIPE_FORMAT_G16R16_SNORM = 266, + PIPE_FORMAT_COUNT }; |