mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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 <rsandifo@linux.vnet.ibm.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
9b4c13995c
commit
f9d8574b5e
2 changed files with 6 additions and 0 deletions
|
|
@ -393,3 +393,6 @@ PIPE_FORMAT_G8R8_UNORM , plain, 1, 1, un8 , un8 , , , yx01, rgb
|
||||||
PIPE_FORMAT_G8R8_SNORM , plain, 1, 1, sn8 , sn8 , , , yx01, rgb
|
PIPE_FORMAT_G8R8_SNORM , plain, 1, 1, sn8 , sn8 , , , yx01, rgb
|
||||||
PIPE_FORMAT_G16R16_UNORM , plain, 1, 1, un16, un16, , , yx01, rgb
|
PIPE_FORMAT_G16R16_UNORM , plain, 1, 1, un16, un16, , , yx01, rgb
|
||||||
PIPE_FORMAT_G16R16_SNORM , plain, 1, 1, sn16, sn16, , , yx01, rgb
|
PIPE_FORMAT_G16R16_SNORM , plain, 1, 1, sn16, sn16, , , yx01, rgb
|
||||||
|
|
||||||
|
PIPE_FORMAT_A8B8G8R8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , wzyx, rgb
|
||||||
|
PIPE_FORMAT_X8B8G8R8_SNORM , plain, 1, 1, x8, sn8, sn8, sn8, wzy1, rgb
|
||||||
|
|
|
||||||
|
Can't render this file because it contains an unexpected character in line 8 and column 3.
|
|
|
@ -359,6 +359,9 @@ enum pipe_format {
|
||||||
PIPE_FORMAT_G16R16_UNORM = 265,
|
PIPE_FORMAT_G16R16_UNORM = 265,
|
||||||
PIPE_FORMAT_G16R16_SNORM = 266,
|
PIPE_FORMAT_G16R16_SNORM = 266,
|
||||||
|
|
||||||
|
PIPE_FORMAT_A8B8G8R8_SNORM = 267,
|
||||||
|
PIPE_FORMAT_X8B8G8R8_SNORM = 268,
|
||||||
|
|
||||||
PIPE_FORMAT_COUNT
|
PIPE_FORMAT_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue