format_info.h revision b8e80941
1b8e80941Smrg 2b8e80941Smrg/* 3b8e80941Smrg * Mesa 3-D graphics library 4b8e80941Smrg * 5b8e80941Smrg * Copyright (c) 2014 Intel Corporation 6b8e80941Smrg * 7b8e80941Smrg * Permission is hereby granted, free of charge, to any person obtaining a 8b8e80941Smrg * copy of this software and associated documentation files (the "Software"), 9b8e80941Smrg * to deal in the Software without restriction, including without limitation 10b8e80941Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 11b8e80941Smrg * and/or sell copies of the Software, and to permit persons to whom the 12b8e80941Smrg * Software is furnished to do so, subject to the following conditions: 13b8e80941Smrg * 14b8e80941Smrg * The above copyright notice and this permission notice shall be included 15b8e80941Smrg * in all copies or substantial portions of the Software. 16b8e80941Smrg * 17b8e80941Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18b8e80941Smrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19b8e80941Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20b8e80941Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 21b8e80941Smrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 22b8e80941Smrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23b8e80941Smrg * OTHER DEALINGS IN THE SOFTWARE. 24b8e80941Smrg */ 25b8e80941Smrg 26b8e80941Smrg /* 27b8e80941Smrg * This file is AUTOGENERATED by format_info.py. Do not edit it 28b8e80941Smrg * manually or commit it into version control. 29b8e80941Smrg */ 30b8e80941Smrg 31b8e80941Smrgstatic const struct gl_format_info format_info[MESA_FORMAT_COUNT] = 32b8e80941Smrg{ 33b8e80941Smrg 34b8e80941Smrg { 35b8e80941Smrg .Name = MESA_FORMAT_NONE, 36b8e80941Smrg .StrName = "MESA_FORMAT_NONE", 37b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_OTHER, 38b8e80941Smrg .BaseFormat = GL_NONE, 39b8e80941Smrg .DataType = GL_NONE, 40b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 41b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 42b8e80941Smrg .IsSRGBFormat = 0, 43b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 44b8e80941Smrg .BytesPerBlock = 1, 45b8e80941Smrg .Swizzle = { 4, 4, 4, 5 }, 46b8e80941Smrg .ArrayFormat = 0, 47b8e80941Smrg }, 48b8e80941Smrg { 49b8e80941Smrg .Name = MESA_FORMAT_A8B8G8R8_UNORM, 50b8e80941Smrg .StrName = "MESA_FORMAT_A8B8G8R8_UNORM", 51b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 52b8e80941Smrg .BaseFormat = GL_RGBA, 53b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 54b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 55b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 56b8e80941Smrg .IsSRGBFormat = 0, 57b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 58b8e80941Smrg .BytesPerBlock = 4, 59b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 60b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 0), 61b8e80941Smrg }, 62b8e80941Smrg { 63b8e80941Smrg .Name = MESA_FORMAT_X8B8G8R8_UNORM, 64b8e80941Smrg .StrName = "MESA_FORMAT_X8B8G8R8_UNORM", 65b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 66b8e80941Smrg .BaseFormat = GL_RGB, 67b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 68b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 69b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 70b8e80941Smrg .IsSRGBFormat = 0, 71b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 72b8e80941Smrg .BytesPerBlock = 4, 73b8e80941Smrg .Swizzle = { 3, 2, 1, 5 }, 74b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 5), 75b8e80941Smrg }, 76b8e80941Smrg { 77b8e80941Smrg .Name = MESA_FORMAT_R8G8B8A8_UNORM, 78b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8A8_UNORM", 79b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 80b8e80941Smrg .BaseFormat = GL_RGBA, 81b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 82b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 83b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 84b8e80941Smrg .IsSRGBFormat = 0, 85b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 86b8e80941Smrg .BytesPerBlock = 4, 87b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 88b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 3), 89b8e80941Smrg }, 90b8e80941Smrg { 91b8e80941Smrg .Name = MESA_FORMAT_R8G8B8X8_UNORM, 92b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8X8_UNORM", 93b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 94b8e80941Smrg .BaseFormat = GL_RGB, 95b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 96b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 97b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 98b8e80941Smrg .IsSRGBFormat = 0, 99b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 100b8e80941Smrg .BytesPerBlock = 4, 101b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 102b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 5), 103b8e80941Smrg }, 104b8e80941Smrg { 105b8e80941Smrg .Name = MESA_FORMAT_B8G8R8A8_UNORM, 106b8e80941Smrg .StrName = "MESA_FORMAT_B8G8R8A8_UNORM", 107b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 108b8e80941Smrg .BaseFormat = GL_RGBA, 109b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 110b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 111b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 112b8e80941Smrg .IsSRGBFormat = 0, 113b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 114b8e80941Smrg .BytesPerBlock = 4, 115b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 116b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 3), 117b8e80941Smrg }, 118b8e80941Smrg { 119b8e80941Smrg .Name = MESA_FORMAT_B8G8R8X8_UNORM, 120b8e80941Smrg .StrName = "MESA_FORMAT_B8G8R8X8_UNORM", 121b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 122b8e80941Smrg .BaseFormat = GL_RGB, 123b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 124b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 125b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 126b8e80941Smrg .IsSRGBFormat = 0, 127b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 128b8e80941Smrg .BytesPerBlock = 4, 129b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 130b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 5), 131b8e80941Smrg }, 132b8e80941Smrg { 133b8e80941Smrg .Name = MESA_FORMAT_A8R8G8B8_UNORM, 134b8e80941Smrg .StrName = "MESA_FORMAT_A8R8G8B8_UNORM", 135b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 136b8e80941Smrg .BaseFormat = GL_RGBA, 137b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 138b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 139b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 140b8e80941Smrg .IsSRGBFormat = 0, 141b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 142b8e80941Smrg .BytesPerBlock = 4, 143b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 144b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 0), 145b8e80941Smrg }, 146b8e80941Smrg { 147b8e80941Smrg .Name = MESA_FORMAT_X8R8G8B8_UNORM, 148b8e80941Smrg .StrName = "MESA_FORMAT_X8R8G8B8_UNORM", 149b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 150b8e80941Smrg .BaseFormat = GL_RGB, 151b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 152b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 153b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 154b8e80941Smrg .IsSRGBFormat = 0, 155b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 156b8e80941Smrg .BytesPerBlock = 4, 157b8e80941Smrg .Swizzle = { 1, 2, 3, 5 }, 158b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 5), 159b8e80941Smrg }, 160b8e80941Smrg { 161b8e80941Smrg .Name = MESA_FORMAT_L16A16_UNORM, 162b8e80941Smrg .StrName = "MESA_FORMAT_L16A16_UNORM", 163b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 164b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 165b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 166b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 167b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 168b8e80941Smrg .IsSRGBFormat = 0, 169b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 170b8e80941Smrg .BytesPerBlock = 4, 171b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 172b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 0, 0, 0, 1), 173b8e80941Smrg }, 174b8e80941Smrg { 175b8e80941Smrg .Name = MESA_FORMAT_A16L16_UNORM, 176b8e80941Smrg .StrName = "MESA_FORMAT_A16L16_UNORM", 177b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 178b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 179b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 180b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 181b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 182b8e80941Smrg .IsSRGBFormat = 0, 183b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 184b8e80941Smrg .BytesPerBlock = 4, 185b8e80941Smrg .Swizzle = { 1, 1, 1, 0 }, 186b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 1, 1, 1, 0), 187b8e80941Smrg }, 188b8e80941Smrg { 189b8e80941Smrg .Name = MESA_FORMAT_B5G6R5_UNORM, 190b8e80941Smrg .StrName = "MESA_FORMAT_B5G6R5_UNORM", 191b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 192b8e80941Smrg .BaseFormat = GL_RGB, 193b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 194b8e80941Smrg .RedBits = 5, .GreenBits = 6, .BlueBits = 5, .AlphaBits = 0, 195b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 196b8e80941Smrg .IsSRGBFormat = 0, 197b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 198b8e80941Smrg .BytesPerBlock = 2, 199b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 200b8e80941Smrg .ArrayFormat = 0, 201b8e80941Smrg }, 202b8e80941Smrg { 203b8e80941Smrg .Name = MESA_FORMAT_R5G6B5_UNORM, 204b8e80941Smrg .StrName = "MESA_FORMAT_R5G6B5_UNORM", 205b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 206b8e80941Smrg .BaseFormat = GL_RGB, 207b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 208b8e80941Smrg .RedBits = 5, .GreenBits = 6, .BlueBits = 5, .AlphaBits = 0, 209b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 210b8e80941Smrg .IsSRGBFormat = 0, 211b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 212b8e80941Smrg .BytesPerBlock = 2, 213b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 214b8e80941Smrg .ArrayFormat = 0, 215b8e80941Smrg }, 216b8e80941Smrg { 217b8e80941Smrg .Name = MESA_FORMAT_B4G4R4A4_UNORM, 218b8e80941Smrg .StrName = "MESA_FORMAT_B4G4R4A4_UNORM", 219b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 220b8e80941Smrg .BaseFormat = GL_RGBA, 221b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 222b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 223b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 224b8e80941Smrg .IsSRGBFormat = 0, 225b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 226b8e80941Smrg .BytesPerBlock = 2, 227b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 228b8e80941Smrg .ArrayFormat = 0, 229b8e80941Smrg }, 230b8e80941Smrg { 231b8e80941Smrg .Name = MESA_FORMAT_B4G4R4X4_UNORM, 232b8e80941Smrg .StrName = "MESA_FORMAT_B4G4R4X4_UNORM", 233b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 234b8e80941Smrg .BaseFormat = GL_RGB, 235b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 236b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 0, 237b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 238b8e80941Smrg .IsSRGBFormat = 0, 239b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 240b8e80941Smrg .BytesPerBlock = 2, 241b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 242b8e80941Smrg .ArrayFormat = 0, 243b8e80941Smrg }, 244b8e80941Smrg { 245b8e80941Smrg .Name = MESA_FORMAT_A4R4G4B4_UNORM, 246b8e80941Smrg .StrName = "MESA_FORMAT_A4R4G4B4_UNORM", 247b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 248b8e80941Smrg .BaseFormat = GL_RGBA, 249b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 250b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 251b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 252b8e80941Smrg .IsSRGBFormat = 0, 253b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 254b8e80941Smrg .BytesPerBlock = 2, 255b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 256b8e80941Smrg .ArrayFormat = 0, 257b8e80941Smrg }, 258b8e80941Smrg { 259b8e80941Smrg .Name = MESA_FORMAT_A1B5G5R5_UNORM, 260b8e80941Smrg .StrName = "MESA_FORMAT_A1B5G5R5_UNORM", 261b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 262b8e80941Smrg .BaseFormat = GL_RGBA, 263b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 264b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 265b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 266b8e80941Smrg .IsSRGBFormat = 0, 267b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 268b8e80941Smrg .BytesPerBlock = 2, 269b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 270b8e80941Smrg .ArrayFormat = 0, 271b8e80941Smrg }, 272b8e80941Smrg { 273b8e80941Smrg .Name = MESA_FORMAT_X1B5G5R5_UNORM, 274b8e80941Smrg .StrName = "MESA_FORMAT_X1B5G5R5_UNORM", 275b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 276b8e80941Smrg .BaseFormat = GL_RGB, 277b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 278b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 0, 279b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 280b8e80941Smrg .IsSRGBFormat = 0, 281b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 282b8e80941Smrg .BytesPerBlock = 2, 283b8e80941Smrg .Swizzle = { 3, 2, 1, 5 }, 284b8e80941Smrg .ArrayFormat = 0, 285b8e80941Smrg }, 286b8e80941Smrg { 287b8e80941Smrg .Name = MESA_FORMAT_B5G5R5A1_UNORM, 288b8e80941Smrg .StrName = "MESA_FORMAT_B5G5R5A1_UNORM", 289b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 290b8e80941Smrg .BaseFormat = GL_RGBA, 291b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 292b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 293b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 294b8e80941Smrg .IsSRGBFormat = 0, 295b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 296b8e80941Smrg .BytesPerBlock = 2, 297b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 298b8e80941Smrg .ArrayFormat = 0, 299b8e80941Smrg }, 300b8e80941Smrg { 301b8e80941Smrg .Name = MESA_FORMAT_B5G5R5X1_UNORM, 302b8e80941Smrg .StrName = "MESA_FORMAT_B5G5R5X1_UNORM", 303b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 304b8e80941Smrg .BaseFormat = GL_RGB, 305b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 306b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 0, 307b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 308b8e80941Smrg .IsSRGBFormat = 0, 309b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 310b8e80941Smrg .BytesPerBlock = 2, 311b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 312b8e80941Smrg .ArrayFormat = 0, 313b8e80941Smrg }, 314b8e80941Smrg { 315b8e80941Smrg .Name = MESA_FORMAT_A1R5G5B5_UNORM, 316b8e80941Smrg .StrName = "MESA_FORMAT_A1R5G5B5_UNORM", 317b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 318b8e80941Smrg .BaseFormat = GL_RGBA, 319b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 320b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 321b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 322b8e80941Smrg .IsSRGBFormat = 0, 323b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 324b8e80941Smrg .BytesPerBlock = 2, 325b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 326b8e80941Smrg .ArrayFormat = 0, 327b8e80941Smrg }, 328b8e80941Smrg { 329b8e80941Smrg .Name = MESA_FORMAT_L8A8_UNORM, 330b8e80941Smrg .StrName = "MESA_FORMAT_L8A8_UNORM", 331b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 332b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 333b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 334b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 335b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 336b8e80941Smrg .IsSRGBFormat = 0, 337b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 338b8e80941Smrg .BytesPerBlock = 2, 339b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 340b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 0, 0, 1), 341b8e80941Smrg }, 342b8e80941Smrg { 343b8e80941Smrg .Name = MESA_FORMAT_A8L8_UNORM, 344b8e80941Smrg .StrName = "MESA_FORMAT_A8L8_UNORM", 345b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 346b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 347b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 348b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 349b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 350b8e80941Smrg .IsSRGBFormat = 0, 351b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 352b8e80941Smrg .BytesPerBlock = 2, 353b8e80941Smrg .Swizzle = { 1, 1, 1, 0 }, 354b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 1, 1, 0), 355b8e80941Smrg }, 356b8e80941Smrg { 357b8e80941Smrg .Name = MESA_FORMAT_R8G8_UNORM, 358b8e80941Smrg .StrName = "MESA_FORMAT_R8G8_UNORM", 359b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 360b8e80941Smrg .BaseFormat = GL_RG, 361b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 362b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 363b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 364b8e80941Smrg .IsSRGBFormat = 0, 365b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 366b8e80941Smrg .BytesPerBlock = 2, 367b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 368b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 1, 4, 5), 369b8e80941Smrg }, 370b8e80941Smrg { 371b8e80941Smrg .Name = MESA_FORMAT_G8R8_UNORM, 372b8e80941Smrg .StrName = "MESA_FORMAT_G8R8_UNORM", 373b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 374b8e80941Smrg .BaseFormat = GL_RG, 375b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 376b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 377b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 378b8e80941Smrg .IsSRGBFormat = 0, 379b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 380b8e80941Smrg .BytesPerBlock = 2, 381b8e80941Smrg .Swizzle = { 1, 0, 4, 5 }, 382b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 0, 4, 5), 383b8e80941Smrg }, 384b8e80941Smrg { 385b8e80941Smrg .Name = MESA_FORMAT_L4A4_UNORM, 386b8e80941Smrg .StrName = "MESA_FORMAT_L4A4_UNORM", 387b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 388b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 389b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 390b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 4, 391b8e80941Smrg .LuminanceBits = 4, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 392b8e80941Smrg .IsSRGBFormat = 0, 393b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 394b8e80941Smrg .BytesPerBlock = 1, 395b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 396b8e80941Smrg .ArrayFormat = 0, 397b8e80941Smrg }, 398b8e80941Smrg { 399b8e80941Smrg .Name = MESA_FORMAT_B2G3R3_UNORM, 400b8e80941Smrg .StrName = "MESA_FORMAT_B2G3R3_UNORM", 401b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 402b8e80941Smrg .BaseFormat = GL_RGB, 403b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 404b8e80941Smrg .RedBits = 3, .GreenBits = 3, .BlueBits = 2, .AlphaBits = 0, 405b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 406b8e80941Smrg .IsSRGBFormat = 0, 407b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 408b8e80941Smrg .BytesPerBlock = 1, 409b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 410b8e80941Smrg .ArrayFormat = 0, 411b8e80941Smrg }, 412b8e80941Smrg { 413b8e80941Smrg .Name = MESA_FORMAT_R16G16_UNORM, 414b8e80941Smrg .StrName = "MESA_FORMAT_R16G16_UNORM", 415b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 416b8e80941Smrg .BaseFormat = GL_RG, 417b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 418b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 419b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 420b8e80941Smrg .IsSRGBFormat = 0, 421b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 422b8e80941Smrg .BytesPerBlock = 4, 423b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 424b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 0, 1, 4, 5), 425b8e80941Smrg }, 426b8e80941Smrg { 427b8e80941Smrg .Name = MESA_FORMAT_G16R16_UNORM, 428b8e80941Smrg .StrName = "MESA_FORMAT_G16R16_UNORM", 429b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 430b8e80941Smrg .BaseFormat = GL_RG, 431b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 432b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 433b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 434b8e80941Smrg .IsSRGBFormat = 0, 435b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 436b8e80941Smrg .BytesPerBlock = 4, 437b8e80941Smrg .Swizzle = { 1, 0, 4, 5 }, 438b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 1, 0, 4, 5), 439b8e80941Smrg }, 440b8e80941Smrg { 441b8e80941Smrg .Name = MESA_FORMAT_B10G10R10A2_UNORM, 442b8e80941Smrg .StrName = "MESA_FORMAT_B10G10R10A2_UNORM", 443b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 444b8e80941Smrg .BaseFormat = GL_RGBA, 445b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 446b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 447b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 448b8e80941Smrg .IsSRGBFormat = 0, 449b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 450b8e80941Smrg .BytesPerBlock = 4, 451b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 452b8e80941Smrg .ArrayFormat = 0, 453b8e80941Smrg }, 454b8e80941Smrg { 455b8e80941Smrg .Name = MESA_FORMAT_B10G10R10X2_UNORM, 456b8e80941Smrg .StrName = "MESA_FORMAT_B10G10R10X2_UNORM", 457b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 458b8e80941Smrg .BaseFormat = GL_RGB, 459b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 460b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 0, 461b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 462b8e80941Smrg .IsSRGBFormat = 0, 463b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 464b8e80941Smrg .BytesPerBlock = 4, 465b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 466b8e80941Smrg .ArrayFormat = 0, 467b8e80941Smrg }, 468b8e80941Smrg { 469b8e80941Smrg .Name = MESA_FORMAT_R10G10B10A2_UNORM, 470b8e80941Smrg .StrName = "MESA_FORMAT_R10G10B10A2_UNORM", 471b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 472b8e80941Smrg .BaseFormat = GL_RGBA, 473b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 474b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 475b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 476b8e80941Smrg .IsSRGBFormat = 0, 477b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 478b8e80941Smrg .BytesPerBlock = 4, 479b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 480b8e80941Smrg .ArrayFormat = 0, 481b8e80941Smrg }, 482b8e80941Smrg { 483b8e80941Smrg .Name = MESA_FORMAT_R10G10B10X2_UNORM, 484b8e80941Smrg .StrName = "MESA_FORMAT_R10G10B10X2_UNORM", 485b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 486b8e80941Smrg .BaseFormat = GL_RGB, 487b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 488b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 0, 489b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 490b8e80941Smrg .IsSRGBFormat = 0, 491b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 492b8e80941Smrg .BytesPerBlock = 4, 493b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 494b8e80941Smrg .ArrayFormat = 0, 495b8e80941Smrg }, 496b8e80941Smrg { 497b8e80941Smrg .Name = MESA_FORMAT_S8_UINT_Z24_UNORM, 498b8e80941Smrg .StrName = "MESA_FORMAT_S8_UINT_Z24_UNORM", 499b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 500b8e80941Smrg .BaseFormat = GL_DEPTH_STENCIL, 501b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 502b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 503b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 24, .StencilBits = 8, 504b8e80941Smrg .IsSRGBFormat = 0, 505b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 506b8e80941Smrg .BytesPerBlock = 4, 507b8e80941Smrg .Swizzle = { 0, 1, 6, 6 }, 508b8e80941Smrg .ArrayFormat = 0, 509b8e80941Smrg }, 510b8e80941Smrg { 511b8e80941Smrg .Name = MESA_FORMAT_X8_UINT_Z24_UNORM, 512b8e80941Smrg .StrName = "MESA_FORMAT_X8_UINT_Z24_UNORM", 513b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 514b8e80941Smrg .BaseFormat = GL_DEPTH_COMPONENT, 515b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 516b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 517b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 24, .StencilBits = 0, 518b8e80941Smrg .IsSRGBFormat = 0, 519b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 520b8e80941Smrg .BytesPerBlock = 4, 521b8e80941Smrg .Swizzle = { 0, 6, 6, 6 }, 522b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(3, 0, 0, 1, 2, 0, 6, 6, 6), 523b8e80941Smrg }, 524b8e80941Smrg { 525b8e80941Smrg .Name = MESA_FORMAT_Z24_UNORM_S8_UINT, 526b8e80941Smrg .StrName = "MESA_FORMAT_Z24_UNORM_S8_UINT", 527b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 528b8e80941Smrg .BaseFormat = GL_DEPTH_STENCIL, 529b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 530b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 531b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 24, .StencilBits = 8, 532b8e80941Smrg .IsSRGBFormat = 0, 533b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 534b8e80941Smrg .BytesPerBlock = 4, 535b8e80941Smrg .Swizzle = { 1, 0, 6, 6 }, 536b8e80941Smrg .ArrayFormat = 0, 537b8e80941Smrg }, 538b8e80941Smrg { 539b8e80941Smrg .Name = MESA_FORMAT_Z24_UNORM_X8_UINT, 540b8e80941Smrg .StrName = "MESA_FORMAT_Z24_UNORM_X8_UINT", 541b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 542b8e80941Smrg .BaseFormat = GL_DEPTH_COMPONENT, 543b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 544b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 545b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 24, .StencilBits = 0, 546b8e80941Smrg .IsSRGBFormat = 0, 547b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 548b8e80941Smrg .BytesPerBlock = 4, 549b8e80941Smrg .Swizzle = { 1, 6, 6, 6 }, 550b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(3, 0, 0, 1, 2, 1, 6, 6, 6), 551b8e80941Smrg }, 552b8e80941Smrg { 553b8e80941Smrg .Name = MESA_FORMAT_R3G3B2_UNORM, 554b8e80941Smrg .StrName = "MESA_FORMAT_R3G3B2_UNORM", 555b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 556b8e80941Smrg .BaseFormat = GL_RGB, 557b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 558b8e80941Smrg .RedBits = 3, .GreenBits = 3, .BlueBits = 2, .AlphaBits = 0, 559b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 560b8e80941Smrg .IsSRGBFormat = 0, 561b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 562b8e80941Smrg .BytesPerBlock = 1, 563b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 564b8e80941Smrg .ArrayFormat = 0, 565b8e80941Smrg }, 566b8e80941Smrg { 567b8e80941Smrg .Name = MESA_FORMAT_A4B4G4R4_UNORM, 568b8e80941Smrg .StrName = "MESA_FORMAT_A4B4G4R4_UNORM", 569b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 570b8e80941Smrg .BaseFormat = GL_RGBA, 571b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 572b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 573b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 574b8e80941Smrg .IsSRGBFormat = 0, 575b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 576b8e80941Smrg .BytesPerBlock = 2, 577b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 578b8e80941Smrg .ArrayFormat = 0, 579b8e80941Smrg }, 580b8e80941Smrg { 581b8e80941Smrg .Name = MESA_FORMAT_R4G4B4A4_UNORM, 582b8e80941Smrg .StrName = "MESA_FORMAT_R4G4B4A4_UNORM", 583b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 584b8e80941Smrg .BaseFormat = GL_RGBA, 585b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 586b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 587b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 588b8e80941Smrg .IsSRGBFormat = 0, 589b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 590b8e80941Smrg .BytesPerBlock = 2, 591b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 592b8e80941Smrg .ArrayFormat = 0, 593b8e80941Smrg }, 594b8e80941Smrg { 595b8e80941Smrg .Name = MESA_FORMAT_R5G5B5A1_UNORM, 596b8e80941Smrg .StrName = "MESA_FORMAT_R5G5B5A1_UNORM", 597b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 598b8e80941Smrg .BaseFormat = GL_RGBA, 599b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 600b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 601b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 602b8e80941Smrg .IsSRGBFormat = 0, 603b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 604b8e80941Smrg .BytesPerBlock = 2, 605b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 606b8e80941Smrg .ArrayFormat = 0, 607b8e80941Smrg }, 608b8e80941Smrg { 609b8e80941Smrg .Name = MESA_FORMAT_A2B10G10R10_UNORM, 610b8e80941Smrg .StrName = "MESA_FORMAT_A2B10G10R10_UNORM", 611b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 612b8e80941Smrg .BaseFormat = GL_RGBA, 613b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 614b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 615b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 616b8e80941Smrg .IsSRGBFormat = 0, 617b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 618b8e80941Smrg .BytesPerBlock = 4, 619b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 620b8e80941Smrg .ArrayFormat = 0, 621b8e80941Smrg }, 622b8e80941Smrg { 623b8e80941Smrg .Name = MESA_FORMAT_A2R10G10B10_UNORM, 624b8e80941Smrg .StrName = "MESA_FORMAT_A2R10G10B10_UNORM", 625b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 626b8e80941Smrg .BaseFormat = GL_RGBA, 627b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 628b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 629b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 630b8e80941Smrg .IsSRGBFormat = 0, 631b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 632b8e80941Smrg .BytesPerBlock = 4, 633b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 634b8e80941Smrg .ArrayFormat = 0, 635b8e80941Smrg }, 636b8e80941Smrg { 637b8e80941Smrg .Name = MESA_FORMAT_YCBCR, 638b8e80941Smrg .StrName = "MESA_FORMAT_YCBCR", 639b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_OTHER, 640b8e80941Smrg .BaseFormat = GL_YCBCR_MESA, 641b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 642b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 643b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 644b8e80941Smrg .IsSRGBFormat = 0, 645b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 646b8e80941Smrg .BytesPerBlock = 2, 647b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 648b8e80941Smrg .ArrayFormat = 0, 649b8e80941Smrg }, 650b8e80941Smrg { 651b8e80941Smrg .Name = MESA_FORMAT_YCBCR_REV, 652b8e80941Smrg .StrName = "MESA_FORMAT_YCBCR_REV", 653b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_OTHER, 654b8e80941Smrg .BaseFormat = GL_YCBCR_MESA, 655b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 656b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 657b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 658b8e80941Smrg .IsSRGBFormat = 0, 659b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 660b8e80941Smrg .BytesPerBlock = 2, 661b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 662b8e80941Smrg .ArrayFormat = 0, 663b8e80941Smrg }, 664b8e80941Smrg { 665b8e80941Smrg .Name = MESA_FORMAT_A_UNORM8, 666b8e80941Smrg .StrName = "MESA_FORMAT_A_UNORM8", 667b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 668b8e80941Smrg .BaseFormat = GL_ALPHA, 669b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 670b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 671b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 672b8e80941Smrg .IsSRGBFormat = 0, 673b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 674b8e80941Smrg .BytesPerBlock = 1, 675b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 676b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 4, 4, 4, 0), 677b8e80941Smrg }, 678b8e80941Smrg { 679b8e80941Smrg .Name = MESA_FORMAT_A_UNORM16, 680b8e80941Smrg .StrName = "MESA_FORMAT_A_UNORM16", 681b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 682b8e80941Smrg .BaseFormat = GL_ALPHA, 683b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 684b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 685b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 686b8e80941Smrg .IsSRGBFormat = 0, 687b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 688b8e80941Smrg .BytesPerBlock = 2, 689b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 690b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 4, 4, 4, 0), 691b8e80941Smrg }, 692b8e80941Smrg { 693b8e80941Smrg .Name = MESA_FORMAT_L_UNORM8, 694b8e80941Smrg .StrName = "MESA_FORMAT_L_UNORM8", 695b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 696b8e80941Smrg .BaseFormat = GL_LUMINANCE, 697b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 698b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 699b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 700b8e80941Smrg .IsSRGBFormat = 0, 701b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 702b8e80941Smrg .BytesPerBlock = 1, 703b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 704b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 5), 705b8e80941Smrg }, 706b8e80941Smrg { 707b8e80941Smrg .Name = MESA_FORMAT_L_UNORM16, 708b8e80941Smrg .StrName = "MESA_FORMAT_L_UNORM16", 709b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 710b8e80941Smrg .BaseFormat = GL_LUMINANCE, 711b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 712b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 713b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 714b8e80941Smrg .IsSRGBFormat = 0, 715b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 716b8e80941Smrg .BytesPerBlock = 2, 717b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 718b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 0, 0, 5), 719b8e80941Smrg }, 720b8e80941Smrg { 721b8e80941Smrg .Name = MESA_FORMAT_I_UNORM8, 722b8e80941Smrg .StrName = "MESA_FORMAT_I_UNORM8", 723b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 724b8e80941Smrg .BaseFormat = GL_INTENSITY, 725b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 726b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 727b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 8, .DepthBits = 0, .StencilBits = 0, 728b8e80941Smrg .IsSRGBFormat = 0, 729b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 730b8e80941Smrg .BytesPerBlock = 1, 731b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 732b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 0), 733b8e80941Smrg }, 734b8e80941Smrg { 735b8e80941Smrg .Name = MESA_FORMAT_I_UNORM16, 736b8e80941Smrg .StrName = "MESA_FORMAT_I_UNORM16", 737b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 738b8e80941Smrg .BaseFormat = GL_INTENSITY, 739b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 740b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 741b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 16, .DepthBits = 0, .StencilBits = 0, 742b8e80941Smrg .IsSRGBFormat = 0, 743b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 744b8e80941Smrg .BytesPerBlock = 2, 745b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 746b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 0, 0, 0), 747b8e80941Smrg }, 748b8e80941Smrg { 749b8e80941Smrg .Name = MESA_FORMAT_R_UNORM8, 750b8e80941Smrg .StrName = "MESA_FORMAT_R_UNORM8", 751b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 752b8e80941Smrg .BaseFormat = GL_RED, 753b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 754b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 755b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 756b8e80941Smrg .IsSRGBFormat = 0, 757b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 758b8e80941Smrg .BytesPerBlock = 1, 759b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 760b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 4, 4, 5), 761b8e80941Smrg }, 762b8e80941Smrg { 763b8e80941Smrg .Name = MESA_FORMAT_R_UNORM16, 764b8e80941Smrg .StrName = "MESA_FORMAT_R_UNORM16", 765b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 766b8e80941Smrg .BaseFormat = GL_RED, 767b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 768b8e80941Smrg .RedBits = 16, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 769b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 770b8e80941Smrg .IsSRGBFormat = 0, 771b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 772b8e80941Smrg .BytesPerBlock = 2, 773b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 774b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 4, 4, 5), 775b8e80941Smrg }, 776b8e80941Smrg { 777b8e80941Smrg .Name = MESA_FORMAT_BGR_UNORM8, 778b8e80941Smrg .StrName = "MESA_FORMAT_BGR_UNORM8", 779b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 780b8e80941Smrg .BaseFormat = GL_RGB, 781b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 782b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 783b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 784b8e80941Smrg .IsSRGBFormat = 0, 785b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 786b8e80941Smrg .BytesPerBlock = 3, 787b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 788b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 2, 1, 0, 5), 789b8e80941Smrg }, 790b8e80941Smrg { 791b8e80941Smrg .Name = MESA_FORMAT_RGB_UNORM8, 792b8e80941Smrg .StrName = "MESA_FORMAT_RGB_UNORM8", 793b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 794b8e80941Smrg .BaseFormat = GL_RGB, 795b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 796b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 797b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 798b8e80941Smrg .IsSRGBFormat = 0, 799b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 800b8e80941Smrg .BytesPerBlock = 3, 801b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 802b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 0, 1, 2, 5), 803b8e80941Smrg }, 804b8e80941Smrg { 805b8e80941Smrg .Name = MESA_FORMAT_RGBA_UNORM16, 806b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_UNORM16", 807b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 808b8e80941Smrg .BaseFormat = GL_RGBA, 809b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 810b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 811b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 812b8e80941Smrg .IsSRGBFormat = 0, 813b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 814b8e80941Smrg .BytesPerBlock = 8, 815b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 816b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 4, 0, 1, 2, 3), 817b8e80941Smrg }, 818b8e80941Smrg { 819b8e80941Smrg .Name = MESA_FORMAT_RGBX_UNORM16, 820b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_UNORM16", 821b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 822b8e80941Smrg .BaseFormat = GL_RGB, 823b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 824b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 825b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 826b8e80941Smrg .IsSRGBFormat = 0, 827b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 828b8e80941Smrg .BytesPerBlock = 8, 829b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 830b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 4, 0, 1, 2, 5), 831b8e80941Smrg }, 832b8e80941Smrg { 833b8e80941Smrg .Name = MESA_FORMAT_Z_UNORM16, 834b8e80941Smrg .StrName = "MESA_FORMAT_Z_UNORM16", 835b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 836b8e80941Smrg .BaseFormat = GL_DEPTH_COMPONENT, 837b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 838b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 839b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 16, .StencilBits = 0, 840b8e80941Smrg .IsSRGBFormat = 0, 841b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 842b8e80941Smrg .BytesPerBlock = 2, 843b8e80941Smrg .Swizzle = { 0, 6, 6, 6 }, 844b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 6, 6, 6), 845b8e80941Smrg }, 846b8e80941Smrg { 847b8e80941Smrg .Name = MESA_FORMAT_Z_UNORM32, 848b8e80941Smrg .StrName = "MESA_FORMAT_Z_UNORM32", 849b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 850b8e80941Smrg .BaseFormat = GL_DEPTH_COMPONENT, 851b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 852b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 853b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 32, .StencilBits = 0, 854b8e80941Smrg .IsSRGBFormat = 0, 855b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 856b8e80941Smrg .BytesPerBlock = 4, 857b8e80941Smrg .Swizzle = { 0, 6, 6, 6 }, 858b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 1, 1, 0, 6, 6, 6), 859b8e80941Smrg }, 860b8e80941Smrg { 861b8e80941Smrg .Name = MESA_FORMAT_S_UINT8, 862b8e80941Smrg .StrName = "MESA_FORMAT_S_UINT8", 863b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 864b8e80941Smrg .BaseFormat = GL_STENCIL_INDEX, 865b8e80941Smrg .DataType = GL_UNSIGNED_INT, 866b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 867b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 8, 868b8e80941Smrg .IsSRGBFormat = 0, 869b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 870b8e80941Smrg .BytesPerBlock = 1, 871b8e80941Smrg .Swizzle = { 6, 0, 6, 6 }, 872b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 6, 0, 6, 6), 873b8e80941Smrg }, 874b8e80941Smrg { 875b8e80941Smrg .Name = MESA_FORMAT_A8B8G8R8_SNORM, 876b8e80941Smrg .StrName = "MESA_FORMAT_A8B8G8R8_SNORM", 877b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 878b8e80941Smrg .BaseFormat = GL_RGBA, 879b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 880b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 881b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 882b8e80941Smrg .IsSRGBFormat = 0, 883b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 884b8e80941Smrg .BytesPerBlock = 4, 885b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 886b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 3, 2, 1, 0), 887b8e80941Smrg }, 888b8e80941Smrg { 889b8e80941Smrg .Name = MESA_FORMAT_X8B8G8R8_SNORM, 890b8e80941Smrg .StrName = "MESA_FORMAT_X8B8G8R8_SNORM", 891b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 892b8e80941Smrg .BaseFormat = GL_RGB, 893b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 894b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 895b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 896b8e80941Smrg .IsSRGBFormat = 0, 897b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 898b8e80941Smrg .BytesPerBlock = 4, 899b8e80941Smrg .Swizzle = { 3, 2, 1, 5 }, 900b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 3, 2, 1, 5), 901b8e80941Smrg }, 902b8e80941Smrg { 903b8e80941Smrg .Name = MESA_FORMAT_R8G8B8A8_SNORM, 904b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8A8_SNORM", 905b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 906b8e80941Smrg .BaseFormat = GL_RGBA, 907b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 908b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 909b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 910b8e80941Smrg .IsSRGBFormat = 0, 911b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 912b8e80941Smrg .BytesPerBlock = 4, 913b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 914b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 0, 1, 2, 3), 915b8e80941Smrg }, 916b8e80941Smrg { 917b8e80941Smrg .Name = MESA_FORMAT_R8G8B8X8_SNORM, 918b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8X8_SNORM", 919b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 920b8e80941Smrg .BaseFormat = GL_RGB, 921b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 922b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 923b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 924b8e80941Smrg .IsSRGBFormat = 0, 925b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 926b8e80941Smrg .BytesPerBlock = 4, 927b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 928b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 0, 1, 2, 5), 929b8e80941Smrg }, 930b8e80941Smrg { 931b8e80941Smrg .Name = MESA_FORMAT_R16G16_SNORM, 932b8e80941Smrg .StrName = "MESA_FORMAT_R16G16_SNORM", 933b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 934b8e80941Smrg .BaseFormat = GL_RG, 935b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 936b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 937b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 938b8e80941Smrg .IsSRGBFormat = 0, 939b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 940b8e80941Smrg .BytesPerBlock = 4, 941b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 942b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 0, 1, 4, 5), 943b8e80941Smrg }, 944b8e80941Smrg { 945b8e80941Smrg .Name = MESA_FORMAT_G16R16_SNORM, 946b8e80941Smrg .StrName = "MESA_FORMAT_G16R16_SNORM", 947b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 948b8e80941Smrg .BaseFormat = GL_RG, 949b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 950b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 951b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 952b8e80941Smrg .IsSRGBFormat = 0, 953b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 954b8e80941Smrg .BytesPerBlock = 4, 955b8e80941Smrg .Swizzle = { 1, 0, 4, 5 }, 956b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 1, 0, 4, 5), 957b8e80941Smrg }, 958b8e80941Smrg { 959b8e80941Smrg .Name = MESA_FORMAT_R8G8_SNORM, 960b8e80941Smrg .StrName = "MESA_FORMAT_R8G8_SNORM", 961b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 962b8e80941Smrg .BaseFormat = GL_RG, 963b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 964b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 965b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 966b8e80941Smrg .IsSRGBFormat = 0, 967b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 968b8e80941Smrg .BytesPerBlock = 2, 969b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 970b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 0, 1, 4, 5), 971b8e80941Smrg }, 972b8e80941Smrg { 973b8e80941Smrg .Name = MESA_FORMAT_G8R8_SNORM, 974b8e80941Smrg .StrName = "MESA_FORMAT_G8R8_SNORM", 975b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 976b8e80941Smrg .BaseFormat = GL_RG, 977b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 978b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 979b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 980b8e80941Smrg .IsSRGBFormat = 0, 981b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 982b8e80941Smrg .BytesPerBlock = 2, 983b8e80941Smrg .Swizzle = { 1, 0, 4, 5 }, 984b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 1, 0, 4, 5), 985b8e80941Smrg }, 986b8e80941Smrg { 987b8e80941Smrg .Name = MESA_FORMAT_L8A8_SNORM, 988b8e80941Smrg .StrName = "MESA_FORMAT_L8A8_SNORM", 989b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 990b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 991b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 992b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 993b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 994b8e80941Smrg .IsSRGBFormat = 0, 995b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 996b8e80941Smrg .BytesPerBlock = 2, 997b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 998b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 0, 0, 0, 1), 999b8e80941Smrg }, 1000b8e80941Smrg { 1001b8e80941Smrg .Name = MESA_FORMAT_A8L8_SNORM, 1002b8e80941Smrg .StrName = "MESA_FORMAT_A8L8_SNORM", 1003b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1004b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1005b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1006b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 1007b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1008b8e80941Smrg .IsSRGBFormat = 0, 1009b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1010b8e80941Smrg .BytesPerBlock = 2, 1011b8e80941Smrg .Swizzle = { 1, 1, 1, 0 }, 1012b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 1, 1, 1, 0), 1013b8e80941Smrg }, 1014b8e80941Smrg { 1015b8e80941Smrg .Name = MESA_FORMAT_A_SNORM8, 1016b8e80941Smrg .StrName = "MESA_FORMAT_A_SNORM8", 1017b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1018b8e80941Smrg .BaseFormat = GL_ALPHA, 1019b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1020b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 1021b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1022b8e80941Smrg .IsSRGBFormat = 0, 1023b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1024b8e80941Smrg .BytesPerBlock = 1, 1025b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1026b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 4, 4, 4, 0), 1027b8e80941Smrg }, 1028b8e80941Smrg { 1029b8e80941Smrg .Name = MESA_FORMAT_A_SNORM16, 1030b8e80941Smrg .StrName = "MESA_FORMAT_A_SNORM16", 1031b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1032b8e80941Smrg .BaseFormat = GL_ALPHA, 1033b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1034b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 1035b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1036b8e80941Smrg .IsSRGBFormat = 0, 1037b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1038b8e80941Smrg .BytesPerBlock = 2, 1039b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1040b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 4, 4, 4, 0), 1041b8e80941Smrg }, 1042b8e80941Smrg { 1043b8e80941Smrg .Name = MESA_FORMAT_L_SNORM8, 1044b8e80941Smrg .StrName = "MESA_FORMAT_L_SNORM8", 1045b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1046b8e80941Smrg .BaseFormat = GL_LUMINANCE, 1047b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1048b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1049b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1050b8e80941Smrg .IsSRGBFormat = 0, 1051b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1052b8e80941Smrg .BytesPerBlock = 1, 1053b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 1054b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 0, 0, 5), 1055b8e80941Smrg }, 1056b8e80941Smrg { 1057b8e80941Smrg .Name = MESA_FORMAT_L_SNORM16, 1058b8e80941Smrg .StrName = "MESA_FORMAT_L_SNORM16", 1059b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1060b8e80941Smrg .BaseFormat = GL_LUMINANCE, 1061b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1062b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1063b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1064b8e80941Smrg .IsSRGBFormat = 0, 1065b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1066b8e80941Smrg .BytesPerBlock = 2, 1067b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 1068b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 0, 0, 5), 1069b8e80941Smrg }, 1070b8e80941Smrg { 1071b8e80941Smrg .Name = MESA_FORMAT_I_SNORM8, 1072b8e80941Smrg .StrName = "MESA_FORMAT_I_SNORM8", 1073b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1074b8e80941Smrg .BaseFormat = GL_INTENSITY, 1075b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1076b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1077b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 8, .DepthBits = 0, .StencilBits = 0, 1078b8e80941Smrg .IsSRGBFormat = 0, 1079b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1080b8e80941Smrg .BytesPerBlock = 1, 1081b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 1082b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 0, 0, 0), 1083b8e80941Smrg }, 1084b8e80941Smrg { 1085b8e80941Smrg .Name = MESA_FORMAT_I_SNORM16, 1086b8e80941Smrg .StrName = "MESA_FORMAT_I_SNORM16", 1087b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1088b8e80941Smrg .BaseFormat = GL_INTENSITY, 1089b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1090b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1091b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 16, .DepthBits = 0, .StencilBits = 0, 1092b8e80941Smrg .IsSRGBFormat = 0, 1093b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1094b8e80941Smrg .BytesPerBlock = 2, 1095b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 1096b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 0, 0, 0), 1097b8e80941Smrg }, 1098b8e80941Smrg { 1099b8e80941Smrg .Name = MESA_FORMAT_R_SNORM8, 1100b8e80941Smrg .StrName = "MESA_FORMAT_R_SNORM8", 1101b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1102b8e80941Smrg .BaseFormat = GL_RED, 1103b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1104b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1105b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1106b8e80941Smrg .IsSRGBFormat = 0, 1107b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1108b8e80941Smrg .BytesPerBlock = 1, 1109b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 1110b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 4, 4, 5), 1111b8e80941Smrg }, 1112b8e80941Smrg { 1113b8e80941Smrg .Name = MESA_FORMAT_R_SNORM16, 1114b8e80941Smrg .StrName = "MESA_FORMAT_R_SNORM16", 1115b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1116b8e80941Smrg .BaseFormat = GL_RED, 1117b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1118b8e80941Smrg .RedBits = 16, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1119b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1120b8e80941Smrg .IsSRGBFormat = 0, 1121b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1122b8e80941Smrg .BytesPerBlock = 2, 1123b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 1124b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 4, 4, 5), 1125b8e80941Smrg }, 1126b8e80941Smrg { 1127b8e80941Smrg .Name = MESA_FORMAT_LA_SNORM16, 1128b8e80941Smrg .StrName = "MESA_FORMAT_LA_SNORM16", 1129b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1130b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1131b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1132b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 1133b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1134b8e80941Smrg .IsSRGBFormat = 0, 1135b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1136b8e80941Smrg .BytesPerBlock = 4, 1137b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 1138b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 0, 0, 0, 1), 1139b8e80941Smrg }, 1140b8e80941Smrg { 1141b8e80941Smrg .Name = MESA_FORMAT_RGB_SNORM16, 1142b8e80941Smrg .StrName = "MESA_FORMAT_RGB_SNORM16", 1143b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1144b8e80941Smrg .BaseFormat = GL_RGB, 1145b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1146b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 1147b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1148b8e80941Smrg .IsSRGBFormat = 0, 1149b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1150b8e80941Smrg .BytesPerBlock = 6, 1151b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1152b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 3, 0, 1, 2, 5), 1153b8e80941Smrg }, 1154b8e80941Smrg { 1155b8e80941Smrg .Name = MESA_FORMAT_RGBA_SNORM16, 1156b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_SNORM16", 1157b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1158b8e80941Smrg .BaseFormat = GL_RGBA, 1159b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1160b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 1161b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1162b8e80941Smrg .IsSRGBFormat = 0, 1163b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1164b8e80941Smrg .BytesPerBlock = 8, 1165b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1166b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 4, 0, 1, 2, 3), 1167b8e80941Smrg }, 1168b8e80941Smrg { 1169b8e80941Smrg .Name = MESA_FORMAT_RGBX_SNORM16, 1170b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_SNORM16", 1171b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1172b8e80941Smrg .BaseFormat = GL_RGB, 1173b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 1174b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 1175b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1176b8e80941Smrg .IsSRGBFormat = 0, 1177b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1178b8e80941Smrg .BytesPerBlock = 8, 1179b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1180b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 1, 4, 0, 1, 2, 5), 1181b8e80941Smrg }, 1182b8e80941Smrg { 1183b8e80941Smrg .Name = MESA_FORMAT_A8B8G8R8_SRGB, 1184b8e80941Smrg .StrName = "MESA_FORMAT_A8B8G8R8_SRGB", 1185b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1186b8e80941Smrg .BaseFormat = GL_RGBA, 1187b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1188b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1189b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1190b8e80941Smrg .IsSRGBFormat = 1, 1191b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1192b8e80941Smrg .BytesPerBlock = 4, 1193b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 1194b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 0), 1195b8e80941Smrg }, 1196b8e80941Smrg { 1197b8e80941Smrg .Name = MESA_FORMAT_B8G8R8A8_SRGB, 1198b8e80941Smrg .StrName = "MESA_FORMAT_B8G8R8A8_SRGB", 1199b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1200b8e80941Smrg .BaseFormat = GL_RGBA, 1201b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1202b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1203b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1204b8e80941Smrg .IsSRGBFormat = 1, 1205b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1206b8e80941Smrg .BytesPerBlock = 4, 1207b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 1208b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 3), 1209b8e80941Smrg }, 1210b8e80941Smrg { 1211b8e80941Smrg .Name = MESA_FORMAT_A8R8G8B8_SRGB, 1212b8e80941Smrg .StrName = "MESA_FORMAT_A8R8G8B8_SRGB", 1213b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1214b8e80941Smrg .BaseFormat = GL_RGBA, 1215b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1216b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1217b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1218b8e80941Smrg .IsSRGBFormat = 1, 1219b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1220b8e80941Smrg .BytesPerBlock = 4, 1221b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 1222b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 0), 1223b8e80941Smrg }, 1224b8e80941Smrg { 1225b8e80941Smrg .Name = MESA_FORMAT_B8G8R8X8_SRGB, 1226b8e80941Smrg .StrName = "MESA_FORMAT_B8G8R8X8_SRGB", 1227b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1228b8e80941Smrg .BaseFormat = GL_RGB, 1229b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1230b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 1231b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1232b8e80941Smrg .IsSRGBFormat = 1, 1233b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1234b8e80941Smrg .BytesPerBlock = 4, 1235b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 1236b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 5), 1237b8e80941Smrg }, 1238b8e80941Smrg { 1239b8e80941Smrg .Name = MESA_FORMAT_X8R8G8B8_SRGB, 1240b8e80941Smrg .StrName = "MESA_FORMAT_X8R8G8B8_SRGB", 1241b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1242b8e80941Smrg .BaseFormat = GL_RGB, 1243b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1244b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 1245b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1246b8e80941Smrg .IsSRGBFormat = 1, 1247b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1248b8e80941Smrg .BytesPerBlock = 4, 1249b8e80941Smrg .Swizzle = { 1, 2, 3, 5 }, 1250b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 5), 1251b8e80941Smrg }, 1252b8e80941Smrg { 1253b8e80941Smrg .Name = MESA_FORMAT_R8G8B8A8_SRGB, 1254b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8A8_SRGB", 1255b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1256b8e80941Smrg .BaseFormat = GL_RGBA, 1257b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1258b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1259b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1260b8e80941Smrg .IsSRGBFormat = 1, 1261b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1262b8e80941Smrg .BytesPerBlock = 4, 1263b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1264b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 3), 1265b8e80941Smrg }, 1266b8e80941Smrg { 1267b8e80941Smrg .Name = MESA_FORMAT_R8G8B8X8_SRGB, 1268b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8X8_SRGB", 1269b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1270b8e80941Smrg .BaseFormat = GL_RGB, 1271b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1272b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 1273b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1274b8e80941Smrg .IsSRGBFormat = 1, 1275b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1276b8e80941Smrg .BytesPerBlock = 4, 1277b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1278b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 5), 1279b8e80941Smrg }, 1280b8e80941Smrg { 1281b8e80941Smrg .Name = MESA_FORMAT_X8B8G8R8_SRGB, 1282b8e80941Smrg .StrName = "MESA_FORMAT_X8B8G8R8_SRGB", 1283b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1284b8e80941Smrg .BaseFormat = GL_RGB, 1285b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1286b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 1287b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1288b8e80941Smrg .IsSRGBFormat = 1, 1289b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1290b8e80941Smrg .BytesPerBlock = 4, 1291b8e80941Smrg .Swizzle = { 3, 2, 1, 5 }, 1292b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 5), 1293b8e80941Smrg }, 1294b8e80941Smrg { 1295b8e80941Smrg .Name = MESA_FORMAT_L8A8_SRGB, 1296b8e80941Smrg .StrName = "MESA_FORMAT_L8A8_SRGB", 1297b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1298b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1299b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1300b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 1301b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1302b8e80941Smrg .IsSRGBFormat = 1, 1303b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1304b8e80941Smrg .BytesPerBlock = 2, 1305b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 1306b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 0, 0, 1), 1307b8e80941Smrg }, 1308b8e80941Smrg { 1309b8e80941Smrg .Name = MESA_FORMAT_A8L8_SRGB, 1310b8e80941Smrg .StrName = "MESA_FORMAT_A8L8_SRGB", 1311b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1312b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1313b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1314b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 1315b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1316b8e80941Smrg .IsSRGBFormat = 1, 1317b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1318b8e80941Smrg .BytesPerBlock = 2, 1319b8e80941Smrg .Swizzle = { 1, 1, 1, 0 }, 1320b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 1, 1, 0), 1321b8e80941Smrg }, 1322b8e80941Smrg { 1323b8e80941Smrg .Name = MESA_FORMAT_R_SRGB8, 1324b8e80941Smrg .StrName = "MESA_FORMAT_R_SRGB8", 1325b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1326b8e80941Smrg .BaseFormat = GL_RED, 1327b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1328b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1329b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1330b8e80941Smrg .IsSRGBFormat = 1, 1331b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1332b8e80941Smrg .BytesPerBlock = 1, 1333b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 1334b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 4, 4, 5), 1335b8e80941Smrg }, 1336b8e80941Smrg { 1337b8e80941Smrg .Name = MESA_FORMAT_L_SRGB8, 1338b8e80941Smrg .StrName = "MESA_FORMAT_L_SRGB8", 1339b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1340b8e80941Smrg .BaseFormat = GL_LUMINANCE, 1341b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1342b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1343b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1344b8e80941Smrg .IsSRGBFormat = 1, 1345b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1346b8e80941Smrg .BytesPerBlock = 1, 1347b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 1348b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 5), 1349b8e80941Smrg }, 1350b8e80941Smrg { 1351b8e80941Smrg .Name = MESA_FORMAT_BGR_SRGB8, 1352b8e80941Smrg .StrName = "MESA_FORMAT_BGR_SRGB8", 1353b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1354b8e80941Smrg .BaseFormat = GL_RGB, 1355b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 1356b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 1357b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1358b8e80941Smrg .IsSRGBFormat = 1, 1359b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1360b8e80941Smrg .BytesPerBlock = 3, 1361b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 1362b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 2, 1, 0, 5), 1363b8e80941Smrg }, 1364b8e80941Smrg { 1365b8e80941Smrg .Name = MESA_FORMAT_R9G9B9E5_FLOAT, 1366b8e80941Smrg .StrName = "MESA_FORMAT_R9G9B9E5_FLOAT", 1367b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_OTHER, 1368b8e80941Smrg .BaseFormat = GL_RGB, 1369b8e80941Smrg .DataType = GL_FLOAT, 1370b8e80941Smrg .RedBits = 9, .GreenBits = 9, .BlueBits = 9, .AlphaBits = 0, 1371b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1372b8e80941Smrg .IsSRGBFormat = 0, 1373b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1374b8e80941Smrg .BytesPerBlock = 4, 1375b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1376b8e80941Smrg .ArrayFormat = 0, 1377b8e80941Smrg }, 1378b8e80941Smrg { 1379b8e80941Smrg .Name = MESA_FORMAT_R11G11B10_FLOAT, 1380b8e80941Smrg .StrName = "MESA_FORMAT_R11G11B10_FLOAT", 1381b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1382b8e80941Smrg .BaseFormat = GL_RGB, 1383b8e80941Smrg .DataType = GL_FLOAT, 1384b8e80941Smrg .RedBits = 11, .GreenBits = 11, .BlueBits = 10, .AlphaBits = 0, 1385b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1386b8e80941Smrg .IsSRGBFormat = 0, 1387b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1388b8e80941Smrg .BytesPerBlock = 4, 1389b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1390b8e80941Smrg .ArrayFormat = 0, 1391b8e80941Smrg }, 1392b8e80941Smrg { 1393b8e80941Smrg .Name = MESA_FORMAT_Z32_FLOAT_S8X24_UINT, 1394b8e80941Smrg .StrName = "MESA_FORMAT_Z32_FLOAT_S8X24_UINT", 1395b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1396b8e80941Smrg .BaseFormat = GL_DEPTH_STENCIL, 1397b8e80941Smrg .DataType = GL_FLOAT, 1398b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1399b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 32, .StencilBits = 8, 1400b8e80941Smrg .IsSRGBFormat = 0, 1401b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1402b8e80941Smrg .BytesPerBlock = 8, 1403b8e80941Smrg .Swizzle = { 2, 0, 6, 6 }, 1404b8e80941Smrg .ArrayFormat = 0, 1405b8e80941Smrg }, 1406b8e80941Smrg { 1407b8e80941Smrg .Name = MESA_FORMAT_A_FLOAT16, 1408b8e80941Smrg .StrName = "MESA_FORMAT_A_FLOAT16", 1409b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1410b8e80941Smrg .BaseFormat = GL_ALPHA, 1411b8e80941Smrg .DataType = GL_FLOAT, 1412b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 1413b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1414b8e80941Smrg .IsSRGBFormat = 0, 1415b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1416b8e80941Smrg .BytesPerBlock = 2, 1417b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1418b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 4, 4, 4, 0), 1419b8e80941Smrg }, 1420b8e80941Smrg { 1421b8e80941Smrg .Name = MESA_FORMAT_A_FLOAT32, 1422b8e80941Smrg .StrName = "MESA_FORMAT_A_FLOAT32", 1423b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1424b8e80941Smrg .BaseFormat = GL_ALPHA, 1425b8e80941Smrg .DataType = GL_FLOAT, 1426b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 1427b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1428b8e80941Smrg .IsSRGBFormat = 0, 1429b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1430b8e80941Smrg .BytesPerBlock = 4, 1431b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1432b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 4, 4, 4, 0), 1433b8e80941Smrg }, 1434b8e80941Smrg { 1435b8e80941Smrg .Name = MESA_FORMAT_L_FLOAT16, 1436b8e80941Smrg .StrName = "MESA_FORMAT_L_FLOAT16", 1437b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1438b8e80941Smrg .BaseFormat = GL_LUMINANCE, 1439b8e80941Smrg .DataType = GL_FLOAT, 1440b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1441b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1442b8e80941Smrg .IsSRGBFormat = 0, 1443b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1444b8e80941Smrg .BytesPerBlock = 2, 1445b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 1446b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 0, 0, 5), 1447b8e80941Smrg }, 1448b8e80941Smrg { 1449b8e80941Smrg .Name = MESA_FORMAT_L_FLOAT32, 1450b8e80941Smrg .StrName = "MESA_FORMAT_L_FLOAT32", 1451b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1452b8e80941Smrg .BaseFormat = GL_LUMINANCE, 1453b8e80941Smrg .DataType = GL_FLOAT, 1454b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1455b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1456b8e80941Smrg .IsSRGBFormat = 0, 1457b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1458b8e80941Smrg .BytesPerBlock = 4, 1459b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 1460b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 0, 0, 5), 1461b8e80941Smrg }, 1462b8e80941Smrg { 1463b8e80941Smrg .Name = MESA_FORMAT_LA_FLOAT16, 1464b8e80941Smrg .StrName = "MESA_FORMAT_LA_FLOAT16", 1465b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1466b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1467b8e80941Smrg .DataType = GL_FLOAT, 1468b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 1469b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1470b8e80941Smrg .IsSRGBFormat = 0, 1471b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1472b8e80941Smrg .BytesPerBlock = 4, 1473b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 1474b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 2, 0, 0, 0, 1), 1475b8e80941Smrg }, 1476b8e80941Smrg { 1477b8e80941Smrg .Name = MESA_FORMAT_LA_FLOAT32, 1478b8e80941Smrg .StrName = "MESA_FORMAT_LA_FLOAT32", 1479b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1480b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 1481b8e80941Smrg .DataType = GL_FLOAT, 1482b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 1483b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1484b8e80941Smrg .IsSRGBFormat = 0, 1485b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1486b8e80941Smrg .BytesPerBlock = 8, 1487b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 1488b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 2, 0, 0, 0, 1), 1489b8e80941Smrg }, 1490b8e80941Smrg { 1491b8e80941Smrg .Name = MESA_FORMAT_I_FLOAT16, 1492b8e80941Smrg .StrName = "MESA_FORMAT_I_FLOAT16", 1493b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1494b8e80941Smrg .BaseFormat = GL_INTENSITY, 1495b8e80941Smrg .DataType = GL_FLOAT, 1496b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1497b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 16, .DepthBits = 0, .StencilBits = 0, 1498b8e80941Smrg .IsSRGBFormat = 0, 1499b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1500b8e80941Smrg .BytesPerBlock = 2, 1501b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 1502b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 0, 0, 0), 1503b8e80941Smrg }, 1504b8e80941Smrg { 1505b8e80941Smrg .Name = MESA_FORMAT_I_FLOAT32, 1506b8e80941Smrg .StrName = "MESA_FORMAT_I_FLOAT32", 1507b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1508b8e80941Smrg .BaseFormat = GL_INTENSITY, 1509b8e80941Smrg .DataType = GL_FLOAT, 1510b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1511b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 32, .DepthBits = 0, .StencilBits = 0, 1512b8e80941Smrg .IsSRGBFormat = 0, 1513b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1514b8e80941Smrg .BytesPerBlock = 4, 1515b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 1516b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 0, 0, 0), 1517b8e80941Smrg }, 1518b8e80941Smrg { 1519b8e80941Smrg .Name = MESA_FORMAT_R_FLOAT16, 1520b8e80941Smrg .StrName = "MESA_FORMAT_R_FLOAT16", 1521b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1522b8e80941Smrg .BaseFormat = GL_RED, 1523b8e80941Smrg .DataType = GL_FLOAT, 1524b8e80941Smrg .RedBits = 16, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1525b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1526b8e80941Smrg .IsSRGBFormat = 0, 1527b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1528b8e80941Smrg .BytesPerBlock = 2, 1529b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 1530b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 4, 4, 5), 1531b8e80941Smrg }, 1532b8e80941Smrg { 1533b8e80941Smrg .Name = MESA_FORMAT_R_FLOAT32, 1534b8e80941Smrg .StrName = "MESA_FORMAT_R_FLOAT32", 1535b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1536b8e80941Smrg .BaseFormat = GL_RED, 1537b8e80941Smrg .DataType = GL_FLOAT, 1538b8e80941Smrg .RedBits = 32, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1539b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1540b8e80941Smrg .IsSRGBFormat = 0, 1541b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1542b8e80941Smrg .BytesPerBlock = 4, 1543b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 1544b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 4, 4, 5), 1545b8e80941Smrg }, 1546b8e80941Smrg { 1547b8e80941Smrg .Name = MESA_FORMAT_RG_FLOAT16, 1548b8e80941Smrg .StrName = "MESA_FORMAT_RG_FLOAT16", 1549b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1550b8e80941Smrg .BaseFormat = GL_RG, 1551b8e80941Smrg .DataType = GL_FLOAT, 1552b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 1553b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1554b8e80941Smrg .IsSRGBFormat = 0, 1555b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1556b8e80941Smrg .BytesPerBlock = 4, 1557b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 1558b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 2, 0, 1, 4, 5), 1559b8e80941Smrg }, 1560b8e80941Smrg { 1561b8e80941Smrg .Name = MESA_FORMAT_RG_FLOAT32, 1562b8e80941Smrg .StrName = "MESA_FORMAT_RG_FLOAT32", 1563b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1564b8e80941Smrg .BaseFormat = GL_RG, 1565b8e80941Smrg .DataType = GL_FLOAT, 1566b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 0, .AlphaBits = 0, 1567b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1568b8e80941Smrg .IsSRGBFormat = 0, 1569b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1570b8e80941Smrg .BytesPerBlock = 8, 1571b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 1572b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 2, 0, 1, 4, 5), 1573b8e80941Smrg }, 1574b8e80941Smrg { 1575b8e80941Smrg .Name = MESA_FORMAT_RGB_FLOAT16, 1576b8e80941Smrg .StrName = "MESA_FORMAT_RGB_FLOAT16", 1577b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1578b8e80941Smrg .BaseFormat = GL_RGB, 1579b8e80941Smrg .DataType = GL_FLOAT, 1580b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 1581b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1582b8e80941Smrg .IsSRGBFormat = 0, 1583b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1584b8e80941Smrg .BytesPerBlock = 6, 1585b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1586b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 3, 0, 1, 2, 5), 1587b8e80941Smrg }, 1588b8e80941Smrg { 1589b8e80941Smrg .Name = MESA_FORMAT_RGB_FLOAT32, 1590b8e80941Smrg .StrName = "MESA_FORMAT_RGB_FLOAT32", 1591b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1592b8e80941Smrg .BaseFormat = GL_RGB, 1593b8e80941Smrg .DataType = GL_FLOAT, 1594b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 1595b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1596b8e80941Smrg .IsSRGBFormat = 0, 1597b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1598b8e80941Smrg .BytesPerBlock = 12, 1599b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1600b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 3, 0, 1, 2, 5), 1601b8e80941Smrg }, 1602b8e80941Smrg { 1603b8e80941Smrg .Name = MESA_FORMAT_RGBA_FLOAT16, 1604b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_FLOAT16", 1605b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1606b8e80941Smrg .BaseFormat = GL_RGBA, 1607b8e80941Smrg .DataType = GL_FLOAT, 1608b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 1609b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1610b8e80941Smrg .IsSRGBFormat = 0, 1611b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1612b8e80941Smrg .BytesPerBlock = 8, 1613b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1614b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 4, 0, 1, 2, 3), 1615b8e80941Smrg }, 1616b8e80941Smrg { 1617b8e80941Smrg .Name = MESA_FORMAT_RGBA_FLOAT32, 1618b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_FLOAT32", 1619b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1620b8e80941Smrg .BaseFormat = GL_RGBA, 1621b8e80941Smrg .DataType = GL_FLOAT, 1622b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 32, 1623b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1624b8e80941Smrg .IsSRGBFormat = 0, 1625b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1626b8e80941Smrg .BytesPerBlock = 16, 1627b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1628b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 4, 0, 1, 2, 3), 1629b8e80941Smrg }, 1630b8e80941Smrg { 1631b8e80941Smrg .Name = MESA_FORMAT_RGBX_FLOAT16, 1632b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_FLOAT16", 1633b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1634b8e80941Smrg .BaseFormat = GL_RGB, 1635b8e80941Smrg .DataType = GL_FLOAT, 1636b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 1637b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1638b8e80941Smrg .IsSRGBFormat = 0, 1639b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1640b8e80941Smrg .BytesPerBlock = 8, 1641b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1642b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 1, 1, 4, 0, 1, 2, 5), 1643b8e80941Smrg }, 1644b8e80941Smrg { 1645b8e80941Smrg .Name = MESA_FORMAT_RGBX_FLOAT32, 1646b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_FLOAT32", 1647b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1648b8e80941Smrg .BaseFormat = GL_RGB, 1649b8e80941Smrg .DataType = GL_FLOAT, 1650b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 1651b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1652b8e80941Smrg .IsSRGBFormat = 0, 1653b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1654b8e80941Smrg .BytesPerBlock = 16, 1655b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1656b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 4, 0, 1, 2, 5), 1657b8e80941Smrg }, 1658b8e80941Smrg { 1659b8e80941Smrg .Name = MESA_FORMAT_Z_FLOAT32, 1660b8e80941Smrg .StrName = "MESA_FORMAT_Z_FLOAT32", 1661b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1662b8e80941Smrg .BaseFormat = GL_DEPTH_COMPONENT, 1663b8e80941Smrg .DataType = GL_FLOAT, 1664b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 1665b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 32, .StencilBits = 0, 1666b8e80941Smrg .IsSRGBFormat = 0, 1667b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1668b8e80941Smrg .BytesPerBlock = 4, 1669b8e80941Smrg .Swizzle = { 0, 6, 6, 6 }, 1670b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 6, 6, 6), 1671b8e80941Smrg }, 1672b8e80941Smrg { 1673b8e80941Smrg .Name = MESA_FORMAT_A8B8G8R8_UINT, 1674b8e80941Smrg .StrName = "MESA_FORMAT_A8B8G8R8_UINT", 1675b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1676b8e80941Smrg .BaseFormat = GL_RGBA, 1677b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1678b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1679b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1680b8e80941Smrg .IsSRGBFormat = 0, 1681b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1682b8e80941Smrg .BytesPerBlock = 4, 1683b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 1684b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 3, 2, 1, 0), 1685b8e80941Smrg }, 1686b8e80941Smrg { 1687b8e80941Smrg .Name = MESA_FORMAT_A8R8G8B8_UINT, 1688b8e80941Smrg .StrName = "MESA_FORMAT_A8R8G8B8_UINT", 1689b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1690b8e80941Smrg .BaseFormat = GL_RGBA, 1691b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1692b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1693b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1694b8e80941Smrg .IsSRGBFormat = 0, 1695b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1696b8e80941Smrg .BytesPerBlock = 4, 1697b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 1698b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 1, 2, 3, 0), 1699b8e80941Smrg }, 1700b8e80941Smrg { 1701b8e80941Smrg .Name = MESA_FORMAT_R8G8B8A8_UINT, 1702b8e80941Smrg .StrName = "MESA_FORMAT_R8G8B8A8_UINT", 1703b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1704b8e80941Smrg .BaseFormat = GL_RGBA, 1705b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1706b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1707b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1708b8e80941Smrg .IsSRGBFormat = 0, 1709b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1710b8e80941Smrg .BytesPerBlock = 4, 1711b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1712b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 3), 1713b8e80941Smrg }, 1714b8e80941Smrg { 1715b8e80941Smrg .Name = MESA_FORMAT_B8G8R8A8_UINT, 1716b8e80941Smrg .StrName = "MESA_FORMAT_B8G8R8A8_UINT", 1717b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1718b8e80941Smrg .BaseFormat = GL_RGBA, 1719b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1720b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 1721b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1722b8e80941Smrg .IsSRGBFormat = 0, 1723b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1724b8e80941Smrg .BytesPerBlock = 4, 1725b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 1726b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 2, 1, 0, 3), 1727b8e80941Smrg }, 1728b8e80941Smrg { 1729b8e80941Smrg .Name = MESA_FORMAT_B10G10R10A2_UINT, 1730b8e80941Smrg .StrName = "MESA_FORMAT_B10G10R10A2_UINT", 1731b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1732b8e80941Smrg .BaseFormat = GL_RGBA, 1733b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1734b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 1735b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1736b8e80941Smrg .IsSRGBFormat = 0, 1737b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1738b8e80941Smrg .BytesPerBlock = 4, 1739b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 1740b8e80941Smrg .ArrayFormat = 0, 1741b8e80941Smrg }, 1742b8e80941Smrg { 1743b8e80941Smrg .Name = MESA_FORMAT_R10G10B10A2_UINT, 1744b8e80941Smrg .StrName = "MESA_FORMAT_R10G10B10A2_UINT", 1745b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1746b8e80941Smrg .BaseFormat = GL_RGBA, 1747b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1748b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 1749b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1750b8e80941Smrg .IsSRGBFormat = 0, 1751b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1752b8e80941Smrg .BytesPerBlock = 4, 1753b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1754b8e80941Smrg .ArrayFormat = 0, 1755b8e80941Smrg }, 1756b8e80941Smrg { 1757b8e80941Smrg .Name = MESA_FORMAT_A2B10G10R10_UINT, 1758b8e80941Smrg .StrName = "MESA_FORMAT_A2B10G10R10_UINT", 1759b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1760b8e80941Smrg .BaseFormat = GL_RGBA, 1761b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1762b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 1763b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1764b8e80941Smrg .IsSRGBFormat = 0, 1765b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1766b8e80941Smrg .BytesPerBlock = 4, 1767b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 1768b8e80941Smrg .ArrayFormat = 0, 1769b8e80941Smrg }, 1770b8e80941Smrg { 1771b8e80941Smrg .Name = MESA_FORMAT_A2R10G10B10_UINT, 1772b8e80941Smrg .StrName = "MESA_FORMAT_A2R10G10B10_UINT", 1773b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1774b8e80941Smrg .BaseFormat = GL_RGBA, 1775b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1776b8e80941Smrg .RedBits = 10, .GreenBits = 10, .BlueBits = 10, .AlphaBits = 2, 1777b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1778b8e80941Smrg .IsSRGBFormat = 0, 1779b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1780b8e80941Smrg .BytesPerBlock = 4, 1781b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 1782b8e80941Smrg .ArrayFormat = 0, 1783b8e80941Smrg }, 1784b8e80941Smrg { 1785b8e80941Smrg .Name = MESA_FORMAT_B5G6R5_UINT, 1786b8e80941Smrg .StrName = "MESA_FORMAT_B5G6R5_UINT", 1787b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1788b8e80941Smrg .BaseFormat = GL_RGB, 1789b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1790b8e80941Smrg .RedBits = 5, .GreenBits = 6, .BlueBits = 5, .AlphaBits = 0, 1791b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1792b8e80941Smrg .IsSRGBFormat = 0, 1793b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1794b8e80941Smrg .BytesPerBlock = 2, 1795b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 1796b8e80941Smrg .ArrayFormat = 0, 1797b8e80941Smrg }, 1798b8e80941Smrg { 1799b8e80941Smrg .Name = MESA_FORMAT_R5G6B5_UINT, 1800b8e80941Smrg .StrName = "MESA_FORMAT_R5G6B5_UINT", 1801b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1802b8e80941Smrg .BaseFormat = GL_RGB, 1803b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1804b8e80941Smrg .RedBits = 5, .GreenBits = 6, .BlueBits = 5, .AlphaBits = 0, 1805b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1806b8e80941Smrg .IsSRGBFormat = 0, 1807b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1808b8e80941Smrg .BytesPerBlock = 2, 1809b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1810b8e80941Smrg .ArrayFormat = 0, 1811b8e80941Smrg }, 1812b8e80941Smrg { 1813b8e80941Smrg .Name = MESA_FORMAT_B2G3R3_UINT, 1814b8e80941Smrg .StrName = "MESA_FORMAT_B2G3R3_UINT", 1815b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1816b8e80941Smrg .BaseFormat = GL_RGB, 1817b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1818b8e80941Smrg .RedBits = 3, .GreenBits = 3, .BlueBits = 2, .AlphaBits = 0, 1819b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1820b8e80941Smrg .IsSRGBFormat = 0, 1821b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1822b8e80941Smrg .BytesPerBlock = 1, 1823b8e80941Smrg .Swizzle = { 2, 1, 0, 5 }, 1824b8e80941Smrg .ArrayFormat = 0, 1825b8e80941Smrg }, 1826b8e80941Smrg { 1827b8e80941Smrg .Name = MESA_FORMAT_R3G3B2_UINT, 1828b8e80941Smrg .StrName = "MESA_FORMAT_R3G3B2_UINT", 1829b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1830b8e80941Smrg .BaseFormat = GL_RGB, 1831b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1832b8e80941Smrg .RedBits = 3, .GreenBits = 3, .BlueBits = 2, .AlphaBits = 0, 1833b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1834b8e80941Smrg .IsSRGBFormat = 0, 1835b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1836b8e80941Smrg .BytesPerBlock = 1, 1837b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 1838b8e80941Smrg .ArrayFormat = 0, 1839b8e80941Smrg }, 1840b8e80941Smrg { 1841b8e80941Smrg .Name = MESA_FORMAT_A4B4G4R4_UINT, 1842b8e80941Smrg .StrName = "MESA_FORMAT_A4B4G4R4_UINT", 1843b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1844b8e80941Smrg .BaseFormat = GL_RGBA, 1845b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1846b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 1847b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1848b8e80941Smrg .IsSRGBFormat = 0, 1849b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1850b8e80941Smrg .BytesPerBlock = 2, 1851b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 1852b8e80941Smrg .ArrayFormat = 0, 1853b8e80941Smrg }, 1854b8e80941Smrg { 1855b8e80941Smrg .Name = MESA_FORMAT_R4G4B4A4_UINT, 1856b8e80941Smrg .StrName = "MESA_FORMAT_R4G4B4A4_UINT", 1857b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1858b8e80941Smrg .BaseFormat = GL_RGBA, 1859b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1860b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 1861b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1862b8e80941Smrg .IsSRGBFormat = 0, 1863b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1864b8e80941Smrg .BytesPerBlock = 2, 1865b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1866b8e80941Smrg .ArrayFormat = 0, 1867b8e80941Smrg }, 1868b8e80941Smrg { 1869b8e80941Smrg .Name = MESA_FORMAT_B4G4R4A4_UINT, 1870b8e80941Smrg .StrName = "MESA_FORMAT_B4G4R4A4_UINT", 1871b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1872b8e80941Smrg .BaseFormat = GL_RGBA, 1873b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1874b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 1875b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1876b8e80941Smrg .IsSRGBFormat = 0, 1877b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1878b8e80941Smrg .BytesPerBlock = 2, 1879b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 1880b8e80941Smrg .ArrayFormat = 0, 1881b8e80941Smrg }, 1882b8e80941Smrg { 1883b8e80941Smrg .Name = MESA_FORMAT_A4R4G4B4_UINT, 1884b8e80941Smrg .StrName = "MESA_FORMAT_A4R4G4B4_UINT", 1885b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1886b8e80941Smrg .BaseFormat = GL_RGBA, 1887b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1888b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 1889b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1890b8e80941Smrg .IsSRGBFormat = 0, 1891b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1892b8e80941Smrg .BytesPerBlock = 2, 1893b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 1894b8e80941Smrg .ArrayFormat = 0, 1895b8e80941Smrg }, 1896b8e80941Smrg { 1897b8e80941Smrg .Name = MESA_FORMAT_A1B5G5R5_UINT, 1898b8e80941Smrg .StrName = "MESA_FORMAT_A1B5G5R5_UINT", 1899b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1900b8e80941Smrg .BaseFormat = GL_RGBA, 1901b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1902b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 1903b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1904b8e80941Smrg .IsSRGBFormat = 0, 1905b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1906b8e80941Smrg .BytesPerBlock = 2, 1907b8e80941Smrg .Swizzle = { 3, 2, 1, 0 }, 1908b8e80941Smrg .ArrayFormat = 0, 1909b8e80941Smrg }, 1910b8e80941Smrg { 1911b8e80941Smrg .Name = MESA_FORMAT_B5G5R5A1_UINT, 1912b8e80941Smrg .StrName = "MESA_FORMAT_B5G5R5A1_UINT", 1913b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1914b8e80941Smrg .BaseFormat = GL_RGBA, 1915b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1916b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 1917b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1918b8e80941Smrg .IsSRGBFormat = 0, 1919b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1920b8e80941Smrg .BytesPerBlock = 2, 1921b8e80941Smrg .Swizzle = { 2, 1, 0, 3 }, 1922b8e80941Smrg .ArrayFormat = 0, 1923b8e80941Smrg }, 1924b8e80941Smrg { 1925b8e80941Smrg .Name = MESA_FORMAT_A1R5G5B5_UINT, 1926b8e80941Smrg .StrName = "MESA_FORMAT_A1R5G5B5_UINT", 1927b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1928b8e80941Smrg .BaseFormat = GL_RGBA, 1929b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1930b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 1931b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1932b8e80941Smrg .IsSRGBFormat = 0, 1933b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1934b8e80941Smrg .BytesPerBlock = 2, 1935b8e80941Smrg .Swizzle = { 1, 2, 3, 0 }, 1936b8e80941Smrg .ArrayFormat = 0, 1937b8e80941Smrg }, 1938b8e80941Smrg { 1939b8e80941Smrg .Name = MESA_FORMAT_R5G5B5A1_UINT, 1940b8e80941Smrg .StrName = "MESA_FORMAT_R5G5B5A1_UINT", 1941b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_PACKED, 1942b8e80941Smrg .BaseFormat = GL_RGBA, 1943b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1944b8e80941Smrg .RedBits = 5, .GreenBits = 5, .BlueBits = 5, .AlphaBits = 1, 1945b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1946b8e80941Smrg .IsSRGBFormat = 0, 1947b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1948b8e80941Smrg .BytesPerBlock = 2, 1949b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 1950b8e80941Smrg .ArrayFormat = 0, 1951b8e80941Smrg }, 1952b8e80941Smrg { 1953b8e80941Smrg .Name = MESA_FORMAT_A_UINT8, 1954b8e80941Smrg .StrName = "MESA_FORMAT_A_UINT8", 1955b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1956b8e80941Smrg .BaseFormat = GL_ALPHA, 1957b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1958b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 1959b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1960b8e80941Smrg .IsSRGBFormat = 0, 1961b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1962b8e80941Smrg .BytesPerBlock = 1, 1963b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1964b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 4, 4, 4, 0), 1965b8e80941Smrg }, 1966b8e80941Smrg { 1967b8e80941Smrg .Name = MESA_FORMAT_A_UINT16, 1968b8e80941Smrg .StrName = "MESA_FORMAT_A_UINT16", 1969b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1970b8e80941Smrg .BaseFormat = GL_ALPHA, 1971b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1972b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 1973b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1974b8e80941Smrg .IsSRGBFormat = 0, 1975b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1976b8e80941Smrg .BytesPerBlock = 2, 1977b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1978b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 4, 4, 4, 0), 1979b8e80941Smrg }, 1980b8e80941Smrg { 1981b8e80941Smrg .Name = MESA_FORMAT_A_UINT32, 1982b8e80941Smrg .StrName = "MESA_FORMAT_A_UINT32", 1983b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1984b8e80941Smrg .BaseFormat = GL_ALPHA, 1985b8e80941Smrg .DataType = GL_UNSIGNED_INT, 1986b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 1987b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 1988b8e80941Smrg .IsSRGBFormat = 0, 1989b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 1990b8e80941Smrg .BytesPerBlock = 4, 1991b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 1992b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 4, 4, 4, 0), 1993b8e80941Smrg }, 1994b8e80941Smrg { 1995b8e80941Smrg .Name = MESA_FORMAT_A_SINT8, 1996b8e80941Smrg .StrName = "MESA_FORMAT_A_SINT8", 1997b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 1998b8e80941Smrg .BaseFormat = GL_ALPHA, 1999b8e80941Smrg .DataType = GL_INT, 2000b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 2001b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2002b8e80941Smrg .IsSRGBFormat = 0, 2003b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2004b8e80941Smrg .BytesPerBlock = 1, 2005b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 2006b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 4, 4, 4, 0), 2007b8e80941Smrg }, 2008b8e80941Smrg { 2009b8e80941Smrg .Name = MESA_FORMAT_A_SINT16, 2010b8e80941Smrg .StrName = "MESA_FORMAT_A_SINT16", 2011b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2012b8e80941Smrg .BaseFormat = GL_ALPHA, 2013b8e80941Smrg .DataType = GL_INT, 2014b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 2015b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2016b8e80941Smrg .IsSRGBFormat = 0, 2017b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2018b8e80941Smrg .BytesPerBlock = 2, 2019b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 2020b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 4, 4, 4, 0), 2021b8e80941Smrg }, 2022b8e80941Smrg { 2023b8e80941Smrg .Name = MESA_FORMAT_A_SINT32, 2024b8e80941Smrg .StrName = "MESA_FORMAT_A_SINT32", 2025b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2026b8e80941Smrg .BaseFormat = GL_ALPHA, 2027b8e80941Smrg .DataType = GL_INT, 2028b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 2029b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2030b8e80941Smrg .IsSRGBFormat = 0, 2031b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2032b8e80941Smrg .BytesPerBlock = 4, 2033b8e80941Smrg .Swizzle = { 4, 4, 4, 0 }, 2034b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 4, 4, 4, 0), 2035b8e80941Smrg }, 2036b8e80941Smrg { 2037b8e80941Smrg .Name = MESA_FORMAT_I_UINT8, 2038b8e80941Smrg .StrName = "MESA_FORMAT_I_UINT8", 2039b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2040b8e80941Smrg .BaseFormat = GL_INTENSITY, 2041b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2042b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2043b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 8, .DepthBits = 0, .StencilBits = 0, 2044b8e80941Smrg .IsSRGBFormat = 0, 2045b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2046b8e80941Smrg .BytesPerBlock = 1, 2047b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2048b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 0, 0, 0), 2049b8e80941Smrg }, 2050b8e80941Smrg { 2051b8e80941Smrg .Name = MESA_FORMAT_I_UINT16, 2052b8e80941Smrg .StrName = "MESA_FORMAT_I_UINT16", 2053b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2054b8e80941Smrg .BaseFormat = GL_INTENSITY, 2055b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2056b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2057b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 16, .DepthBits = 0, .StencilBits = 0, 2058b8e80941Smrg .IsSRGBFormat = 0, 2059b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2060b8e80941Smrg .BytesPerBlock = 2, 2061b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2062b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 0, 0, 0), 2063b8e80941Smrg }, 2064b8e80941Smrg { 2065b8e80941Smrg .Name = MESA_FORMAT_I_UINT32, 2066b8e80941Smrg .StrName = "MESA_FORMAT_I_UINT32", 2067b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2068b8e80941Smrg .BaseFormat = GL_INTENSITY, 2069b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2070b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2071b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 32, .DepthBits = 0, .StencilBits = 0, 2072b8e80941Smrg .IsSRGBFormat = 0, 2073b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2074b8e80941Smrg .BytesPerBlock = 4, 2075b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2076b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 0, 0, 0), 2077b8e80941Smrg }, 2078b8e80941Smrg { 2079b8e80941Smrg .Name = MESA_FORMAT_I_SINT8, 2080b8e80941Smrg .StrName = "MESA_FORMAT_I_SINT8", 2081b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2082b8e80941Smrg .BaseFormat = GL_INTENSITY, 2083b8e80941Smrg .DataType = GL_INT, 2084b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2085b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 8, .DepthBits = 0, .StencilBits = 0, 2086b8e80941Smrg .IsSRGBFormat = 0, 2087b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2088b8e80941Smrg .BytesPerBlock = 1, 2089b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2090b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 0, 0, 0), 2091b8e80941Smrg }, 2092b8e80941Smrg { 2093b8e80941Smrg .Name = MESA_FORMAT_I_SINT16, 2094b8e80941Smrg .StrName = "MESA_FORMAT_I_SINT16", 2095b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2096b8e80941Smrg .BaseFormat = GL_INTENSITY, 2097b8e80941Smrg .DataType = GL_INT, 2098b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2099b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 16, .DepthBits = 0, .StencilBits = 0, 2100b8e80941Smrg .IsSRGBFormat = 0, 2101b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2102b8e80941Smrg .BytesPerBlock = 2, 2103b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2104b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 0, 0, 0), 2105b8e80941Smrg }, 2106b8e80941Smrg { 2107b8e80941Smrg .Name = MESA_FORMAT_I_SINT32, 2108b8e80941Smrg .StrName = "MESA_FORMAT_I_SINT32", 2109b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2110b8e80941Smrg .BaseFormat = GL_INTENSITY, 2111b8e80941Smrg .DataType = GL_INT, 2112b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2113b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 32, .DepthBits = 0, .StencilBits = 0, 2114b8e80941Smrg .IsSRGBFormat = 0, 2115b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2116b8e80941Smrg .BytesPerBlock = 4, 2117b8e80941Smrg .Swizzle = { 0, 0, 0, 0 }, 2118b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 0, 0, 0), 2119b8e80941Smrg }, 2120b8e80941Smrg { 2121b8e80941Smrg .Name = MESA_FORMAT_L_UINT8, 2122b8e80941Smrg .StrName = "MESA_FORMAT_L_UINT8", 2123b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2124b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2125b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2126b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2127b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2128b8e80941Smrg .IsSRGBFormat = 0, 2129b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2130b8e80941Smrg .BytesPerBlock = 1, 2131b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2132b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 0, 0, 5), 2133b8e80941Smrg }, 2134b8e80941Smrg { 2135b8e80941Smrg .Name = MESA_FORMAT_L_UINT16, 2136b8e80941Smrg .StrName = "MESA_FORMAT_L_UINT16", 2137b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2138b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2139b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2140b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2141b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2142b8e80941Smrg .IsSRGBFormat = 0, 2143b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2144b8e80941Smrg .BytesPerBlock = 2, 2145b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2146b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 0, 0, 5), 2147b8e80941Smrg }, 2148b8e80941Smrg { 2149b8e80941Smrg .Name = MESA_FORMAT_L_UINT32, 2150b8e80941Smrg .StrName = "MESA_FORMAT_L_UINT32", 2151b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2152b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2153b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2154b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2155b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2156b8e80941Smrg .IsSRGBFormat = 0, 2157b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2158b8e80941Smrg .BytesPerBlock = 4, 2159b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2160b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 0, 0, 5), 2161b8e80941Smrg }, 2162b8e80941Smrg { 2163b8e80941Smrg .Name = MESA_FORMAT_L_SINT8, 2164b8e80941Smrg .StrName = "MESA_FORMAT_L_SINT8", 2165b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2166b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2167b8e80941Smrg .DataType = GL_INT, 2168b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2169b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2170b8e80941Smrg .IsSRGBFormat = 0, 2171b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2172b8e80941Smrg .BytesPerBlock = 1, 2173b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2174b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 0, 0, 5), 2175b8e80941Smrg }, 2176b8e80941Smrg { 2177b8e80941Smrg .Name = MESA_FORMAT_L_SINT16, 2178b8e80941Smrg .StrName = "MESA_FORMAT_L_SINT16", 2179b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2180b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2181b8e80941Smrg .DataType = GL_INT, 2182b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2183b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2184b8e80941Smrg .IsSRGBFormat = 0, 2185b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2186b8e80941Smrg .BytesPerBlock = 2, 2187b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2188b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 0, 0, 5), 2189b8e80941Smrg }, 2190b8e80941Smrg { 2191b8e80941Smrg .Name = MESA_FORMAT_L_SINT32, 2192b8e80941Smrg .StrName = "MESA_FORMAT_L_SINT32", 2193b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2194b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2195b8e80941Smrg .DataType = GL_INT, 2196b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2197b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2198b8e80941Smrg .IsSRGBFormat = 0, 2199b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2200b8e80941Smrg .BytesPerBlock = 4, 2201b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2202b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 0, 0, 5), 2203b8e80941Smrg }, 2204b8e80941Smrg { 2205b8e80941Smrg .Name = MESA_FORMAT_LA_UINT8, 2206b8e80941Smrg .StrName = "MESA_FORMAT_LA_UINT8", 2207b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2208b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2209b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2210b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 2211b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2212b8e80941Smrg .IsSRGBFormat = 0, 2213b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2214b8e80941Smrg .BytesPerBlock = 2, 2215b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2216b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 2, 0, 0, 0, 1), 2217b8e80941Smrg }, 2218b8e80941Smrg { 2219b8e80941Smrg .Name = MESA_FORMAT_LA_UINT16, 2220b8e80941Smrg .StrName = "MESA_FORMAT_LA_UINT16", 2221b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2222b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2223b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2224b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 2225b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2226b8e80941Smrg .IsSRGBFormat = 0, 2227b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2228b8e80941Smrg .BytesPerBlock = 4, 2229b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2230b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 2, 0, 0, 0, 1), 2231b8e80941Smrg }, 2232b8e80941Smrg { 2233b8e80941Smrg .Name = MESA_FORMAT_LA_UINT32, 2234b8e80941Smrg .StrName = "MESA_FORMAT_LA_UINT32", 2235b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2236b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2237b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2238b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 2239b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2240b8e80941Smrg .IsSRGBFormat = 0, 2241b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2242b8e80941Smrg .BytesPerBlock = 8, 2243b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2244b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 2, 0, 0, 0, 1), 2245b8e80941Smrg }, 2246b8e80941Smrg { 2247b8e80941Smrg .Name = MESA_FORMAT_LA_SINT8, 2248b8e80941Smrg .StrName = "MESA_FORMAT_LA_SINT8", 2249b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2250b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2251b8e80941Smrg .DataType = GL_INT, 2252b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 2253b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2254b8e80941Smrg .IsSRGBFormat = 0, 2255b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2256b8e80941Smrg .BytesPerBlock = 2, 2257b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2258b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 2, 0, 0, 0, 1), 2259b8e80941Smrg }, 2260b8e80941Smrg { 2261b8e80941Smrg .Name = MESA_FORMAT_LA_SINT16, 2262b8e80941Smrg .StrName = "MESA_FORMAT_LA_SINT16", 2263b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2264b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2265b8e80941Smrg .DataType = GL_INT, 2266b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 16, 2267b8e80941Smrg .LuminanceBits = 16, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2268b8e80941Smrg .IsSRGBFormat = 0, 2269b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2270b8e80941Smrg .BytesPerBlock = 4, 2271b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2272b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 2, 0, 0, 0, 1), 2273b8e80941Smrg }, 2274b8e80941Smrg { 2275b8e80941Smrg .Name = MESA_FORMAT_LA_SINT32, 2276b8e80941Smrg .StrName = "MESA_FORMAT_LA_SINT32", 2277b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2278b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2279b8e80941Smrg .DataType = GL_INT, 2280b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 32, 2281b8e80941Smrg .LuminanceBits = 32, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2282b8e80941Smrg .IsSRGBFormat = 0, 2283b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2284b8e80941Smrg .BytesPerBlock = 8, 2285b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2286b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 2, 0, 0, 0, 1), 2287b8e80941Smrg }, 2288b8e80941Smrg { 2289b8e80941Smrg .Name = MESA_FORMAT_R_UINT8, 2290b8e80941Smrg .StrName = "MESA_FORMAT_R_UINT8", 2291b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2292b8e80941Smrg .BaseFormat = GL_RED, 2293b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2294b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2295b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2296b8e80941Smrg .IsSRGBFormat = 0, 2297b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2298b8e80941Smrg .BytesPerBlock = 1, 2299b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2300b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 4, 4, 5), 2301b8e80941Smrg }, 2302b8e80941Smrg { 2303b8e80941Smrg .Name = MESA_FORMAT_R_UINT16, 2304b8e80941Smrg .StrName = "MESA_FORMAT_R_UINT16", 2305b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2306b8e80941Smrg .BaseFormat = GL_RED, 2307b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2308b8e80941Smrg .RedBits = 16, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2309b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2310b8e80941Smrg .IsSRGBFormat = 0, 2311b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2312b8e80941Smrg .BytesPerBlock = 2, 2313b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2314b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 4, 4, 5), 2315b8e80941Smrg }, 2316b8e80941Smrg { 2317b8e80941Smrg .Name = MESA_FORMAT_R_UINT32, 2318b8e80941Smrg .StrName = "MESA_FORMAT_R_UINT32", 2319b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2320b8e80941Smrg .BaseFormat = GL_RED, 2321b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2322b8e80941Smrg .RedBits = 32, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2323b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2324b8e80941Smrg .IsSRGBFormat = 0, 2325b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2326b8e80941Smrg .BytesPerBlock = 4, 2327b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2328b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 4, 4, 5), 2329b8e80941Smrg }, 2330b8e80941Smrg { 2331b8e80941Smrg .Name = MESA_FORMAT_R_SINT8, 2332b8e80941Smrg .StrName = "MESA_FORMAT_R_SINT8", 2333b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2334b8e80941Smrg .BaseFormat = GL_RED, 2335b8e80941Smrg .DataType = GL_INT, 2336b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2337b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2338b8e80941Smrg .IsSRGBFormat = 0, 2339b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2340b8e80941Smrg .BytesPerBlock = 1, 2341b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2342b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 4, 4, 5), 2343b8e80941Smrg }, 2344b8e80941Smrg { 2345b8e80941Smrg .Name = MESA_FORMAT_R_SINT16, 2346b8e80941Smrg .StrName = "MESA_FORMAT_R_SINT16", 2347b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2348b8e80941Smrg .BaseFormat = GL_RED, 2349b8e80941Smrg .DataType = GL_INT, 2350b8e80941Smrg .RedBits = 16, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2351b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2352b8e80941Smrg .IsSRGBFormat = 0, 2353b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2354b8e80941Smrg .BytesPerBlock = 2, 2355b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2356b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 4, 4, 5), 2357b8e80941Smrg }, 2358b8e80941Smrg { 2359b8e80941Smrg .Name = MESA_FORMAT_R_SINT32, 2360b8e80941Smrg .StrName = "MESA_FORMAT_R_SINT32", 2361b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2362b8e80941Smrg .BaseFormat = GL_RED, 2363b8e80941Smrg .DataType = GL_INT, 2364b8e80941Smrg .RedBits = 32, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2365b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2366b8e80941Smrg .IsSRGBFormat = 0, 2367b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2368b8e80941Smrg .BytesPerBlock = 4, 2369b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2370b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 4, 4, 5), 2371b8e80941Smrg }, 2372b8e80941Smrg { 2373b8e80941Smrg .Name = MESA_FORMAT_RG_UINT8, 2374b8e80941Smrg .StrName = "MESA_FORMAT_RG_UINT8", 2375b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2376b8e80941Smrg .BaseFormat = GL_RG, 2377b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2378b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 2379b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2380b8e80941Smrg .IsSRGBFormat = 0, 2381b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2382b8e80941Smrg .BytesPerBlock = 2, 2383b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2384b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 2, 0, 1, 4, 5), 2385b8e80941Smrg }, 2386b8e80941Smrg { 2387b8e80941Smrg .Name = MESA_FORMAT_RG_UINT16, 2388b8e80941Smrg .StrName = "MESA_FORMAT_RG_UINT16", 2389b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2390b8e80941Smrg .BaseFormat = GL_RG, 2391b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2392b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 2393b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2394b8e80941Smrg .IsSRGBFormat = 0, 2395b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2396b8e80941Smrg .BytesPerBlock = 4, 2397b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2398b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 2, 0, 1, 4, 5), 2399b8e80941Smrg }, 2400b8e80941Smrg { 2401b8e80941Smrg .Name = MESA_FORMAT_RG_UINT32, 2402b8e80941Smrg .StrName = "MESA_FORMAT_RG_UINT32", 2403b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2404b8e80941Smrg .BaseFormat = GL_RG, 2405b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2406b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 0, .AlphaBits = 0, 2407b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2408b8e80941Smrg .IsSRGBFormat = 0, 2409b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2410b8e80941Smrg .BytesPerBlock = 8, 2411b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2412b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 2, 0, 1, 4, 5), 2413b8e80941Smrg }, 2414b8e80941Smrg { 2415b8e80941Smrg .Name = MESA_FORMAT_RG_SINT8, 2416b8e80941Smrg .StrName = "MESA_FORMAT_RG_SINT8", 2417b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2418b8e80941Smrg .BaseFormat = GL_RG, 2419b8e80941Smrg .DataType = GL_INT, 2420b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 2421b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2422b8e80941Smrg .IsSRGBFormat = 0, 2423b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2424b8e80941Smrg .BytesPerBlock = 2, 2425b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2426b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 2, 0, 1, 4, 5), 2427b8e80941Smrg }, 2428b8e80941Smrg { 2429b8e80941Smrg .Name = MESA_FORMAT_RG_SINT16, 2430b8e80941Smrg .StrName = "MESA_FORMAT_RG_SINT16", 2431b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2432b8e80941Smrg .BaseFormat = GL_RG, 2433b8e80941Smrg .DataType = GL_INT, 2434b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 0, .AlphaBits = 0, 2435b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2436b8e80941Smrg .IsSRGBFormat = 0, 2437b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2438b8e80941Smrg .BytesPerBlock = 4, 2439b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2440b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 2, 0, 1, 4, 5), 2441b8e80941Smrg }, 2442b8e80941Smrg { 2443b8e80941Smrg .Name = MESA_FORMAT_RG_SINT32, 2444b8e80941Smrg .StrName = "MESA_FORMAT_RG_SINT32", 2445b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2446b8e80941Smrg .BaseFormat = GL_RG, 2447b8e80941Smrg .DataType = GL_INT, 2448b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 0, .AlphaBits = 0, 2449b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2450b8e80941Smrg .IsSRGBFormat = 0, 2451b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2452b8e80941Smrg .BytesPerBlock = 8, 2453b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2454b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 2, 0, 1, 4, 5), 2455b8e80941Smrg }, 2456b8e80941Smrg { 2457b8e80941Smrg .Name = MESA_FORMAT_RGB_UINT8, 2458b8e80941Smrg .StrName = "MESA_FORMAT_RGB_UINT8", 2459b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2460b8e80941Smrg .BaseFormat = GL_RGB, 2461b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2462b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2463b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2464b8e80941Smrg .IsSRGBFormat = 0, 2465b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2466b8e80941Smrg .BytesPerBlock = 3, 2467b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2468b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 3, 0, 1, 2, 5), 2469b8e80941Smrg }, 2470b8e80941Smrg { 2471b8e80941Smrg .Name = MESA_FORMAT_RGB_UINT16, 2472b8e80941Smrg .StrName = "MESA_FORMAT_RGB_UINT16", 2473b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2474b8e80941Smrg .BaseFormat = GL_RGB, 2475b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2476b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 2477b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2478b8e80941Smrg .IsSRGBFormat = 0, 2479b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2480b8e80941Smrg .BytesPerBlock = 6, 2481b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2482b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 3, 0, 1, 2, 5), 2483b8e80941Smrg }, 2484b8e80941Smrg { 2485b8e80941Smrg .Name = MESA_FORMAT_RGB_UINT32, 2486b8e80941Smrg .StrName = "MESA_FORMAT_RGB_UINT32", 2487b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2488b8e80941Smrg .BaseFormat = GL_RGB, 2489b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2490b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 2491b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2492b8e80941Smrg .IsSRGBFormat = 0, 2493b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2494b8e80941Smrg .BytesPerBlock = 12, 2495b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2496b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 3, 0, 1, 2, 5), 2497b8e80941Smrg }, 2498b8e80941Smrg { 2499b8e80941Smrg .Name = MESA_FORMAT_RGB_SINT8, 2500b8e80941Smrg .StrName = "MESA_FORMAT_RGB_SINT8", 2501b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2502b8e80941Smrg .BaseFormat = GL_RGB, 2503b8e80941Smrg .DataType = GL_INT, 2504b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2505b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2506b8e80941Smrg .IsSRGBFormat = 0, 2507b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2508b8e80941Smrg .BytesPerBlock = 3, 2509b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2510b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 3, 0, 1, 2, 5), 2511b8e80941Smrg }, 2512b8e80941Smrg { 2513b8e80941Smrg .Name = MESA_FORMAT_RGB_SINT16, 2514b8e80941Smrg .StrName = "MESA_FORMAT_RGB_SINT16", 2515b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2516b8e80941Smrg .BaseFormat = GL_RGB, 2517b8e80941Smrg .DataType = GL_INT, 2518b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 2519b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2520b8e80941Smrg .IsSRGBFormat = 0, 2521b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2522b8e80941Smrg .BytesPerBlock = 6, 2523b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2524b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 3, 0, 1, 2, 5), 2525b8e80941Smrg }, 2526b8e80941Smrg { 2527b8e80941Smrg .Name = MESA_FORMAT_RGB_SINT32, 2528b8e80941Smrg .StrName = "MESA_FORMAT_RGB_SINT32", 2529b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2530b8e80941Smrg .BaseFormat = GL_RGB, 2531b8e80941Smrg .DataType = GL_INT, 2532b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 2533b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2534b8e80941Smrg .IsSRGBFormat = 0, 2535b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2536b8e80941Smrg .BytesPerBlock = 12, 2537b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2538b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 3, 0, 1, 2, 5), 2539b8e80941Smrg }, 2540b8e80941Smrg { 2541b8e80941Smrg .Name = MESA_FORMAT_RGBA_UINT8, 2542b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_UINT8", 2543b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2544b8e80941Smrg .BaseFormat = GL_RGBA, 2545b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2546b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 2547b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2548b8e80941Smrg .IsSRGBFormat = 0, 2549b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2550b8e80941Smrg .BytesPerBlock = 4, 2551b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2552b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 3), 2553b8e80941Smrg }, 2554b8e80941Smrg { 2555b8e80941Smrg .Name = MESA_FORMAT_RGBA_UINT16, 2556b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_UINT16", 2557b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2558b8e80941Smrg .BaseFormat = GL_RGBA, 2559b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2560b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 2561b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2562b8e80941Smrg .IsSRGBFormat = 0, 2563b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2564b8e80941Smrg .BytesPerBlock = 8, 2565b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2566b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 4, 0, 1, 2, 3), 2567b8e80941Smrg }, 2568b8e80941Smrg { 2569b8e80941Smrg .Name = MESA_FORMAT_RGBA_UINT32, 2570b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_UINT32", 2571b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2572b8e80941Smrg .BaseFormat = GL_RGBA, 2573b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2574b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 32, 2575b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2576b8e80941Smrg .IsSRGBFormat = 0, 2577b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2578b8e80941Smrg .BytesPerBlock = 16, 2579b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2580b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 4, 0, 1, 2, 3), 2581b8e80941Smrg }, 2582b8e80941Smrg { 2583b8e80941Smrg .Name = MESA_FORMAT_RGBA_SINT8, 2584b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_SINT8", 2585b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2586b8e80941Smrg .BaseFormat = GL_RGBA, 2587b8e80941Smrg .DataType = GL_INT, 2588b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 2589b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2590b8e80941Smrg .IsSRGBFormat = 0, 2591b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2592b8e80941Smrg .BytesPerBlock = 4, 2593b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2594b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 4, 0, 1, 2, 3), 2595b8e80941Smrg }, 2596b8e80941Smrg { 2597b8e80941Smrg .Name = MESA_FORMAT_RGBA_SINT16, 2598b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_SINT16", 2599b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2600b8e80941Smrg .BaseFormat = GL_RGBA, 2601b8e80941Smrg .DataType = GL_INT, 2602b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 2603b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2604b8e80941Smrg .IsSRGBFormat = 0, 2605b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2606b8e80941Smrg .BytesPerBlock = 8, 2607b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2608b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 4, 0, 1, 2, 3), 2609b8e80941Smrg }, 2610b8e80941Smrg { 2611b8e80941Smrg .Name = MESA_FORMAT_RGBA_SINT32, 2612b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_SINT32", 2613b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2614b8e80941Smrg .BaseFormat = GL_RGBA, 2615b8e80941Smrg .DataType = GL_INT, 2616b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 32, 2617b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2618b8e80941Smrg .IsSRGBFormat = 0, 2619b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2620b8e80941Smrg .BytesPerBlock = 16, 2621b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2622b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 4, 0, 1, 2, 3), 2623b8e80941Smrg }, 2624b8e80941Smrg { 2625b8e80941Smrg .Name = MESA_FORMAT_RGBX_UINT8, 2626b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_UINT8", 2627b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2628b8e80941Smrg .BaseFormat = GL_RGB, 2629b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2630b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2631b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2632b8e80941Smrg .IsSRGBFormat = 0, 2633b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2634b8e80941Smrg .BytesPerBlock = 4, 2635b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2636b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 5), 2637b8e80941Smrg }, 2638b8e80941Smrg { 2639b8e80941Smrg .Name = MESA_FORMAT_RGBX_UINT16, 2640b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_UINT16", 2641b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2642b8e80941Smrg .BaseFormat = GL_RGB, 2643b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2644b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 2645b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2646b8e80941Smrg .IsSRGBFormat = 0, 2647b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2648b8e80941Smrg .BytesPerBlock = 8, 2649b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2650b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 0, 0, 0, 4, 0, 1, 2, 5), 2651b8e80941Smrg }, 2652b8e80941Smrg { 2653b8e80941Smrg .Name = MESA_FORMAT_RGBX_UINT32, 2654b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_UINT32", 2655b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2656b8e80941Smrg .BaseFormat = GL_RGB, 2657b8e80941Smrg .DataType = GL_UNSIGNED_INT, 2658b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 2659b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2660b8e80941Smrg .IsSRGBFormat = 0, 2661b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2662b8e80941Smrg .BytesPerBlock = 16, 2663b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2664b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 0, 0, 0, 4, 0, 1, 2, 5), 2665b8e80941Smrg }, 2666b8e80941Smrg { 2667b8e80941Smrg .Name = MESA_FORMAT_RGBX_SINT8, 2668b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_SINT8", 2669b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2670b8e80941Smrg .BaseFormat = GL_RGB, 2671b8e80941Smrg .DataType = GL_INT, 2672b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2673b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2674b8e80941Smrg .IsSRGBFormat = 0, 2675b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2676b8e80941Smrg .BytesPerBlock = 4, 2677b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2678b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(1, 1, 0, 0, 4, 0, 1, 2, 5), 2679b8e80941Smrg }, 2680b8e80941Smrg { 2681b8e80941Smrg .Name = MESA_FORMAT_RGBX_SINT16, 2682b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_SINT16", 2683b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2684b8e80941Smrg .BaseFormat = GL_RGB, 2685b8e80941Smrg .DataType = GL_INT, 2686b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 2687b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2688b8e80941Smrg .IsSRGBFormat = 0, 2689b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2690b8e80941Smrg .BytesPerBlock = 8, 2691b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2692b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(2, 1, 0, 0, 4, 0, 1, 2, 5), 2693b8e80941Smrg }, 2694b8e80941Smrg { 2695b8e80941Smrg .Name = MESA_FORMAT_RGBX_SINT32, 2696b8e80941Smrg .StrName = "MESA_FORMAT_RGBX_SINT32", 2697b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ARRAY, 2698b8e80941Smrg .BaseFormat = GL_RGB, 2699b8e80941Smrg .DataType = GL_INT, 2700b8e80941Smrg .RedBits = 32, .GreenBits = 32, .BlueBits = 32, .AlphaBits = 0, 2701b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2702b8e80941Smrg .IsSRGBFormat = 0, 2703b8e80941Smrg .BlockWidth = 1, .BlockHeight = 1, .BlockDepth = 1, 2704b8e80941Smrg .BytesPerBlock = 16, 2705b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2706b8e80941Smrg .ArrayFormat = MESA_ARRAY_FORMAT(4, 1, 0, 0, 4, 0, 1, 2, 5), 2707b8e80941Smrg }, 2708b8e80941Smrg { 2709b8e80941Smrg .Name = MESA_FORMAT_RGB_DXT1, 2710b8e80941Smrg .StrName = "MESA_FORMAT_RGB_DXT1", 2711b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2712b8e80941Smrg .BaseFormat = GL_RGB, 2713b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2714b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 0, 2715b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2716b8e80941Smrg .IsSRGBFormat = 0, 2717b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2718b8e80941Smrg .BytesPerBlock = 8, 2719b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2720b8e80941Smrg .ArrayFormat = 0, 2721b8e80941Smrg }, 2722b8e80941Smrg { 2723b8e80941Smrg .Name = MESA_FORMAT_RGBA_DXT1, 2724b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_DXT1", 2725b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2726b8e80941Smrg .BaseFormat = GL_RGBA, 2727b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2728b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2729b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2730b8e80941Smrg .IsSRGBFormat = 0, 2731b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2732b8e80941Smrg .BytesPerBlock = 8, 2733b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2734b8e80941Smrg .ArrayFormat = 0, 2735b8e80941Smrg }, 2736b8e80941Smrg { 2737b8e80941Smrg .Name = MESA_FORMAT_RGBA_DXT3, 2738b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_DXT3", 2739b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2740b8e80941Smrg .BaseFormat = GL_RGBA, 2741b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2742b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2743b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2744b8e80941Smrg .IsSRGBFormat = 0, 2745b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2746b8e80941Smrg .BytesPerBlock = 16, 2747b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2748b8e80941Smrg .ArrayFormat = 0, 2749b8e80941Smrg }, 2750b8e80941Smrg { 2751b8e80941Smrg .Name = MESA_FORMAT_RGBA_DXT5, 2752b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_DXT5", 2753b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2754b8e80941Smrg .BaseFormat = GL_RGBA, 2755b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2756b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2757b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2758b8e80941Smrg .IsSRGBFormat = 0, 2759b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2760b8e80941Smrg .BytesPerBlock = 16, 2761b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2762b8e80941Smrg .ArrayFormat = 0, 2763b8e80941Smrg }, 2764b8e80941Smrg { 2765b8e80941Smrg .Name = MESA_FORMAT_SRGB_DXT1, 2766b8e80941Smrg .StrName = "MESA_FORMAT_SRGB_DXT1", 2767b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2768b8e80941Smrg .BaseFormat = GL_RGB, 2769b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2770b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 0, 2771b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2772b8e80941Smrg .IsSRGBFormat = 1, 2773b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2774b8e80941Smrg .BytesPerBlock = 8, 2775b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2776b8e80941Smrg .ArrayFormat = 0, 2777b8e80941Smrg }, 2778b8e80941Smrg { 2779b8e80941Smrg .Name = MESA_FORMAT_SRGBA_DXT1, 2780b8e80941Smrg .StrName = "MESA_FORMAT_SRGBA_DXT1", 2781b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2782b8e80941Smrg .BaseFormat = GL_RGBA, 2783b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2784b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2785b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2786b8e80941Smrg .IsSRGBFormat = 1, 2787b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2788b8e80941Smrg .BytesPerBlock = 8, 2789b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2790b8e80941Smrg .ArrayFormat = 0, 2791b8e80941Smrg }, 2792b8e80941Smrg { 2793b8e80941Smrg .Name = MESA_FORMAT_SRGBA_DXT3, 2794b8e80941Smrg .StrName = "MESA_FORMAT_SRGBA_DXT3", 2795b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2796b8e80941Smrg .BaseFormat = GL_RGBA, 2797b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2798b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2799b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2800b8e80941Smrg .IsSRGBFormat = 1, 2801b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2802b8e80941Smrg .BytesPerBlock = 16, 2803b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2804b8e80941Smrg .ArrayFormat = 0, 2805b8e80941Smrg }, 2806b8e80941Smrg { 2807b8e80941Smrg .Name = MESA_FORMAT_SRGBA_DXT5, 2808b8e80941Smrg .StrName = "MESA_FORMAT_SRGBA_DXT5", 2809b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_S3TC, 2810b8e80941Smrg .BaseFormat = GL_RGBA, 2811b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2812b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 4, 2813b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2814b8e80941Smrg .IsSRGBFormat = 1, 2815b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2816b8e80941Smrg .BytesPerBlock = 16, 2817b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2818b8e80941Smrg .ArrayFormat = 0, 2819b8e80941Smrg }, 2820b8e80941Smrg { 2821b8e80941Smrg .Name = MESA_FORMAT_RGB_FXT1, 2822b8e80941Smrg .StrName = "MESA_FORMAT_RGB_FXT1", 2823b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_FXT1, 2824b8e80941Smrg .BaseFormat = GL_RGB, 2825b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2826b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 0, 2827b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2828b8e80941Smrg .IsSRGBFormat = 0, 2829b8e80941Smrg .BlockWidth = 8, .BlockHeight = 4, .BlockDepth = 1, 2830b8e80941Smrg .BytesPerBlock = 16, 2831b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2832b8e80941Smrg .ArrayFormat = 0, 2833b8e80941Smrg }, 2834b8e80941Smrg { 2835b8e80941Smrg .Name = MESA_FORMAT_RGBA_FXT1, 2836b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_FXT1", 2837b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_FXT1, 2838b8e80941Smrg .BaseFormat = GL_RGBA, 2839b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2840b8e80941Smrg .RedBits = 4, .GreenBits = 4, .BlueBits = 4, .AlphaBits = 1, 2841b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2842b8e80941Smrg .IsSRGBFormat = 0, 2843b8e80941Smrg .BlockWidth = 8, .BlockHeight = 4, .BlockDepth = 1, 2844b8e80941Smrg .BytesPerBlock = 16, 2845b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 2846b8e80941Smrg .ArrayFormat = 0, 2847b8e80941Smrg }, 2848b8e80941Smrg { 2849b8e80941Smrg .Name = MESA_FORMAT_R_RGTC1_UNORM, 2850b8e80941Smrg .StrName = "MESA_FORMAT_R_RGTC1_UNORM", 2851b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_RGTC, 2852b8e80941Smrg .BaseFormat = GL_RED, 2853b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2854b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2855b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2856b8e80941Smrg .IsSRGBFormat = 0, 2857b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2858b8e80941Smrg .BytesPerBlock = 8, 2859b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2860b8e80941Smrg .ArrayFormat = 0, 2861b8e80941Smrg }, 2862b8e80941Smrg { 2863b8e80941Smrg .Name = MESA_FORMAT_R_RGTC1_SNORM, 2864b8e80941Smrg .StrName = "MESA_FORMAT_R_RGTC1_SNORM", 2865b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_RGTC, 2866b8e80941Smrg .BaseFormat = GL_RED, 2867b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 2868b8e80941Smrg .RedBits = 8, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2869b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2870b8e80941Smrg .IsSRGBFormat = 0, 2871b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2872b8e80941Smrg .BytesPerBlock = 8, 2873b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 2874b8e80941Smrg .ArrayFormat = 0, 2875b8e80941Smrg }, 2876b8e80941Smrg { 2877b8e80941Smrg .Name = MESA_FORMAT_RG_RGTC2_UNORM, 2878b8e80941Smrg .StrName = "MESA_FORMAT_RG_RGTC2_UNORM", 2879b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_RGTC, 2880b8e80941Smrg .BaseFormat = GL_RG, 2881b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2882b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 2883b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2884b8e80941Smrg .IsSRGBFormat = 0, 2885b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2886b8e80941Smrg .BytesPerBlock = 16, 2887b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2888b8e80941Smrg .ArrayFormat = 0, 2889b8e80941Smrg }, 2890b8e80941Smrg { 2891b8e80941Smrg .Name = MESA_FORMAT_RG_RGTC2_SNORM, 2892b8e80941Smrg .StrName = "MESA_FORMAT_RG_RGTC2_SNORM", 2893b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_RGTC, 2894b8e80941Smrg .BaseFormat = GL_RG, 2895b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 2896b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 0, .AlphaBits = 0, 2897b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2898b8e80941Smrg .IsSRGBFormat = 0, 2899b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2900b8e80941Smrg .BytesPerBlock = 16, 2901b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 2902b8e80941Smrg .ArrayFormat = 0, 2903b8e80941Smrg }, 2904b8e80941Smrg { 2905b8e80941Smrg .Name = MESA_FORMAT_L_LATC1_UNORM, 2906b8e80941Smrg .StrName = "MESA_FORMAT_L_LATC1_UNORM", 2907b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_LATC, 2908b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2909b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2910b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2911b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2912b8e80941Smrg .IsSRGBFormat = 0, 2913b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2914b8e80941Smrg .BytesPerBlock = 8, 2915b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2916b8e80941Smrg .ArrayFormat = 0, 2917b8e80941Smrg }, 2918b8e80941Smrg { 2919b8e80941Smrg .Name = MESA_FORMAT_L_LATC1_SNORM, 2920b8e80941Smrg .StrName = "MESA_FORMAT_L_LATC1_SNORM", 2921b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_LATC, 2922b8e80941Smrg .BaseFormat = GL_LUMINANCE, 2923b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 2924b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 2925b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2926b8e80941Smrg .IsSRGBFormat = 0, 2927b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2928b8e80941Smrg .BytesPerBlock = 8, 2929b8e80941Smrg .Swizzle = { 0, 0, 0, 5 }, 2930b8e80941Smrg .ArrayFormat = 0, 2931b8e80941Smrg }, 2932b8e80941Smrg { 2933b8e80941Smrg .Name = MESA_FORMAT_LA_LATC2_UNORM, 2934b8e80941Smrg .StrName = "MESA_FORMAT_LA_LATC2_UNORM", 2935b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_LATC, 2936b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2937b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2938b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 2939b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2940b8e80941Smrg .IsSRGBFormat = 0, 2941b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2942b8e80941Smrg .BytesPerBlock = 16, 2943b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2944b8e80941Smrg .ArrayFormat = 0, 2945b8e80941Smrg }, 2946b8e80941Smrg { 2947b8e80941Smrg .Name = MESA_FORMAT_LA_LATC2_SNORM, 2948b8e80941Smrg .StrName = "MESA_FORMAT_LA_LATC2_SNORM", 2949b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_LATC, 2950b8e80941Smrg .BaseFormat = GL_LUMINANCE_ALPHA, 2951b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 2952b8e80941Smrg .RedBits = 0, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 8, 2953b8e80941Smrg .LuminanceBits = 8, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2954b8e80941Smrg .IsSRGBFormat = 0, 2955b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2956b8e80941Smrg .BytesPerBlock = 16, 2957b8e80941Smrg .Swizzle = { 0, 0, 0, 1 }, 2958b8e80941Smrg .ArrayFormat = 0, 2959b8e80941Smrg }, 2960b8e80941Smrg { 2961b8e80941Smrg .Name = MESA_FORMAT_ETC1_RGB8, 2962b8e80941Smrg .StrName = "MESA_FORMAT_ETC1_RGB8", 2963b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC1, 2964b8e80941Smrg .BaseFormat = GL_RGB, 2965b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2966b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2967b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2968b8e80941Smrg .IsSRGBFormat = 0, 2969b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2970b8e80941Smrg .BytesPerBlock = 8, 2971b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2972b8e80941Smrg .ArrayFormat = 0, 2973b8e80941Smrg }, 2974b8e80941Smrg { 2975b8e80941Smrg .Name = MESA_FORMAT_ETC2_RGB8, 2976b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_RGB8", 2977b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 2978b8e80941Smrg .BaseFormat = GL_RGB, 2979b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2980b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2981b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2982b8e80941Smrg .IsSRGBFormat = 0, 2983b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2984b8e80941Smrg .BytesPerBlock = 8, 2985b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 2986b8e80941Smrg .ArrayFormat = 0, 2987b8e80941Smrg }, 2988b8e80941Smrg { 2989b8e80941Smrg .Name = MESA_FORMAT_ETC2_SRGB8, 2990b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_SRGB8", 2991b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 2992b8e80941Smrg .BaseFormat = GL_RGB, 2993b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 2994b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 2995b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 2996b8e80941Smrg .IsSRGBFormat = 1, 2997b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 2998b8e80941Smrg .BytesPerBlock = 8, 2999b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 3000b8e80941Smrg .ArrayFormat = 0, 3001b8e80941Smrg }, 3002b8e80941Smrg { 3003b8e80941Smrg .Name = MESA_FORMAT_ETC2_RGBA8_EAC, 3004b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_RGBA8_EAC", 3005b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3006b8e80941Smrg .BaseFormat = GL_RGBA, 3007b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3008b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3009b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3010b8e80941Smrg .IsSRGBFormat = 0, 3011b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3012b8e80941Smrg .BytesPerBlock = 16, 3013b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3014b8e80941Smrg .ArrayFormat = 0, 3015b8e80941Smrg }, 3016b8e80941Smrg { 3017b8e80941Smrg .Name = MESA_FORMAT_ETC2_SRGB8_ALPHA8_EAC, 3018b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_SRGB8_ALPHA8_EAC", 3019b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3020b8e80941Smrg .BaseFormat = GL_RGBA, 3021b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3022b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3023b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3024b8e80941Smrg .IsSRGBFormat = 1, 3025b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3026b8e80941Smrg .BytesPerBlock = 16, 3027b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3028b8e80941Smrg .ArrayFormat = 0, 3029b8e80941Smrg }, 3030b8e80941Smrg { 3031b8e80941Smrg .Name = MESA_FORMAT_ETC2_R11_EAC, 3032b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_R11_EAC", 3033b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3034b8e80941Smrg .BaseFormat = GL_RED, 3035b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3036b8e80941Smrg .RedBits = 11, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 3037b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3038b8e80941Smrg .IsSRGBFormat = 0, 3039b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3040b8e80941Smrg .BytesPerBlock = 8, 3041b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 3042b8e80941Smrg .ArrayFormat = 0, 3043b8e80941Smrg }, 3044b8e80941Smrg { 3045b8e80941Smrg .Name = MESA_FORMAT_ETC2_RG11_EAC, 3046b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_RG11_EAC", 3047b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3048b8e80941Smrg .BaseFormat = GL_RG, 3049b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3050b8e80941Smrg .RedBits = 11, .GreenBits = 11, .BlueBits = 0, .AlphaBits = 0, 3051b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3052b8e80941Smrg .IsSRGBFormat = 0, 3053b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3054b8e80941Smrg .BytesPerBlock = 16, 3055b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 3056b8e80941Smrg .ArrayFormat = 0, 3057b8e80941Smrg }, 3058b8e80941Smrg { 3059b8e80941Smrg .Name = MESA_FORMAT_ETC2_SIGNED_R11_EAC, 3060b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_SIGNED_R11_EAC", 3061b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3062b8e80941Smrg .BaseFormat = GL_RED, 3063b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 3064b8e80941Smrg .RedBits = 11, .GreenBits = 0, .BlueBits = 0, .AlphaBits = 0, 3065b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3066b8e80941Smrg .IsSRGBFormat = 0, 3067b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3068b8e80941Smrg .BytesPerBlock = 8, 3069b8e80941Smrg .Swizzle = { 0, 4, 4, 5 }, 3070b8e80941Smrg .ArrayFormat = 0, 3071b8e80941Smrg }, 3072b8e80941Smrg { 3073b8e80941Smrg .Name = MESA_FORMAT_ETC2_SIGNED_RG11_EAC, 3074b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_SIGNED_RG11_EAC", 3075b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3076b8e80941Smrg .BaseFormat = GL_RG, 3077b8e80941Smrg .DataType = GL_SIGNED_NORMALIZED, 3078b8e80941Smrg .RedBits = 11, .GreenBits = 11, .BlueBits = 0, .AlphaBits = 0, 3079b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3080b8e80941Smrg .IsSRGBFormat = 0, 3081b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3082b8e80941Smrg .BytesPerBlock = 16, 3083b8e80941Smrg .Swizzle = { 0, 1, 4, 5 }, 3084b8e80941Smrg .ArrayFormat = 0, 3085b8e80941Smrg }, 3086b8e80941Smrg { 3087b8e80941Smrg .Name = MESA_FORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1, 3088b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1", 3089b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3090b8e80941Smrg .BaseFormat = GL_RGBA, 3091b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3092b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 1, 3093b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3094b8e80941Smrg .IsSRGBFormat = 0, 3095b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3096b8e80941Smrg .BytesPerBlock = 8, 3097b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3098b8e80941Smrg .ArrayFormat = 0, 3099b8e80941Smrg }, 3100b8e80941Smrg { 3101b8e80941Smrg .Name = MESA_FORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1, 3102b8e80941Smrg .StrName = "MESA_FORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1", 3103b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ETC2, 3104b8e80941Smrg .BaseFormat = GL_RGBA, 3105b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3106b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 1, 3107b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3108b8e80941Smrg .IsSRGBFormat = 1, 3109b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3110b8e80941Smrg .BytesPerBlock = 8, 3111b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3112b8e80941Smrg .ArrayFormat = 0, 3113b8e80941Smrg }, 3114b8e80941Smrg { 3115b8e80941Smrg .Name = MESA_FORMAT_BPTC_RGBA_UNORM, 3116b8e80941Smrg .StrName = "MESA_FORMAT_BPTC_RGBA_UNORM", 3117b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_BPTC, 3118b8e80941Smrg .BaseFormat = GL_RGBA, 3119b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3120b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3121b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3122b8e80941Smrg .IsSRGBFormat = 0, 3123b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3124b8e80941Smrg .BytesPerBlock = 16, 3125b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3126b8e80941Smrg .ArrayFormat = 0, 3127b8e80941Smrg }, 3128b8e80941Smrg { 3129b8e80941Smrg .Name = MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM, 3130b8e80941Smrg .StrName = "MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM", 3131b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_BPTC, 3132b8e80941Smrg .BaseFormat = GL_RGBA, 3133b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3134b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3135b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3136b8e80941Smrg .IsSRGBFormat = 1, 3137b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3138b8e80941Smrg .BytesPerBlock = 16, 3139b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3140b8e80941Smrg .ArrayFormat = 0, 3141b8e80941Smrg }, 3142b8e80941Smrg { 3143b8e80941Smrg .Name = MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT, 3144b8e80941Smrg .StrName = "MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT", 3145b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_BPTC, 3146b8e80941Smrg .BaseFormat = GL_RGB, 3147b8e80941Smrg .DataType = GL_FLOAT, 3148b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 3149b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3150b8e80941Smrg .IsSRGBFormat = 0, 3151b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3152b8e80941Smrg .BytesPerBlock = 16, 3153b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 3154b8e80941Smrg .ArrayFormat = 0, 3155b8e80941Smrg }, 3156b8e80941Smrg { 3157b8e80941Smrg .Name = MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT, 3158b8e80941Smrg .StrName = "MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT", 3159b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_BPTC, 3160b8e80941Smrg .BaseFormat = GL_RGB, 3161b8e80941Smrg .DataType = GL_FLOAT, 3162b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 0, 3163b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3164b8e80941Smrg .IsSRGBFormat = 0, 3165b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3166b8e80941Smrg .BytesPerBlock = 16, 3167b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 3168b8e80941Smrg .ArrayFormat = 0, 3169b8e80941Smrg }, 3170b8e80941Smrg { 3171b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_4x4, 3172b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_4x4", 3173b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3174b8e80941Smrg .BaseFormat = GL_RGBA, 3175b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3176b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3177b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3178b8e80941Smrg .IsSRGBFormat = 0, 3179b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3180b8e80941Smrg .BytesPerBlock = 16, 3181b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3182b8e80941Smrg .ArrayFormat = 0, 3183b8e80941Smrg }, 3184b8e80941Smrg { 3185b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_5x4, 3186b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_5x4", 3187b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3188b8e80941Smrg .BaseFormat = GL_RGBA, 3189b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3190b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3191b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3192b8e80941Smrg .IsSRGBFormat = 0, 3193b8e80941Smrg .BlockWidth = 5, .BlockHeight = 4, .BlockDepth = 1, 3194b8e80941Smrg .BytesPerBlock = 16, 3195b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3196b8e80941Smrg .ArrayFormat = 0, 3197b8e80941Smrg }, 3198b8e80941Smrg { 3199b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_5x5, 3200b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_5x5", 3201b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3202b8e80941Smrg .BaseFormat = GL_RGBA, 3203b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3204b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3205b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3206b8e80941Smrg .IsSRGBFormat = 0, 3207b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 1, 3208b8e80941Smrg .BytesPerBlock = 16, 3209b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3210b8e80941Smrg .ArrayFormat = 0, 3211b8e80941Smrg }, 3212b8e80941Smrg { 3213b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_6x5, 3214b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_6x5", 3215b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3216b8e80941Smrg .BaseFormat = GL_RGBA, 3217b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3218b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3219b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3220b8e80941Smrg .IsSRGBFormat = 0, 3221b8e80941Smrg .BlockWidth = 6, .BlockHeight = 5, .BlockDepth = 1, 3222b8e80941Smrg .BytesPerBlock = 16, 3223b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3224b8e80941Smrg .ArrayFormat = 0, 3225b8e80941Smrg }, 3226b8e80941Smrg { 3227b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_6x6, 3228b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_6x6", 3229b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3230b8e80941Smrg .BaseFormat = GL_RGBA, 3231b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3232b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3233b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3234b8e80941Smrg .IsSRGBFormat = 0, 3235b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 1, 3236b8e80941Smrg .BytesPerBlock = 16, 3237b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3238b8e80941Smrg .ArrayFormat = 0, 3239b8e80941Smrg }, 3240b8e80941Smrg { 3241b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_8x5, 3242b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_8x5", 3243b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3244b8e80941Smrg .BaseFormat = GL_RGBA, 3245b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3246b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3247b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3248b8e80941Smrg .IsSRGBFormat = 0, 3249b8e80941Smrg .BlockWidth = 8, .BlockHeight = 5, .BlockDepth = 1, 3250b8e80941Smrg .BytesPerBlock = 16, 3251b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3252b8e80941Smrg .ArrayFormat = 0, 3253b8e80941Smrg }, 3254b8e80941Smrg { 3255b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_8x6, 3256b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_8x6", 3257b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3258b8e80941Smrg .BaseFormat = GL_RGBA, 3259b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3260b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3261b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3262b8e80941Smrg .IsSRGBFormat = 0, 3263b8e80941Smrg .BlockWidth = 8, .BlockHeight = 6, .BlockDepth = 1, 3264b8e80941Smrg .BytesPerBlock = 16, 3265b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3266b8e80941Smrg .ArrayFormat = 0, 3267b8e80941Smrg }, 3268b8e80941Smrg { 3269b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_8x8, 3270b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_8x8", 3271b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3272b8e80941Smrg .BaseFormat = GL_RGBA, 3273b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3274b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3275b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3276b8e80941Smrg .IsSRGBFormat = 0, 3277b8e80941Smrg .BlockWidth = 8, .BlockHeight = 8, .BlockDepth = 1, 3278b8e80941Smrg .BytesPerBlock = 16, 3279b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3280b8e80941Smrg .ArrayFormat = 0, 3281b8e80941Smrg }, 3282b8e80941Smrg { 3283b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_10x5, 3284b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_10x5", 3285b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3286b8e80941Smrg .BaseFormat = GL_RGBA, 3287b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3288b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3289b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3290b8e80941Smrg .IsSRGBFormat = 0, 3291b8e80941Smrg .BlockWidth = 10, .BlockHeight = 5, .BlockDepth = 1, 3292b8e80941Smrg .BytesPerBlock = 16, 3293b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3294b8e80941Smrg .ArrayFormat = 0, 3295b8e80941Smrg }, 3296b8e80941Smrg { 3297b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_10x6, 3298b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_10x6", 3299b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3300b8e80941Smrg .BaseFormat = GL_RGBA, 3301b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3302b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3303b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3304b8e80941Smrg .IsSRGBFormat = 0, 3305b8e80941Smrg .BlockWidth = 10, .BlockHeight = 6, .BlockDepth = 1, 3306b8e80941Smrg .BytesPerBlock = 16, 3307b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3308b8e80941Smrg .ArrayFormat = 0, 3309b8e80941Smrg }, 3310b8e80941Smrg { 3311b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_10x8, 3312b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_10x8", 3313b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3314b8e80941Smrg .BaseFormat = GL_RGBA, 3315b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3316b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3317b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3318b8e80941Smrg .IsSRGBFormat = 0, 3319b8e80941Smrg .BlockWidth = 10, .BlockHeight = 8, .BlockDepth = 1, 3320b8e80941Smrg .BytesPerBlock = 16, 3321b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3322b8e80941Smrg .ArrayFormat = 0, 3323b8e80941Smrg }, 3324b8e80941Smrg { 3325b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_10x10, 3326b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_10x10", 3327b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3328b8e80941Smrg .BaseFormat = GL_RGBA, 3329b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3330b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3331b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3332b8e80941Smrg .IsSRGBFormat = 0, 3333b8e80941Smrg .BlockWidth = 10, .BlockHeight = 10, .BlockDepth = 1, 3334b8e80941Smrg .BytesPerBlock = 16, 3335b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3336b8e80941Smrg .ArrayFormat = 0, 3337b8e80941Smrg }, 3338b8e80941Smrg { 3339b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_12x10, 3340b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_12x10", 3341b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3342b8e80941Smrg .BaseFormat = GL_RGBA, 3343b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3344b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3345b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3346b8e80941Smrg .IsSRGBFormat = 0, 3347b8e80941Smrg .BlockWidth = 12, .BlockHeight = 10, .BlockDepth = 1, 3348b8e80941Smrg .BytesPerBlock = 16, 3349b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3350b8e80941Smrg .ArrayFormat = 0, 3351b8e80941Smrg }, 3352b8e80941Smrg { 3353b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_12x12, 3354b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_12x12", 3355b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3356b8e80941Smrg .BaseFormat = GL_RGBA, 3357b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3358b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3359b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3360b8e80941Smrg .IsSRGBFormat = 0, 3361b8e80941Smrg .BlockWidth = 12, .BlockHeight = 12, .BlockDepth = 1, 3362b8e80941Smrg .BytesPerBlock = 16, 3363b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3364b8e80941Smrg .ArrayFormat = 0, 3365b8e80941Smrg }, 3366b8e80941Smrg { 3367b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4, 3368b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4", 3369b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3370b8e80941Smrg .BaseFormat = GL_RGBA, 3371b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3372b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3373b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3374b8e80941Smrg .IsSRGBFormat = 1, 3375b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3376b8e80941Smrg .BytesPerBlock = 16, 3377b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3378b8e80941Smrg .ArrayFormat = 0, 3379b8e80941Smrg }, 3380b8e80941Smrg { 3381b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4, 3382b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4", 3383b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3384b8e80941Smrg .BaseFormat = GL_RGBA, 3385b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3386b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3387b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3388b8e80941Smrg .IsSRGBFormat = 1, 3389b8e80941Smrg .BlockWidth = 5, .BlockHeight = 4, .BlockDepth = 1, 3390b8e80941Smrg .BytesPerBlock = 16, 3391b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3392b8e80941Smrg .ArrayFormat = 0, 3393b8e80941Smrg }, 3394b8e80941Smrg { 3395b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5, 3396b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5", 3397b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3398b8e80941Smrg .BaseFormat = GL_RGBA, 3399b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3400b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3401b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3402b8e80941Smrg .IsSRGBFormat = 1, 3403b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 1, 3404b8e80941Smrg .BytesPerBlock = 16, 3405b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3406b8e80941Smrg .ArrayFormat = 0, 3407b8e80941Smrg }, 3408b8e80941Smrg { 3409b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5, 3410b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5", 3411b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3412b8e80941Smrg .BaseFormat = GL_RGBA, 3413b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3414b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3415b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3416b8e80941Smrg .IsSRGBFormat = 1, 3417b8e80941Smrg .BlockWidth = 6, .BlockHeight = 5, .BlockDepth = 1, 3418b8e80941Smrg .BytesPerBlock = 16, 3419b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3420b8e80941Smrg .ArrayFormat = 0, 3421b8e80941Smrg }, 3422b8e80941Smrg { 3423b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6, 3424b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6", 3425b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3426b8e80941Smrg .BaseFormat = GL_RGBA, 3427b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3428b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3429b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3430b8e80941Smrg .IsSRGBFormat = 1, 3431b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 1, 3432b8e80941Smrg .BytesPerBlock = 16, 3433b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3434b8e80941Smrg .ArrayFormat = 0, 3435b8e80941Smrg }, 3436b8e80941Smrg { 3437b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x5, 3438b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x5", 3439b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3440b8e80941Smrg .BaseFormat = GL_RGBA, 3441b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3442b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3443b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3444b8e80941Smrg .IsSRGBFormat = 1, 3445b8e80941Smrg .BlockWidth = 8, .BlockHeight = 5, .BlockDepth = 1, 3446b8e80941Smrg .BytesPerBlock = 16, 3447b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3448b8e80941Smrg .ArrayFormat = 0, 3449b8e80941Smrg }, 3450b8e80941Smrg { 3451b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x6, 3452b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x6", 3453b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3454b8e80941Smrg .BaseFormat = GL_RGBA, 3455b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3456b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3457b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3458b8e80941Smrg .IsSRGBFormat = 1, 3459b8e80941Smrg .BlockWidth = 8, .BlockHeight = 6, .BlockDepth = 1, 3460b8e80941Smrg .BytesPerBlock = 16, 3461b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3462b8e80941Smrg .ArrayFormat = 0, 3463b8e80941Smrg }, 3464b8e80941Smrg { 3465b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x8, 3466b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_8x8", 3467b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3468b8e80941Smrg .BaseFormat = GL_RGBA, 3469b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3470b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3471b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3472b8e80941Smrg .IsSRGBFormat = 1, 3473b8e80941Smrg .BlockWidth = 8, .BlockHeight = 8, .BlockDepth = 1, 3474b8e80941Smrg .BytesPerBlock = 16, 3475b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3476b8e80941Smrg .ArrayFormat = 0, 3477b8e80941Smrg }, 3478b8e80941Smrg { 3479b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x5, 3480b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x5", 3481b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3482b8e80941Smrg .BaseFormat = GL_RGBA, 3483b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3484b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3485b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3486b8e80941Smrg .IsSRGBFormat = 1, 3487b8e80941Smrg .BlockWidth = 10, .BlockHeight = 5, .BlockDepth = 1, 3488b8e80941Smrg .BytesPerBlock = 16, 3489b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3490b8e80941Smrg .ArrayFormat = 0, 3491b8e80941Smrg }, 3492b8e80941Smrg { 3493b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x6, 3494b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x6", 3495b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3496b8e80941Smrg .BaseFormat = GL_RGBA, 3497b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3498b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3499b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3500b8e80941Smrg .IsSRGBFormat = 1, 3501b8e80941Smrg .BlockWidth = 10, .BlockHeight = 6, .BlockDepth = 1, 3502b8e80941Smrg .BytesPerBlock = 16, 3503b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3504b8e80941Smrg .ArrayFormat = 0, 3505b8e80941Smrg }, 3506b8e80941Smrg { 3507b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x8, 3508b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x8", 3509b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3510b8e80941Smrg .BaseFormat = GL_RGBA, 3511b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3512b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3513b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3514b8e80941Smrg .IsSRGBFormat = 1, 3515b8e80941Smrg .BlockWidth = 10, .BlockHeight = 8, .BlockDepth = 1, 3516b8e80941Smrg .BytesPerBlock = 16, 3517b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3518b8e80941Smrg .ArrayFormat = 0, 3519b8e80941Smrg }, 3520b8e80941Smrg { 3521b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x10, 3522b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_10x10", 3523b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3524b8e80941Smrg .BaseFormat = GL_RGBA, 3525b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3526b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3527b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3528b8e80941Smrg .IsSRGBFormat = 1, 3529b8e80941Smrg .BlockWidth = 10, .BlockHeight = 10, .BlockDepth = 1, 3530b8e80941Smrg .BytesPerBlock = 16, 3531b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3532b8e80941Smrg .ArrayFormat = 0, 3533b8e80941Smrg }, 3534b8e80941Smrg { 3535b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x10, 3536b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x10", 3537b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3538b8e80941Smrg .BaseFormat = GL_RGBA, 3539b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3540b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3541b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3542b8e80941Smrg .IsSRGBFormat = 1, 3543b8e80941Smrg .BlockWidth = 12, .BlockHeight = 10, .BlockDepth = 1, 3544b8e80941Smrg .BytesPerBlock = 16, 3545b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3546b8e80941Smrg .ArrayFormat = 0, 3547b8e80941Smrg }, 3548b8e80941Smrg { 3549b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x12, 3550b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_12x12", 3551b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3552b8e80941Smrg .BaseFormat = GL_RGBA, 3553b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3554b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3555b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3556b8e80941Smrg .IsSRGBFormat = 1, 3557b8e80941Smrg .BlockWidth = 12, .BlockHeight = 12, .BlockDepth = 1, 3558b8e80941Smrg .BytesPerBlock = 16, 3559b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3560b8e80941Smrg .ArrayFormat = 0, 3561b8e80941Smrg }, 3562b8e80941Smrg { 3563b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_3x3x3, 3564b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_3x3x3", 3565b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3566b8e80941Smrg .BaseFormat = GL_RGBA, 3567b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3568b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3569b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3570b8e80941Smrg .IsSRGBFormat = 0, 3571b8e80941Smrg .BlockWidth = 3, .BlockHeight = 3, .BlockDepth = 3, 3572b8e80941Smrg .BytesPerBlock = 16, 3573b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3574b8e80941Smrg .ArrayFormat = 0, 3575b8e80941Smrg }, 3576b8e80941Smrg { 3577b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_4x3x3, 3578b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_4x3x3", 3579b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3580b8e80941Smrg .BaseFormat = GL_RGBA, 3581b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3582b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3583b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3584b8e80941Smrg .IsSRGBFormat = 0, 3585b8e80941Smrg .BlockWidth = 4, .BlockHeight = 3, .BlockDepth = 3, 3586b8e80941Smrg .BytesPerBlock = 16, 3587b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3588b8e80941Smrg .ArrayFormat = 0, 3589b8e80941Smrg }, 3590b8e80941Smrg { 3591b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_4x4x3, 3592b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_4x4x3", 3593b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3594b8e80941Smrg .BaseFormat = GL_RGBA, 3595b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3596b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3597b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3598b8e80941Smrg .IsSRGBFormat = 0, 3599b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 3, 3600b8e80941Smrg .BytesPerBlock = 16, 3601b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3602b8e80941Smrg .ArrayFormat = 0, 3603b8e80941Smrg }, 3604b8e80941Smrg { 3605b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_4x4x4, 3606b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_4x4x4", 3607b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3608b8e80941Smrg .BaseFormat = GL_RGBA, 3609b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3610b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3611b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3612b8e80941Smrg .IsSRGBFormat = 0, 3613b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 4, 3614b8e80941Smrg .BytesPerBlock = 16, 3615b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3616b8e80941Smrg .ArrayFormat = 0, 3617b8e80941Smrg }, 3618b8e80941Smrg { 3619b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_5x4x4, 3620b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_5x4x4", 3621b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3622b8e80941Smrg .BaseFormat = GL_RGBA, 3623b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3624b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3625b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3626b8e80941Smrg .IsSRGBFormat = 0, 3627b8e80941Smrg .BlockWidth = 5, .BlockHeight = 4, .BlockDepth = 4, 3628b8e80941Smrg .BytesPerBlock = 16, 3629b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3630b8e80941Smrg .ArrayFormat = 0, 3631b8e80941Smrg }, 3632b8e80941Smrg { 3633b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_5x5x4, 3634b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_5x5x4", 3635b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3636b8e80941Smrg .BaseFormat = GL_RGBA, 3637b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3638b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3639b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3640b8e80941Smrg .IsSRGBFormat = 0, 3641b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 4, 3642b8e80941Smrg .BytesPerBlock = 16, 3643b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3644b8e80941Smrg .ArrayFormat = 0, 3645b8e80941Smrg }, 3646b8e80941Smrg { 3647b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_5x5x5, 3648b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_5x5x5", 3649b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3650b8e80941Smrg .BaseFormat = GL_RGBA, 3651b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3652b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3653b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3654b8e80941Smrg .IsSRGBFormat = 0, 3655b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 5, 3656b8e80941Smrg .BytesPerBlock = 16, 3657b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3658b8e80941Smrg .ArrayFormat = 0, 3659b8e80941Smrg }, 3660b8e80941Smrg { 3661b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_6x5x5, 3662b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_6x5x5", 3663b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3664b8e80941Smrg .BaseFormat = GL_RGBA, 3665b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3666b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3667b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3668b8e80941Smrg .IsSRGBFormat = 0, 3669b8e80941Smrg .BlockWidth = 6, .BlockHeight = 5, .BlockDepth = 5, 3670b8e80941Smrg .BytesPerBlock = 16, 3671b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3672b8e80941Smrg .ArrayFormat = 0, 3673b8e80941Smrg }, 3674b8e80941Smrg { 3675b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_6x6x5, 3676b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_6x6x5", 3677b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3678b8e80941Smrg .BaseFormat = GL_RGBA, 3679b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3680b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3681b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3682b8e80941Smrg .IsSRGBFormat = 0, 3683b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 5, 3684b8e80941Smrg .BytesPerBlock = 16, 3685b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3686b8e80941Smrg .ArrayFormat = 0, 3687b8e80941Smrg }, 3688b8e80941Smrg { 3689b8e80941Smrg .Name = MESA_FORMAT_RGBA_ASTC_6x6x6, 3690b8e80941Smrg .StrName = "MESA_FORMAT_RGBA_ASTC_6x6x6", 3691b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3692b8e80941Smrg .BaseFormat = GL_RGBA, 3693b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3694b8e80941Smrg .RedBits = 16, .GreenBits = 16, .BlueBits = 16, .AlphaBits = 16, 3695b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3696b8e80941Smrg .IsSRGBFormat = 0, 3697b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 6, 3698b8e80941Smrg .BytesPerBlock = 16, 3699b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3700b8e80941Smrg .ArrayFormat = 0, 3701b8e80941Smrg }, 3702b8e80941Smrg { 3703b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_3x3x3, 3704b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_3x3x3", 3705b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3706b8e80941Smrg .BaseFormat = GL_RGBA, 3707b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3708b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3709b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3710b8e80941Smrg .IsSRGBFormat = 1, 3711b8e80941Smrg .BlockWidth = 3, .BlockHeight = 3, .BlockDepth = 3, 3712b8e80941Smrg .BytesPerBlock = 16, 3713b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3714b8e80941Smrg .ArrayFormat = 0, 3715b8e80941Smrg }, 3716b8e80941Smrg { 3717b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x3x3, 3718b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x3x3", 3719b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3720b8e80941Smrg .BaseFormat = GL_RGBA, 3721b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3722b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3723b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3724b8e80941Smrg .IsSRGBFormat = 1, 3725b8e80941Smrg .BlockWidth = 4, .BlockHeight = 3, .BlockDepth = 3, 3726b8e80941Smrg .BytesPerBlock = 16, 3727b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3728b8e80941Smrg .ArrayFormat = 0, 3729b8e80941Smrg }, 3730b8e80941Smrg { 3731b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x3, 3732b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x3", 3733b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3734b8e80941Smrg .BaseFormat = GL_RGBA, 3735b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3736b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3737b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3738b8e80941Smrg .IsSRGBFormat = 1, 3739b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 3, 3740b8e80941Smrg .BytesPerBlock = 16, 3741b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3742b8e80941Smrg .ArrayFormat = 0, 3743b8e80941Smrg }, 3744b8e80941Smrg { 3745b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x4, 3746b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_4x4x4", 3747b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3748b8e80941Smrg .BaseFormat = GL_RGBA, 3749b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3750b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3751b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3752b8e80941Smrg .IsSRGBFormat = 1, 3753b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 4, 3754b8e80941Smrg .BytesPerBlock = 16, 3755b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3756b8e80941Smrg .ArrayFormat = 0, 3757b8e80941Smrg }, 3758b8e80941Smrg { 3759b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4x4, 3760b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x4x4", 3761b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3762b8e80941Smrg .BaseFormat = GL_RGBA, 3763b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3764b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3765b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3766b8e80941Smrg .IsSRGBFormat = 1, 3767b8e80941Smrg .BlockWidth = 5, .BlockHeight = 4, .BlockDepth = 4, 3768b8e80941Smrg .BytesPerBlock = 16, 3769b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3770b8e80941Smrg .ArrayFormat = 0, 3771b8e80941Smrg }, 3772b8e80941Smrg { 3773b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x4, 3774b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x4", 3775b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3776b8e80941Smrg .BaseFormat = GL_RGBA, 3777b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3778b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3779b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3780b8e80941Smrg .IsSRGBFormat = 1, 3781b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 4, 3782b8e80941Smrg .BytesPerBlock = 16, 3783b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3784b8e80941Smrg .ArrayFormat = 0, 3785b8e80941Smrg }, 3786b8e80941Smrg { 3787b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x5, 3788b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_5x5x5", 3789b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3790b8e80941Smrg .BaseFormat = GL_RGBA, 3791b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3792b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3793b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3794b8e80941Smrg .IsSRGBFormat = 1, 3795b8e80941Smrg .BlockWidth = 5, .BlockHeight = 5, .BlockDepth = 5, 3796b8e80941Smrg .BytesPerBlock = 16, 3797b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3798b8e80941Smrg .ArrayFormat = 0, 3799b8e80941Smrg }, 3800b8e80941Smrg { 3801b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5x5, 3802b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x5x5", 3803b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3804b8e80941Smrg .BaseFormat = GL_RGBA, 3805b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3806b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3807b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3808b8e80941Smrg .IsSRGBFormat = 1, 3809b8e80941Smrg .BlockWidth = 6, .BlockHeight = 5, .BlockDepth = 5, 3810b8e80941Smrg .BytesPerBlock = 16, 3811b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3812b8e80941Smrg .ArrayFormat = 0, 3813b8e80941Smrg }, 3814b8e80941Smrg { 3815b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x5, 3816b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x5", 3817b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3818b8e80941Smrg .BaseFormat = GL_RGBA, 3819b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3820b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3821b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3822b8e80941Smrg .IsSRGBFormat = 1, 3823b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 5, 3824b8e80941Smrg .BytesPerBlock = 16, 3825b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3826b8e80941Smrg .ArrayFormat = 0, 3827b8e80941Smrg }, 3828b8e80941Smrg { 3829b8e80941Smrg .Name = MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x6, 3830b8e80941Smrg .StrName = "MESA_FORMAT_SRGB8_ALPHA8_ASTC_6x6x6", 3831b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ASTC, 3832b8e80941Smrg .BaseFormat = GL_RGBA, 3833b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3834b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3835b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3836b8e80941Smrg .IsSRGBFormat = 1, 3837b8e80941Smrg .BlockWidth = 6, .BlockHeight = 6, .BlockDepth = 6, 3838b8e80941Smrg .BytesPerBlock = 16, 3839b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3840b8e80941Smrg .ArrayFormat = 0, 3841b8e80941Smrg }, 3842b8e80941Smrg { 3843b8e80941Smrg .Name = MESA_FORMAT_ATC_RGB, 3844b8e80941Smrg .StrName = "MESA_FORMAT_ATC_RGB", 3845b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ATC, 3846b8e80941Smrg .BaseFormat = GL_RGB, 3847b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3848b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 0, 3849b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3850b8e80941Smrg .IsSRGBFormat = 0, 3851b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3852b8e80941Smrg .BytesPerBlock = 8, 3853b8e80941Smrg .Swizzle = { 0, 1, 2, 5 }, 3854b8e80941Smrg .ArrayFormat = 0, 3855b8e80941Smrg }, 3856b8e80941Smrg { 3857b8e80941Smrg .Name = MESA_FORMAT_ATC_RGBA_EXPLICIT, 3858b8e80941Smrg .StrName = "MESA_FORMAT_ATC_RGBA_EXPLICIT", 3859b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ATC, 3860b8e80941Smrg .BaseFormat = GL_RGBA, 3861b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3862b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3863b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3864b8e80941Smrg .IsSRGBFormat = 0, 3865b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3866b8e80941Smrg .BytesPerBlock = 16, 3867b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3868b8e80941Smrg .ArrayFormat = 0, 3869b8e80941Smrg }, 3870b8e80941Smrg { 3871b8e80941Smrg .Name = MESA_FORMAT_ATC_RGBA_INTERPOLATED, 3872b8e80941Smrg .StrName = "MESA_FORMAT_ATC_RGBA_INTERPOLATED", 3873b8e80941Smrg .Layout = MESA_FORMAT_LAYOUT_ATC, 3874b8e80941Smrg .BaseFormat = GL_RGBA, 3875b8e80941Smrg .DataType = GL_UNSIGNED_NORMALIZED, 3876b8e80941Smrg .RedBits = 8, .GreenBits = 8, .BlueBits = 8, .AlphaBits = 8, 3877b8e80941Smrg .LuminanceBits = 0, .IntensityBits = 0, .DepthBits = 0, .StencilBits = 0, 3878b8e80941Smrg .IsSRGBFormat = 0, 3879b8e80941Smrg .BlockWidth = 4, .BlockHeight = 4, .BlockDepth = 1, 3880b8e80941Smrg .BytesPerBlock = 16, 3881b8e80941Smrg .Swizzle = { 0, 1, 2, 3 }, 3882b8e80941Smrg .ArrayFormat = 0, 3883b8e80941Smrg }, 3884b8e80941Smrg}; 3885