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