diff options
author | Richard Sandiford <[email protected]> | 2014-07-22 11:02:05 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-09-17 13:17:46 +1000 |
commit | f9d8574b5ec6e16af9baed188980b440c60f89ab (patch) | |
tree | 55b79f2cf42efbd09834a6039f8f0261b671333c /src/gallium/include | |
parent | 9b4c13995c97716e9235eacfb19b59e4f724bda0 (diff) |
gallium: Add PIPE_FORMAT_x8B8G8R8_SNORM formats
This means that each RnGnBnxn format has a reversed counterpart,
which is necessary for handling big-endian mesa<->gallium mappings.
The associated UNORM and SRGB formats already exist.
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')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 7eb634d445e..d309fa15f5c 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -359,6 +359,9 @@ enum pipe_format { PIPE_FORMAT_G16R16_UNORM = 265, PIPE_FORMAT_G16R16_SNORM = 266, + PIPE_FORMAT_A8B8G8R8_SNORM = 267, + PIPE_FORMAT_X8B8G8R8_SNORM = 268, + PIPE_FORMAT_COUNT }; |