• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1###########################################################################
2#
3# Copyright 2009-2010 VMware, Inc.
4# Copyright 2014 Intel Corporation
5# All Rights Reserved.
6#
7# Permission is hereby granted, free of charge, to any person obtaining a
8# copy of this software and associated documentation files (the
9# "Software"), to deal in the Software without restriction, including
10# without limitation the rights to use, copy, modify, merge, publish,
11# distribute, sub license, and/or sell copies of the Software, and to
12# permit persons to whom the Software is furnished to do so, subject to
13# the following conditions:
14#
15# The above copyright notice and this permission notice (including the
16# next paragraph) shall be included in all copies or substantial portions
17# of the Software.
18#
19# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22# IN NO EVENT SHALL THE AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR
23# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26#
27###########################################################################
28
29# This CSV file has the input data for format_parser.py
30#
31# Each format entry contains:
32# - name, per enum mesa_format
33# - layout
34# - pixel block's width
35# - pixel block's height
36# - pixel block's depth
37# - channel encoding (only meaningful for array or packed layout), containing for each
38#   channel the following information:
39#   - type, one of
40#     - 'x': void
41#     - 'u': unsigned
42#     - 's': signed
43#     - 'h': fixed
44#     - 'f': FLOAT
45#   - optionally followed by 'n' if it is normalized
46#   - number of bits
47# - channel swizzle
48# - color space: rgb, srgb, yub, sz
49
50# None
51# Described as regular uint_8 bytes, i.e. MESA_FORMAT_R8_USCALED
52MESA_FORMAT_NONE                          , other , 1, 1, 1, x8  ,     ,     ,     , 0001, rgb
53
54# Packed unorm formats
55MESA_FORMAT_A8B8G8R8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, rgb
56MESA_FORMAT_X8B8G8R8_UNORM                , packed, 1, 1, 1, x8  , un8 , un8 , un8 , wzy1, rgb
57MESA_FORMAT_R8G8B8A8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, rgb
58MESA_FORMAT_R8G8B8X8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , x8  , xyz1, rgb
59MESA_FORMAT_B8G8R8A8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, rgb
60MESA_FORMAT_B8G8R8X8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , x8  , zyx1, rgb
61MESA_FORMAT_A8R8G8B8_UNORM                , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, rgb
62MESA_FORMAT_X8R8G8B8_UNORM                , packed, 1, 1, 1, x8  , un8 , un8 , un8 , yzw1, rgb
63MESA_FORMAT_L16A16_UNORM                  , packed, 1, 1, 1, un16, un16,     ,     , xxxy, rgb
64MESA_FORMAT_A16L16_UNORM                  , packed, 1, 1, 1, un16, un16,     ,     , yyyx, rgb
65MESA_FORMAT_B5G6R5_UNORM                  , packed, 1, 1, 1, un5 , un6 , un5 ,     , zyx1, rgb
66MESA_FORMAT_R5G6B5_UNORM                  , packed, 1, 1, 1, un5 , un6 , un5 ,     , xyz1, rgb
67MESA_FORMAT_B4G4R4A4_UNORM                , packed, 1, 1, 1, un4 , un4 , un4 , un4 , zyxw, rgb
68MESA_FORMAT_B4G4R4X4_UNORM                , packed, 1, 1, 1, un4 , un4 , un4 , x4  , zyx1, rgb
69MESA_FORMAT_A4R4G4B4_UNORM                , packed, 1, 1, 1, un4 , un4 , un4 , un4 , yzwx, rgb
70MESA_FORMAT_A1B5G5R5_UNORM                , packed, 1, 1, 1, un1 , un5 , un5 , un5 , wzyx, rgb
71MESA_FORMAT_B5G5R5A1_UNORM                , packed, 1, 1, 1, un5 , un5 , un5 , un1 , zyxw, rgb
72MESA_FORMAT_B5G5R5X1_UNORM                , packed, 1, 1, 1, un5 , un5 , un5 , x1  , zyx1, rgb
73MESA_FORMAT_A1R5G5B5_UNORM                , packed, 1, 1, 1, un1 , un5 , un5 , un5 , yzwx, rgb
74MESA_FORMAT_L8A8_UNORM                    , packed, 1, 1, 1, un8 , un8 ,     ,     , xxxy, rgb
75MESA_FORMAT_A8L8_UNORM                    , packed, 1, 1, 1, un8 , un8 ,     ,     , yyyx, rgb
76MESA_FORMAT_R8G8_UNORM                    , packed, 1, 1, 1, un8 , un8 ,     ,     , xy01, rgb
77MESA_FORMAT_G8R8_UNORM                    , packed, 1, 1, 1, un8 , un8 ,     ,     , yx01, rgb
78MESA_FORMAT_L4A4_UNORM                    , packed, 1, 1, 1, un4 , un4 ,     ,     , xxxy, rgb
79
80MESA_FORMAT_B2G3R3_UNORM                  , packed, 1, 1, 1, un2 , un3 , un3 ,     , zyx1, rgb
81MESA_FORMAT_R16G16_UNORM                  , packed, 1, 1, 1, un16, un16,     ,     , xy01, rgb
82MESA_FORMAT_G16R16_UNORM                  , packed, 1, 1, 1, un16, un16,     ,     , yx01, rgb
83MESA_FORMAT_B10G10R10A2_UNORM             , packed, 1, 1, 1, un10, un10, un10, un2 , zyxw, rgb
84MESA_FORMAT_B10G10R10X2_UNORM             , packed, 1, 1, 1, un10, un10, un10, x2  , zyx1, rgb
85MESA_FORMAT_R10G10B10A2_UNORM             , packed, 1, 1, 1, un10, un10, un10, un2 , xyzw, rgb
86MESA_FORMAT_R10G10B10X2_UNORM             , packed, 1, 1, 1, un10, un10, un10, x2  , xyz1, rgb
87
88MESA_FORMAT_S8_UINT_Z24_UNORM             , packed, 1, 1, 1, un24, u8  ,     ,     , xy__, zs
89MESA_FORMAT_X8_UINT_Z24_UNORM             , packed, 1, 1, 1, un24, x8  ,     ,     , x___, zs
90MESA_FORMAT_Z24_UNORM_S8_UINT             , packed, 1, 1, 1, u8  , un24,     ,     , yx__, zs
91MESA_FORMAT_Z24_UNORM_X8_UINT             , packed, 1, 1, 1, x8  , un24,     ,     , y___, zs
92
93MESA_FORMAT_R3G3B2_UNORM                  , packed, 1, 1, 1, un3 , un3 , un2 ,     , xyz1, rgb
94MESA_FORMAT_A4B4G4R4_UNORM                , packed, 1, 1, 1, un4 , un4 , un4 , un4 , wzyx, rgb
95MESA_FORMAT_R4G4B4A4_UNORM                , packed, 1, 1, 1, un4 , un4 , un4 , un4 , xyzw, rgb
96MESA_FORMAT_R5G5B5A1_UNORM                , packed, 1, 1, 1, un5 , un5 , un5 , un1 , xyzw, rgb
97MESA_FORMAT_A2B10G10R10_UNORM             , packed, 1, 1, 1, un2 , un10, un10, un10, wzyx, rgb
98MESA_FORMAT_A2R10G10B10_UNORM             , packed, 1, 1, 1, un2 , un10, un10, un10, yzwx, rgb
99
100MESA_FORMAT_YCBCR                         , other , 1, 1, 1, x16 ,     ,     ,     , xyzw, yuv
101MESA_FORMAT_YCBCR_REV                     , other , 1, 1, 1, x16 ,     ,     ,     , xyzw, yuv
102
103# Array normalized formats
104MESA_FORMAT_A_UNORM8                      , array , 1, 1, 1, un8 ,     ,     ,     , 000x, rgb
105MESA_FORMAT_A_UNORM16                     , array , 1, 1, 1, un16,     ,     ,     , 000x, rgb
106MESA_FORMAT_L_UNORM8                      , array , 1, 1, 1, un8 ,     ,     ,     , xxx1, rgb
107MESA_FORMAT_L_UNORM16                     , array , 1, 1, 1, un16,     ,     ,     , xxx1, rgb
108MESA_FORMAT_I_UNORM8                      , array , 1, 1, 1, un8 ,     ,     ,     , xxxx, rgb
109MESA_FORMAT_I_UNORM16                     , array , 1, 1, 1, un16,     ,     ,     , xxxx, rgb
110MESA_FORMAT_R_UNORM8                      , array , 1, 1, 1, un8 ,     ,     ,     , x001, rgb
111MESA_FORMAT_R_UNORM16                     , array , 1, 1, 1, un16,     ,     ,     , x001, rgb
112MESA_FORMAT_BGR_UNORM8                    , array , 1, 1, 1, un8 , un8 , un8 ,     , zyx1, rgb
113MESA_FORMAT_RGB_UNORM8                    , array , 1, 1, 1, un8 , un8 , un8 ,     , xyz1, rgb
114MESA_FORMAT_RGBA_UNORM16                  , array , 1, 1, 1, un16, un16, un16, un16, xyzw, rgb
115MESA_FORMAT_RGBX_UNORM16                  , array , 1, 1, 1, un16, un16, un16, x16 , xyz1, rgb
116
117MESA_FORMAT_Z_UNORM16                     , array , 1, 1, 1, un16,     ,     ,     , x___, zs
118MESA_FORMAT_Z_UNORM32                     , array , 1, 1, 1, un32,     ,     ,     , x___, zs
119MESA_FORMAT_S_UINT8                       , array , 1, 1, 1, u8  ,     ,     ,     , _x__, zs
120
121# Packed signed formats
122MESA_FORMAT_A8B8G8R8_SNORM                , packed, 1, 1, 1, sn8 , sn8 , sn8 , sn8 , wzyx, rgb
123MESA_FORMAT_X8B8G8R8_SNORM                , packed, 1, 1, 1, x8  , sn8 , sn8 , sn8 , wzy1, rgb
124MESA_FORMAT_R8G8B8A8_SNORM                , packed, 1, 1, 1, sn8 , sn8 , sn8 , sn8 , xyzw, rgb
125MESA_FORMAT_R8G8B8X8_SNORM                , packed, 1, 1, 1, sn8 , sn8 , sn8 , x8  , xyz1, rgb
126MESA_FORMAT_R16G16_SNORM                  , packed, 1, 1, 1, sn16, sn16,     ,     , xy01, rgb
127MESA_FORMAT_G16R16_SNORM                  , packed, 1, 1, 1, sn16, sn16,     ,     , yx01, rgb
128MESA_FORMAT_R8G8_SNORM                    , packed, 1, 1, 1, sn8 , sn8 ,     ,     , xy01, rgb
129MESA_FORMAT_G8R8_SNORM                    , packed, 1, 1, 1, sn8 , sn8 ,     ,     , yx01, rgb
130MESA_FORMAT_L8A8_SNORM                    , packed, 1, 1, 1, sn8 , sn8 ,     ,     , xxxy, rgb
131MESA_FORMAT_A8L8_SNORM                    , packed, 1, 1, 1, sn8 , sn8 ,     ,     , yyyx, rgb
132
133# Array signed/normalized formats
134MESA_FORMAT_A_SNORM8                      , array , 1, 1, 1, sn8 ,     ,     ,     , 000x, rgb
135MESA_FORMAT_A_SNORM16                     , array , 1, 1, 1, sn16,     ,     ,     , 000x, rgb
136MESA_FORMAT_L_SNORM8                      , array , 1, 1, 1, sn8 ,     ,     ,     , xxx1, rgb
137MESA_FORMAT_L_SNORM16                     , array , 1, 1, 1, sn16,     ,     ,     , xxx1, rgb
138MESA_FORMAT_I_SNORM8                      , array , 1, 1, 1, sn8 ,     ,     ,     , xxxx, rgb
139MESA_FORMAT_I_SNORM16                     , array , 1, 1, 1, sn16,     ,     ,     , xxxx, rgb
140MESA_FORMAT_R_SNORM8                      , array , 1, 1, 1, sn8 ,     ,     ,     , x001, rgb
141MESA_FORMAT_R_SNORM16                     , array , 1, 1, 1, sn16,     ,     ,     , x001, rgb
142MESA_FORMAT_LA_SNORM16                    , array , 1, 1, 1, sn16, sn16,     ,     , xxxy, rgb
143MESA_FORMAT_RGB_SNORM16                   , array , 1, 1, 1, sn16, sn16, sn16,     , xyz1, rgb
144MESA_FORMAT_RGBA_SNORM16                  , array , 1, 1, 1, sn16, sn16, sn16, sn16, xyzw, rgb
145MESA_FORMAT_RGBX_SNORM16                  , array , 1, 1, 1, sn16, sn16, sn16, x16 , xyz1, rgb
146
147# Packed sRGB formats
148MESA_FORMAT_A8B8G8R8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
149MESA_FORMAT_B8G8R8A8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
150MESA_FORMAT_A8R8G8B8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
151MESA_FORMAT_B8G8R8X8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , x8  , zyx1, srgb
152MESA_FORMAT_X8R8G8B8_SRGB                 , packed, 1, 1, 1, x8  , un8 , un8 , un8 , yzw1, srgb
153MESA_FORMAT_R8G8B8A8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
154MESA_FORMAT_R8G8B8X8_SRGB                 , packed, 1, 1, 1, un8 , un8 , un8 , x8  , xyz1, srgb
155MESA_FORMAT_X8B8G8R8_SRGB                 , packed, 1, 1, 1, x8  , un8 , un8 , un8 , wzy1, srgb
156MESA_FORMAT_L8A8_SRGB                     , packed, 1, 1, 1, un8 , un8 ,     ,     , xxxy, srgb
157MESA_FORMAT_A8L8_SRGB                     , packed, 1, 1, 1, un8 , un8 ,     ,     , yyyx, srgb
158
159# Array sRGB formats
160MESA_FORMAT_L_SRGB8                       , array , 1, 1, 1, un8 ,     ,     ,     , xxx1, srgb
161MESA_FORMAT_BGR_SRGB8                     , array , 1, 1, 1, un8 , un8 , un8 ,     , zyx1, srgb
162
163# Packed float formats
164MESA_FORMAT_R9G9B9E5_FLOAT                , other , 1, 1, 1, f9  , f9  , f9  , x5  , xyz1, rgb
165MESA_FORMAT_R11G11B10_FLOAT               , packed, 1, 1, 1, f11 , f11 , f10 ,     , xyz1, rgb
166MESA_FORMAT_Z32_FLOAT_S8X24_UINT          , packed, 1, 1, 1, u8  , x24 , f32 ,     , zx__, zs
167
168# Array float formats
169MESA_FORMAT_A_FLOAT16                     , array , 1, 1, 1, f16 ,     ,     ,     , 000x, rgb
170MESA_FORMAT_A_FLOAT32                     , array , 1, 1, 1, f32 ,     ,     ,     , 000x, rgb
171MESA_FORMAT_L_FLOAT16                     , array , 1, 1, 1, f16 ,     ,     ,     , xxx1, rgb
172MESA_FORMAT_L_FLOAT32                     , array , 1, 1, 1, f32 ,     ,     ,     , xxx1, rgb
173MESA_FORMAT_LA_FLOAT16                    , array , 1, 1, 1, f16 , f16 ,     ,     , xxxy, rgb
174MESA_FORMAT_LA_FLOAT32                    , array , 1, 1, 1, f32 , f32 ,     ,     , xxxy, rgb
175MESA_FORMAT_I_FLOAT16                     , array , 1, 1, 1, f16 ,     ,     ,     , xxxx, rgb
176MESA_FORMAT_I_FLOAT32                     , array , 1, 1, 1, f32 ,     ,     ,     , xxxx, rgb
177MESA_FORMAT_R_FLOAT16                     , array , 1, 1, 1, f16 ,     ,     ,     , x001, rgb
178MESA_FORMAT_R_FLOAT32                     , array , 1, 1, 1, f32 ,     ,     ,     , x001, rgb
179MESA_FORMAT_RG_FLOAT16                    , array , 1, 1, 1, f16 , f16 ,     ,     , xy01, rgb
180MESA_FORMAT_RG_FLOAT32                    , array , 1, 1, 1, f32 , f32 ,     ,     , xy01, rgb
181MESA_FORMAT_RGB_FLOAT16                   , array , 1, 1, 1, f16 , f16 , f16 ,     , xyz1, rgb
182MESA_FORMAT_RGB_FLOAT32                   , array , 1, 1, 1, f32 , f32 , f32 ,     , xyz1, rgb
183MESA_FORMAT_RGBA_FLOAT16                  , array , 1, 1, 1, f16 , f16 , f16 , f16 , xyzw, rgb
184MESA_FORMAT_RGBA_FLOAT32                  , array , 1, 1, 1, f32 , f32 , f32 , f32 , xyzw, rgb
185MESA_FORMAT_RGBX_FLOAT16                  , array , 1, 1, 1, f16 , f16 , f16 , x16 , xyz1, rgb
186MESA_FORMAT_RGBX_FLOAT32                  , array , 1, 1, 1, f32 , f32 , f32 , x32 , xyz1, rgb
187MESA_FORMAT_Z_FLOAT32                     , array , 1, 1, 1, f32 ,     ,     ,     , x___, zs
188
189# Packed signed/unsigned non-normalized integer formats
190MESA_FORMAT_A8B8G8R8_UINT                 , packed, 1, 1, 1, u8  , u8  , u8  , u8  , wzyx, rgb
191MESA_FORMAT_A8R8G8B8_UINT                 , packed, 1, 1, 1, u8  , u8  , u8  , u8  , yzwx, rgb
192MESA_FORMAT_R8G8B8A8_UINT                 , packed, 1, 1, 1, u8  , u8  , u8  , u8  , xyzw, rgb
193MESA_FORMAT_B8G8R8A8_UINT                 , packed, 1, 1, 1, u8  , u8  , u8  , u8  , zyxw, rgb
194MESA_FORMAT_B10G10R10A2_UINT              , packed, 1, 1, 1, u10 , u10 , u10 , u2  , zyxw, rgb
195MESA_FORMAT_R10G10B10A2_UINT              , packed, 1, 1, 1, u10 , u10 , u10 , u2  , xyzw, rgb
196MESA_FORMAT_A2B10G10R10_UINT              , packed, 1, 1, 1, u2  , u10 , u10 , u10 , wzyx, rgb
197MESA_FORMAT_A2R10G10B10_UINT              , packed, 1, 1, 1, u2  , u10 , u10 , u10 , yzwx, rgb
198MESA_FORMAT_B5G6R5_UINT                   , packed, 1, 1, 1, u5  , u6  ,  u5 ,     , zyx1, rgb
199MESA_FORMAT_R5G6B5_UINT                   , packed, 1, 1, 1, u5  , u6  ,  u5 ,     , xyz1, rgb
200MESA_FORMAT_B2G3R3_UINT                   , packed, 1, 1, 1, u2  , u3  ,  u3 ,     , zyx1, rgb
201MESA_FORMAT_R3G3B2_UINT                   , packed, 1, 1, 1, u3  , u3  ,  u2 ,     , xyz1, rgb
202MESA_FORMAT_A4B4G4R4_UINT                 , packed, 1, 1, 1, u4  , u4  ,  u4 , u4  , wzyx, rgb
203MESA_FORMAT_R4G4B4A4_UINT                 , packed, 1, 1, 1, u4  , u4  ,  u4 , u4  , xyzw, rgb
204MESA_FORMAT_B4G4R4A4_UINT                 , packed, 1, 1, 1, u4  , u4  ,  u4 , u4  , zyxw, rgb
205MESA_FORMAT_A4R4G4B4_UINT                 , packed, 1, 1, 1, u4  , u4  ,  u4 , u4  , yzwx, rgb
206MESA_FORMAT_A1B5G5R5_UINT                 , packed, 1, 1, 1, u1  , u5  ,  u5 , u5  , wzyx, rgb
207MESA_FORMAT_B5G5R5A1_UINT                 , packed, 1, 1, 1, u5  , u5  ,  u5 , u1  , zyxw, rgb
208MESA_FORMAT_A1R5G5B5_UINT                 , packed, 1, 1, 1, u1  , u5  ,  u5 , u5  , yzwx, rgb
209MESA_FORMAT_R5G5B5A1_UINT                 , packed, 1, 1, 1, u5  , u5  ,  u5 , u1  , xyzw, rgb
210
211# Array signed/unsigned non-normalized integer formats
212MESA_FORMAT_A_UINT8                       , array , 1, 1, 1, u8  ,     ,     ,     , 000x, rgb
213MESA_FORMAT_A_UINT16                      , array , 1, 1, 1, u16 ,     ,     ,     , 000x, rgb
214MESA_FORMAT_A_UINT32                      , array , 1, 1, 1, u32 ,     ,     ,     , 000x, rgb
215MESA_FORMAT_A_SINT8                       , array , 1, 1, 1, s8  ,     ,     ,     , 000x, rgb
216MESA_FORMAT_A_SINT16                      , array , 1, 1, 1, s16 ,     ,     ,     , 000x, rgb
217MESA_FORMAT_A_SINT32                      , array , 1, 1, 1, s32 ,     ,     ,     , 000x, rgb
218
219MESA_FORMAT_I_UINT8                       , array , 1, 1, 1, u8  ,     ,     ,     , xxxx, rgb
220MESA_FORMAT_I_UINT16                      , array , 1, 1, 1, u16 ,     ,     ,     , xxxx, rgb
221MESA_FORMAT_I_UINT32                      , array , 1, 1, 1, u32 ,     ,     ,     , xxxx, rgb
222MESA_FORMAT_I_SINT8                       , array , 1, 1, 1, s8  ,     ,     ,     , xxxx, rgb
223MESA_FORMAT_I_SINT16                      , array , 1, 1, 1, s16 ,     ,     ,     , xxxx, rgb
224MESA_FORMAT_I_SINT32                      , array , 1, 1, 1, s32 ,     ,     ,     , xxxx, rgb
225
226MESA_FORMAT_L_UINT8                       , array , 1, 1, 1, u8  ,     ,     ,     , xxx1, rgb
227MESA_FORMAT_L_UINT16                      , array , 1, 1, 1, u16 ,     ,     ,     , xxx1, rgb
228MESA_FORMAT_L_UINT32                      , array , 1, 1, 1, u32 ,     ,     ,     , xxx1, rgb
229MESA_FORMAT_L_SINT8                       , array , 1, 1, 1, s8  ,     ,     ,     , xxx1, rgb
230MESA_FORMAT_L_SINT16                      , array , 1, 1, 1, s16 ,     ,     ,     , xxx1, rgb
231MESA_FORMAT_L_SINT32                      , array , 1, 1, 1, s32 ,     ,     ,     , xxx1, rgb
232
233MESA_FORMAT_LA_UINT8                      , array , 1, 1, 1, u8  , u8  ,     ,     , xxxy, rgb
234MESA_FORMAT_LA_UINT16                     , array , 1, 1, 1, u16 , u16 ,     ,     , xxxy, rgb
235MESA_FORMAT_LA_UINT32                     , array , 1, 1, 1, u32 , u32 ,     ,     , xxxy, rgb
236MESA_FORMAT_LA_SINT8                      , array , 1, 1, 1, s8  , s8  ,     ,     , xxxy, rgb
237MESA_FORMAT_LA_SINT16                     , array , 1, 1, 1, s16 , s16 ,     ,     , xxxy, rgb
238MESA_FORMAT_LA_SINT32                     , array , 1, 1, 1, s32 , s32 ,     ,     , xxxy, rgb
239
240MESA_FORMAT_R_UINT8                       , array , 1, 1, 1, u8  ,     ,     ,     , x001, rgb
241MESA_FORMAT_R_UINT16                      , array , 1, 1, 1, u16 ,     ,     ,     , x001, rgb
242MESA_FORMAT_R_UINT32                      , array , 1, 1, 1, u32 ,     ,     ,     , x001, rgb
243MESA_FORMAT_R_SINT8                       , array , 1, 1, 1, s8  ,     ,     ,     , x001, rgb
244MESA_FORMAT_R_SINT16                      , array , 1, 1, 1, s16 ,     ,     ,     , x001, rgb
245MESA_FORMAT_R_SINT32                      , array , 1, 1, 1, s32 ,     ,     ,     , x001, rgb
246
247MESA_FORMAT_RG_UINT8                      , array , 1, 1, 1, u8  , u8  ,     ,     , xy01, rgb
248MESA_FORMAT_RG_UINT16                     , array , 1, 1, 1, u16 , u16 ,     ,     , xy01, rgb
249MESA_FORMAT_RG_UINT32                     , array , 1, 1, 1, u32 , u32 ,     ,     , xy01, rgb
250MESA_FORMAT_RG_SINT8                      , array , 1, 1, 1, s8  , s8  ,     ,     , xy01, rgb
251MESA_FORMAT_RG_SINT16                     , array , 1, 1, 1, s16 , s16 ,     ,     , xy01, rgb
252MESA_FORMAT_RG_SINT32                     , array , 1, 1, 1, s32 , s32 ,     ,     , xy01, rgb
253
254MESA_FORMAT_RGB_UINT8                     , array , 1, 1, 1, u8  , u8  , u8  ,     , xyz1, rgb
255MESA_FORMAT_RGB_UINT16                    , array , 1, 1, 1, u16 , u16 , u16 ,     , xyz1, rgb
256MESA_FORMAT_RGB_UINT32                    , array , 1, 1, 1, u32 , u32 , u32 ,     , xyz1, rgb
257MESA_FORMAT_RGB_SINT8                     , array , 1, 1, 1, s8  , s8  , s8  ,     , xyz1, rgb
258MESA_FORMAT_RGB_SINT16                    , array , 1, 1, 1, s16 , s16 , s16 ,     , xyz1, rgb
259MESA_FORMAT_RGB_SINT32                    , array , 1, 1, 1, s32 , s32 , s32 ,     , xyz1, rgb
260
261MESA_FORMAT_RGBA_UINT8                    , array , 1, 1, 1, u8  , u8  , u8  , u8  , xyzw, rgb
262MESA_FORMAT_RGBA_UINT16                   , array , 1, 1, 1, u16 , u16 , u16 , u16 , xyzw, rgb
263MESA_FORMAT_RGBA_UINT32                   , array , 1, 1, 1, u32 , u32 , u32 , u32 , xyzw, rgb
264MESA_FORMAT_RGBA_SINT8                    , array , 1, 1, 1, s8  , s8  , s8  , s8  , xyzw, rgb
265MESA_FORMAT_RGBA_SINT16                   , array , 1, 1, 1, s16 , s16 , s16 , s16 , xyzw, rgb
266MESA_FORMAT_RGBA_SINT32                   , array , 1, 1, 1, s32 , s32 , s32 , s32 , xyzw, rgb
267
268MESA_FORMAT_RGBX_UINT8                    , array , 1, 1, 1, u8  , u8  , u8  , x8  , xyz1, rgb
269MESA_FORMAT_RGBX_UINT16                   , array , 1, 1, 1, u16 , u16 , u16 , x16 , xyz1, rgb
270MESA_FORMAT_RGBX_UINT32                   , array , 1, 1, 1, u32 , u32 , u32 , x32 , xyz1, rgb
271MESA_FORMAT_RGBX_SINT8                    , array , 1, 1, 1, s8  , s8  , s8  , x8  , xyz1, rgb
272MESA_FORMAT_RGBX_SINT16                   , array , 1, 1, 1, s16 , s16 , s16 , x16 , xyz1, rgb
273MESA_FORMAT_RGBX_SINT32                   , array , 1, 1, 1, s32 , s32 , s32 , x32 , xyz1, rgb
274
275# DTX compressed formats
276MESA_FORMAT_RGB_DXT1                      , s3tc  , 4, 4, 1, x64 ,     ,     ,     , xyz1, rgb
277MESA_FORMAT_RGBA_DXT1                     , s3tc  , 4, 4, 1, x64 ,     ,     ,     , xyzw, rgb
278MESA_FORMAT_RGBA_DXT3                     , s3tc  , 4, 4, 1, x128,     ,     ,     , xyzw, rgb
279MESA_FORMAT_RGBA_DXT5                     , s3tc  , 4, 4, 1, x128,     ,     ,     , xyzw, rgb
280
281# DTX sRGB compressed formats
282MESA_FORMAT_SRGB_DXT1                     , s3tc  , 4, 4, 1, x64 ,     ,     ,     , xyz1, srgb
283MESA_FORMAT_SRGBA_DXT1                    , s3tc  , 4, 4, 1, x64 ,     ,     ,     , xyzw, srgb
284MESA_FORMAT_SRGBA_DXT3                    , s3tc  , 4, 4, 1, x128,     ,     ,     , xyzw, srgb
285MESA_FORMAT_SRGBA_DXT5                    , s3tc  , 4, 4, 1, x128,     ,     ,     , xyzw, srgb
286
287# FXT1 compressed formats
288MESA_FORMAT_RGB_FXT1                      , fxt1  , 8, 4, 1, x128,     ,     ,     , xyz1, rgb
289MESA_FORMAT_RGBA_FXT1                     , fxt1  , 8, 4, 1, x128,     ,     ,     , xyzw, rgb
290
291# RGTC compressed formats
292MESA_FORMAT_R_RGTC1_UNORM                 , rgtc  , 4, 4, 1, x64 ,     ,     ,     , x001, rgb
293MESA_FORMAT_R_RGTC1_SNORM                 , rgtc  , 4, 4, 1, x64 ,     ,     ,     , x001, rgb
294MESA_FORMAT_RG_RGTC2_UNORM                , rgtc  , 4, 4, 1, x128,     ,     ,     , xy01, rgb
295MESA_FORMAT_RG_RGTC2_SNORM                , rgtc  , 4, 4, 1, x128,     ,     ,     , xy01, rgb
296
297# LATC1/2 compressed formats
298MESA_FORMAT_L_LATC1_UNORM                 , latc  , 4, 4, 1, x64 ,     ,     ,     , xxx1, rgb
299MESA_FORMAT_L_LATC1_SNORM                 , latc  , 4, 4, 1, x64 ,     ,     ,     , xxx1, rgb
300MESA_FORMAT_LA_LATC2_UNORM                , latc  , 4, 4, 1, x128,     ,     ,     , xxxy, rgb
301MESA_FORMAT_LA_LATC2_SNORM                , latc  , 4, 4, 1, x128,     ,     ,     , xxxy, rgb
302
303# ETC1/2 compressed formats
304MESA_FORMAT_ETC1_RGB8                     , etc1  , 4, 4, 1, x64 ,     ,     ,     , xyz1, rgb
305MESA_FORMAT_ETC2_RGB8                     , etc2  , 4, 4, 1, x64 ,     ,     ,     , xyz1, rgb
306MESA_FORMAT_ETC2_SRGB8                    , etc2  , 4, 4, 1, x64 ,     ,     ,     , xyz1, srgb
307MESA_FORMAT_ETC2_RGBA8_EAC                , etc2  , 4, 4, 1, x128,     ,     ,     , xyzw, rgb
308MESA_FORMAT_ETC2_SRGB8_ALPHA8_EAC         , etc2  , 4, 4, 1, x128,     ,     ,     , xyzw, srgb
309MESA_FORMAT_ETC2_R11_EAC                  , etc2  , 4, 4, 1, x64 ,     ,     ,     , x001, rgb
310MESA_FORMAT_ETC2_RG11_EAC                 , etc2  , 4, 4, 1, x128,     ,     ,     , xy01, rgb
311MESA_FORMAT_ETC2_SIGNED_R11_EAC           , etc2  , 4, 4, 1, x64 ,     ,     ,     , x001, rgb
312MESA_FORMAT_ETC2_SIGNED_RG11_EAC          , etc2  , 4, 4, 1, x128,     ,     ,     , xy01, rgb
313MESA_FORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1 , etc2  , 4, 4, 1, x64 ,     ,     ,     , xyzw, rgb
314MESA_FORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1, etc2  , 4, 4, 1, x64 ,     ,     ,     , xyzw, srgb
315
316# BPTC compressed formats
317MESA_FORMAT_BPTC_RGBA_UNORM               , bptc  , 4, 4, 1, x128,     ,     ,     , xyzw, rgb
318MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM         , bptc  , 4, 4, 1, x128,     ,     ,     , xyzw, srgb
319MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT         , bptc  , 4, 4, 1, x128,     ,     ,     , xyz1, rgb
320MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT       , bptc  , 4, 4, 1, x128,     ,     ,     , xyz1, rgb
321
322# ASTC compressed formats
323MESA_FORMAT_RGBA_ASTC_4x4                 , astc  , 4, 4, 1, x128,     ,     ,     , xyzw, rgb
324MESA_FORMAT_RGBA_ASTC_5x4                 , astc  , 5, 4, 1, x128,     ,     ,     , xyzw, rgb
325MESA_FORMAT_RGBA_ASTC_5x5                 , astc  , 5, 5, 1, x128,     ,     ,     , xyzw, rgb
326MESA_FORMAT_RGBA_ASTC_6x5                 , astc  , 6, 5, 1, x128,     ,     ,     , xyzw, rgb
327MESA_FORMAT_RGBA_ASTC_6x6                 , astc  , 6, 6, 1, x128,     ,     ,     , xyzw, rgb
328MESA_FORMAT_RGBA_ASTC_8x5                 , astc  , 8, 5, 1, x128,     ,     ,     , xyzw, rgb
329MESA_FORMAT_RGBA_ASTC_8x6                 , astc  , 8, 6, 1, x128,     ,     ,     , xyzw, rgb
330MESA_FORMAT_RGBA_ASTC_8x8                 , astc  , 8, 8, 1, x128,     ,     ,     , xyzw, rgb
331MESA_FORMAT_RGBA_ASTC_10x5                , astc  ,10, 5, 1, x128,     ,     ,     , xyzw, rgb
332MESA_FORMAT_RGBA_ASTC_10x6                , astc  ,10, 6, 1, x128,     ,     ,     , xyzw, rgb
333MESA_FORMAT_RGBA_ASTC_10x8                , astc  ,10, 8, 1, x128,     ,     ,     , xyzw, rgb
334MESA_FORMAT_RGBA_ASTC_10x10               , astc  ,10,10, 1, x128,     ,     ,     , xyzw, rgb
335MESA_FORMAT_RGBA_ASTC_12x10               , astc  ,12,10, 1, x128,     ,     ,     , xyzw, rgb
336MESA_FORMAT_RGBA_ASTC_12x12               , astc  ,12,12, 1, x128,     ,     ,     , xyzw, rgb
337
338MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4         , astc  , 4, 4, 1, x128,     ,     ,     , xyzw, srgb
339MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4         , astc  , 5, 4, 1, x128,     ,     ,     , xyzw, srgb
340MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5         , astc  , 5, 5, 1, x128,     ,     ,     , xyzw, srgb
341MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5         , astc  , 6, 5, 1, x128,     ,     ,     , xyzw, srgb
342MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6         , astc  , 6, 6, 1, x128,     ,     ,     , xyzw, srgb
343MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x5         , astc  , 8, 5, 1, x128,     ,     ,     , xyzw, srgb
344MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x6         , astc  , 8, 6, 1, x128,     ,     ,     , xyzw, srgb
345MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x8         , astc  , 8, 8, 1, x128,     ,     ,     , xyzw, srgb
346MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x5        , astc  ,10, 5, 1, x128,     ,     ,     , xyzw, srgb
347MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x6        , astc  ,10, 6, 1, x128,     ,     ,     , xyzw, srgb
348MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x8        , astc  ,10, 8, 1, x128,     ,     ,     , xyzw, srgb
349MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x10       , astc  ,10,10, 1, x128,     ,     ,     , xyzw, srgb
350MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x10       , astc  ,12,10, 1, x128,     ,     ,     , xyzw, srgb
351MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x12       , astc  ,12,12, 1, x128,     ,     ,     , xyzw, srgb
352
353MESA_FORMAT_RGBA_ASTC_3x3x3               , astc  , 3, 3, 3, x128,     ,     ,     , xyzw, rgb
354MESA_FORMAT_RGBA_ASTC_4x3x3               , astc  , 4, 3, 3, x128,     ,     ,     , xyzw, rgb
355MESA_FORMAT_RGBA_ASTC_4x4x3               , astc  , 4, 4, 3, x128,     ,     ,     , xyzw, rgb
356MESA_FORMAT_RGBA_ASTC_4x4x4               , astc  , 4, 4, 4, x128,     ,     ,     , xyzw, rgb
357MESA_FORMAT_RGBA_ASTC_5x4x4               , astc  , 5, 4, 4, x128,     ,     ,     , xyzw, rgb
358MESA_FORMAT_RGBA_ASTC_5x5x4               , astc  , 5, 5, 4, x128,     ,     ,     , xyzw, rgb
359MESA_FORMAT_RGBA_ASTC_5x5x5               , astc  , 5, 5, 5, x128,     ,     ,     , xyzw, rgb
360MESA_FORMAT_RGBA_ASTC_6x5x5               , astc  , 6, 5, 5, x128,     ,     ,     , xyzw, rgb
361MESA_FORMAT_RGBA_ASTC_6x6x5               , astc  , 6, 6, 5, x128,     ,     ,     , xyzw, rgb
362MESA_FORMAT_RGBA_ASTC_6x6x6               , astc  , 6, 6, 6, x128,     ,     ,     , xyzw, rgb
363MESA_FORMAT_SRGB8_ALPHA8_ASTC_3x3x3       , astc  , 3, 3, 3, x128,     ,     ,     , xyzw, srgb
364MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x3x3       , astc  , 4, 3, 3, x128,     ,     ,     , xyzw, srgb
365MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x3       , astc  , 4, 4, 3, x128,     ,     ,     , xyzw, srgb
366MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x4       , astc  , 4, 4, 4, x128,     ,     ,     , xyzw, srgb
367MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4x4       , astc  , 5, 4, 4, x128,     ,     ,     , xyzw, srgb
368MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x4       , astc  , 5, 5, 4, x128,     ,     ,     , xyzw, srgb
369MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x5       , astc  , 5, 5, 5, x128,     ,     ,     , xyzw, srgb
370MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5x5       , astc  , 6, 5, 5, x128,     ,     ,     , xyzw, srgb
371MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x5       , astc  , 6, 6, 5, x128,     ,     ,     , xyzw, srgb
372MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x6       , astc  , 6, 6, 6, x128,     ,     ,     , xyzw, srgb
373