
/*
 * Mesa 3-D graphics library
 *
 * Copyright (c) 2014 Intel Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

 /*
  * This file is AUTOGENERATED by format_info.py.  Do not edit it
  * manually or commit it into version control.
  */

static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
{

   {
      MESA_FORMAT_NONE,
      "MESA_FORMAT_NONE",
      MESA_FORMAT_LAYOUT_OTHER,
      GL_NONE,
      GL_NONE,
      0, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 4, 4, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_A8B8G8R8_UNORM,
      "MESA_FORMAT_A8B8G8R8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 0),
   },
   {
      MESA_FORMAT_X8B8G8R8_UNORM,
      "MESA_FORMAT_X8B8G8R8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 5),
   },
   {
      MESA_FORMAT_R8G8B8A8_UNORM,
      "MESA_FORMAT_R8G8B8A8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_R8G8B8X8_UNORM,
      "MESA_FORMAT_R8G8B8X8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_B8G8R8A8_UNORM,
      "MESA_FORMAT_B8G8R8A8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 3),
   },
   {
      MESA_FORMAT_B8G8R8X8_UNORM,
      "MESA_FORMAT_B8G8R8X8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 5),
   },
   {
      MESA_FORMAT_A8R8G8B8_UNORM,
      "MESA_FORMAT_A8R8G8B8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 0),
   },
   {
      MESA_FORMAT_X8R8G8B8_UNORM,
      "MESA_FORMAT_X8R8G8B8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 5),
   },
   {
      MESA_FORMAT_L16A16_UNORM,
      "MESA_FORMAT_L16A16_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_A16L16_UNORM,
      "MESA_FORMAT_A16L16_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 1, 1, 1, 0 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 1, 1, 1, 0),
   },
   {
      MESA_FORMAT_B5G6R5_UNORM,
      "MESA_FORMAT_B5G6R5_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      5, 6, 5, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_R5G6B5_UNORM,
      "MESA_FORMAT_R5G6B5_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      5, 6, 5, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_B4G4R4A4_UNORM,
      "MESA_FORMAT_B4G4R4A4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_B4G4R4X4_UNORM,
      "MESA_FORMAT_B4G4R4X4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_A4R4G4B4_UNORM,
      "MESA_FORMAT_A4R4G4B4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_A1B5G5R5_UNORM,
      "MESA_FORMAT_A1B5G5R5_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_B5G5R5A1_UNORM,
      "MESA_FORMAT_B5G5R5A1_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_B5G5R5X1_UNORM,
      "MESA_FORMAT_B5G5R5X1_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      5, 5, 5, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_A1R5G5B5_UNORM,
      "MESA_FORMAT_A1R5G5B5_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_L8A8_UNORM,
      "MESA_FORMAT_L8A8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_A8L8_UNORM,
      "MESA_FORMAT_A8L8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 1, 1, 1, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 1, 1, 0),
   },
   {
      MESA_FORMAT_R8G8_UNORM,
      "MESA_FORMAT_R8G8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_G8R8_UNORM,
      "MESA_FORMAT_G8R8_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 0, 4, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 0, 4, 5),
   },
   {
      MESA_FORMAT_L4A4_UNORM,
      "MESA_FORMAT_L4A4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 4,
      4, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 1 },
      0,
   },
   {
      MESA_FORMAT_B2G3R3_UNORM,
      "MESA_FORMAT_B2G3R3_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      3, 3, 2, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_R16G16_UNORM,
      "MESA_FORMAT_R16G16_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_G16R16_UNORM,
      "MESA_FORMAT_G16R16_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 0, 4, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 2, 1, 0, 4, 5),
   },
   {
      MESA_FORMAT_B10G10R10A2_UNORM,
      "MESA_FORMAT_B10G10R10A2_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_B10G10R10X2_UNORM,
      "MESA_FORMAT_B10G10R10X2_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_R10G10B10A2_UNORM,
      "MESA_FORMAT_R10G10B10A2_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_R10G10B10X2_UNORM,
      "MESA_FORMAT_R10G10B10X2_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_S8_UINT_Z24_UNORM,
      "MESA_FORMAT_S8_UINT_Z24_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_DEPTH_STENCIL,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 24, 8,
      1, 1, 4,
      { 0, 1, 6, 6 },
      0,
   },
   {
      MESA_FORMAT_X8_UINT_Z24_UNORM,
      "MESA_FORMAT_X8_UINT_Z24_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_DEPTH_COMPONENT,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 24, 0,
      1, 1, 4,
      { 0, 6, 6, 6 },
      MESA_ARRAY_FORMAT(3, 0, 0, 1, 2, 0, 6, 6, 6),
   },
   {
      MESA_FORMAT_Z24_UNORM_S8_UINT,
      "MESA_FORMAT_Z24_UNORM_S8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_DEPTH_STENCIL,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 24, 8,
      1, 1, 4,
      { 1, 0, 6, 6 },
      0,
   },
   {
      MESA_FORMAT_Z24_UNORM_X8_UINT,
      "MESA_FORMAT_Z24_UNORM_X8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_DEPTH_COMPONENT,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 24, 0,
      1, 1, 4,
      { 1, 6, 6, 6 },
      MESA_ARRAY_FORMAT(3, 0, 0, 1, 2, 1, 6, 6, 6),
   },
   {
      MESA_FORMAT_R3G3B2_UNORM,
      "MESA_FORMAT_R3G3B2_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      3, 3, 2, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_A4B4G4R4_UNORM,
      "MESA_FORMAT_A4B4G4R4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_R4G4B4A4_UNORM,
      "MESA_FORMAT_R4G4B4A4_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_R5G5B5A1_UNORM,
      "MESA_FORMAT_R5G5B5A1_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_A2B10G10R10_UNORM,
      "MESA_FORMAT_A2B10G10R10_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_A2R10G10B10_UNORM,
      "MESA_FORMAT_A2R10G10B10_UNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_YCBCR,
      "MESA_FORMAT_YCBCR",
      MESA_FORMAT_LAYOUT_OTHER,
      GL_YCBCR_MESA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_YCBCR_REV,
      "MESA_FORMAT_YCBCR_REV",
      MESA_FORMAT_LAYOUT_OTHER,
      GL_YCBCR_MESA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_A_UNORM8,
      "MESA_FORMAT_A_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      0, 0, 0, 0,
      1, 1, 1,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_UNORM16,
      "MESA_FORMAT_A_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 16,
      0, 0, 0, 0,
      1, 1, 2,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_L_UNORM8,
      "MESA_FORMAT_L_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      8, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_UNORM16,
      "MESA_FORMAT_L_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      16, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_I_UNORM8,
      "MESA_FORMAT_I_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 8, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_UNORM16,
      "MESA_FORMAT_I_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 16, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_R_UNORM8,
      "MESA_FORMAT_R_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_UNSIGNED_NORMALIZED,
      8, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_UNORM16,
      "MESA_FORMAT_R_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_UNSIGNED_NORMALIZED,
      16, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_BGR_UNORM8,
      "MESA_FORMAT_BGR_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 3,
      { 2, 1, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 2, 1, 0, 5),
   },
   {
      MESA_FORMAT_RGB_UNORM8,
      "MESA_FORMAT_RGB_UNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 3,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBA_UNORM16,
      "MESA_FORMAT_RGBA_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      16, 16, 16, 16,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBX_UNORM16,
      "MESA_FORMAT_RGBX_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_Z_UNORM16,
      "MESA_FORMAT_Z_UNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_DEPTH_COMPONENT,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 16, 0,
      1, 1, 2,
      { 0, 6, 6, 6 },
      MESA_ARRAY_FORMAT(2, 0, 0, 1, 1, 0, 6, 6, 6),
   },
   {
      MESA_FORMAT_Z_UNORM32,
      "MESA_FORMAT_Z_UNORM32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_DEPTH_COMPONENT,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 0, 32, 0,
      1, 1, 4,
      { 0, 6, 6, 6 },
      MESA_ARRAY_FORMAT(4, 0, 0, 1, 1, 0, 6, 6, 6),
   },
   {
      MESA_FORMAT_S_UINT8,
      "MESA_FORMAT_S_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_STENCIL_INDEX,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      0, 0, 0, 8,
      1, 1, 1,
      { 6, 0, 6, 6 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 6, 0, 6, 6),
   },
   {
      MESA_FORMAT_A8B8G8R8_SNORM,
      "MESA_FORMAT_A8B8G8R8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_SIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 3, 2, 1, 0),
   },
   {
      MESA_FORMAT_X8B8G8R8_SNORM,
      "MESA_FORMAT_X8B8G8R8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_SIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 3, 2, 1, 5),
   },
   {
      MESA_FORMAT_R8G8B8A8_SNORM,
      "MESA_FORMAT_R8G8B8A8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_SIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_R8G8B8X8_SNORM,
      "MESA_FORMAT_R8G8B8X8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_SIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_R16G16_SNORM,
      "MESA_FORMAT_R16G16_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_G16R16_SNORM,
      "MESA_FORMAT_G16R16_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 0, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 1, 0, 4, 5),
   },
   {
      MESA_FORMAT_R8G8_SNORM,
      "MESA_FORMAT_R8G8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_G8R8_SNORM,
      "MESA_FORMAT_G8R8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 0, 4, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 1, 0, 4, 5),
   },
   {
      MESA_FORMAT_L8A8_SNORM,
      "MESA_FORMAT_L8A8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_A8L8_SNORM,
      "MESA_FORMAT_A8L8_SNORM",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 1, 1, 1, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 2, 1, 1, 1, 0),
   },
   {
      MESA_FORMAT_A_SNORM8,
      "MESA_FORMAT_A_SNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 8,
      0, 0, 0, 0,
      1, 1, 1,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_SNORM16,
      "MESA_FORMAT_A_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 16,
      0, 0, 0, 0,
      1, 1, 2,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_L_SNORM8,
      "MESA_FORMAT_L_SNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 0,
      8, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_SNORM16,
      "MESA_FORMAT_L_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 0,
      16, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_I_SNORM8,
      "MESA_FORMAT_I_SNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 8, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_SNORM16,
      "MESA_FORMAT_I_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 0,
      0, 16, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_R_SNORM8,
      "MESA_FORMAT_R_SNORM8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_SIGNED_NORMALIZED,
      8, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_SNORM16,
      "MESA_FORMAT_R_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_SIGNED_NORMALIZED,
      16, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_LA_SNORM16,
      "MESA_FORMAT_LA_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_RGB_SNORM16,
      "MESA_FORMAT_RGB_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_SIGNED_NORMALIZED,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 6,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBA_SNORM16,
      "MESA_FORMAT_RGBA_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_SIGNED_NORMALIZED,
      16, 16, 16, 16,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBX_SNORM16,
      "MESA_FORMAT_RGBX_SNORM16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_SIGNED_NORMALIZED,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_A8B8G8R8_SRGB,
      "MESA_FORMAT_A8B8G8R8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 0),
   },
   {
      MESA_FORMAT_B8G8R8A8_SRGB,
      "MESA_FORMAT_B8G8R8A8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 3),
   },
   {
      MESA_FORMAT_A8R8G8B8_SRGB,
      "MESA_FORMAT_A8R8G8B8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 0),
   },
   {
      MESA_FORMAT_B8G8R8X8_SRGB,
      "MESA_FORMAT_B8G8R8X8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 2, 1, 0, 5),
   },
   {
      MESA_FORMAT_X8R8G8B8_SRGB,
      "MESA_FORMAT_X8R8G8B8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 1, 2, 3, 5),
   },
   {
      MESA_FORMAT_R8G8B8A8_SRGB,
      "MESA_FORMAT_R8G8B8A8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_R8G8B8X8_SRGB,
      "MESA_FORMAT_R8G8B8X8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_X8B8G8R8_SRGB,
      "MESA_FORMAT_X8B8G8R8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 4, 3, 2, 1, 5),
   },
   {
      MESA_FORMAT_L8A8_SRGB,
      "MESA_FORMAT_L8A8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_A8L8_SRGB,
      "MESA_FORMAT_A8L8_SRGB",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 1, 1, 1, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 2, 1, 1, 1, 0),
   },
   {
      MESA_FORMAT_L_SRGB8,
      "MESA_FORMAT_L_SRGB8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      8, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_BGR_SRGB8,
      "MESA_FORMAT_BGR_SRGB8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 3,
      { 2, 1, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 1, 3, 2, 1, 0, 5),
   },
   {
      MESA_FORMAT_R9G9B9E5_FLOAT,
      "MESA_FORMAT_R9G9B9E5_FLOAT",
      MESA_FORMAT_LAYOUT_OTHER,
      GL_RGB,
      GL_FLOAT,
      9, 9, 9, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_R11G11B10_FLOAT,
      "MESA_FORMAT_R11G11B10_FLOAT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_FLOAT,
      11, 11, 10, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_Z32_FLOAT_S8X24_UINT,
      "MESA_FORMAT_Z32_FLOAT_S8X24_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_DEPTH_STENCIL,
      GL_FLOAT,
      0, 0, 0, 0,
      0, 0, 32, 8,
      1, 1, 8,
      { 2, 0, 6, 6 },
      0,
   },
   {
      MESA_FORMAT_A_FLOAT16,
      "MESA_FORMAT_A_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_FLOAT,
      0, 0, 0, 16,
      0, 0, 0, 0,
      1, 1, 2,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_FLOAT32,
      "MESA_FORMAT_A_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_FLOAT,
      0, 0, 0, 32,
      0, 0, 0, 0,
      1, 1, 4,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_L_FLOAT16,
      "MESA_FORMAT_L_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_FLOAT,
      0, 0, 0, 0,
      16, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_FLOAT32,
      "MESA_FORMAT_L_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_FLOAT,
      0, 0, 0, 0,
      32, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_LA_FLOAT16,
      "MESA_FORMAT_LA_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_FLOAT,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_FLOAT32,
      "MESA_FORMAT_LA_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_FLOAT,
      0, 0, 0, 32,
      32, 0, 0, 0,
      1, 1, 8,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_I_FLOAT16,
      "MESA_FORMAT_I_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_FLOAT,
      0, 0, 0, 0,
      0, 16, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_FLOAT32,
      "MESA_FORMAT_I_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_FLOAT,
      0, 0, 0, 0,
      0, 32, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_R_FLOAT16,
      "MESA_FORMAT_R_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_FLOAT,
      16, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_FLOAT32,
      "MESA_FORMAT_R_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_FLOAT,
      32, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_RG_FLOAT16,
      "MESA_FORMAT_RG_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_FLOAT,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_FLOAT32,
      "MESA_FORMAT_RG_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_FLOAT,
      32, 32, 0, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RGB_FLOAT16,
      "MESA_FORMAT_RGB_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_FLOAT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 6,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_FLOAT32,
      "MESA_FORMAT_RGB_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_FLOAT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 12,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBA_FLOAT16,
      "MESA_FORMAT_RGBA_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_FLOAT,
      16, 16, 16, 16,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_FLOAT32,
      "MESA_FORMAT_RGBA_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_FLOAT,
      32, 32, 32, 32,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBX_FLOAT16,
      "MESA_FORMAT_RGBX_FLOAT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_FLOAT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 1, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_FLOAT32,
      "MESA_FORMAT_RGBX_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_FLOAT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_Z_FLOAT32,
      "MESA_FORMAT_Z_FLOAT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_DEPTH_COMPONENT,
      GL_FLOAT,
      0, 0, 0, 0,
      0, 0, 32, 0,
      1, 1, 4,
      { 0, 6, 6, 6 },
      MESA_ARRAY_FORMAT(4, 1, 1, 1, 1, 0, 6, 6, 6),
   },
   {
      MESA_FORMAT_A8B8G8R8_UINT,
      "MESA_FORMAT_A8B8G8R8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 3, 2, 1, 0),
   },
   {
      MESA_FORMAT_A8R8G8B8_UINT,
      "MESA_FORMAT_A8R8G8B8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 1, 2, 3, 0),
   },
   {
      MESA_FORMAT_R8G8B8A8_UINT,
      "MESA_FORMAT_R8G8B8A8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_B8G8R8A8_UINT,
      "MESA_FORMAT_B8G8R8A8_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 2, 1, 0, 3),
   },
   {
      MESA_FORMAT_B10G10R10A2_UINT,
      "MESA_FORMAT_B10G10R10A2_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_R10G10B10A2_UINT,
      "MESA_FORMAT_R10G10B10A2_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_A2B10G10R10_UINT,
      "MESA_FORMAT_A2B10G10R10_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_A2R10G10B10_UINT,
      "MESA_FORMAT_A2R10G10B10_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      10, 10, 10, 2,
      0, 0, 0, 0,
      1, 1, 4,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_B5G6R5_UINT,
      "MESA_FORMAT_B5G6R5_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_INT,
      5, 6, 5, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_R5G6B5_UINT,
      "MESA_FORMAT_R5G6B5_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_INT,
      5, 6, 5, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_B2G3R3_UINT,
      "MESA_FORMAT_B2G3R3_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_INT,
      3, 3, 2, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 2, 1, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_R3G3B2_UINT,
      "MESA_FORMAT_R3G3B2_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGB,
      GL_UNSIGNED_INT,
      3, 3, 2, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_A4B4G4R4_UINT,
      "MESA_FORMAT_A4B4G4R4_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_R4G4B4A4_UINT,
      "MESA_FORMAT_R4G4B4A4_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_B4G4R4A4_UINT,
      "MESA_FORMAT_B4G4R4A4_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_A4R4G4B4_UINT,
      "MESA_FORMAT_A4R4G4B4_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      4, 4, 4, 4,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_A1B5G5R5_UINT,
      "MESA_FORMAT_A1B5G5R5_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 3, 2, 1, 0 },
      0,
   },
   {
      MESA_FORMAT_B5G5R5A1_UINT,
      "MESA_FORMAT_B5G5R5A1_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 2, 1, 0, 3 },
      0,
   },
   {
      MESA_FORMAT_A1R5G5B5_UINT,
      "MESA_FORMAT_A1R5G5B5_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 1, 2, 3, 0 },
      0,
   },
   {
      MESA_FORMAT_R5G5B5A1_UINT,
      "MESA_FORMAT_R5G5B5A1_UINT",
      MESA_FORMAT_LAYOUT_PACKED,
      GL_RGBA,
      GL_UNSIGNED_INT,
      5, 5, 5, 1,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_A_UINT8,
      "MESA_FORMAT_A_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 8,
      0, 0, 0, 0,
      1, 1, 1,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_UINT16,
      "MESA_FORMAT_A_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 16,
      0, 0, 0, 0,
      1, 1, 2,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_UINT32,
      "MESA_FORMAT_A_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 32,
      0, 0, 0, 0,
      1, 1, 4,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_SINT8,
      "MESA_FORMAT_A_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_INT,
      0, 0, 0, 8,
      0, 0, 0, 0,
      1, 1, 1,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_SINT16,
      "MESA_FORMAT_A_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_INT,
      0, 0, 0, 16,
      0, 0, 0, 0,
      1, 1, 2,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_A_SINT32,
      "MESA_FORMAT_A_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_ALPHA,
      GL_INT,
      0, 0, 0, 32,
      0, 0, 0, 0,
      1, 1, 4,
      { 4, 4, 4, 0 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 4, 4, 4, 0),
   },
   {
      MESA_FORMAT_I_UINT8,
      "MESA_FORMAT_I_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      0, 8, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_UINT16,
      "MESA_FORMAT_I_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      0, 16, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_UINT32,
      "MESA_FORMAT_I_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      0, 32, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_SINT8,
      "MESA_FORMAT_I_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_INT,
      0, 0, 0, 0,
      0, 8, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_SINT16,
      "MESA_FORMAT_I_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_INT,
      0, 0, 0, 0,
      0, 16, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_I_SINT32,
      "MESA_FORMAT_I_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_INTENSITY,
      GL_INT,
      0, 0, 0, 0,
      0, 32, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 0 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 0, 0, 0),
   },
   {
      MESA_FORMAT_L_UINT8,
      "MESA_FORMAT_L_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      8, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_UINT16,
      "MESA_FORMAT_L_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      16, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_UINT32,
      "MESA_FORMAT_L_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_UNSIGNED_INT,
      0, 0, 0, 0,
      32, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_SINT8,
      "MESA_FORMAT_L_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_INT,
      0, 0, 0, 0,
      8, 0, 0, 0,
      1, 1, 1,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_SINT16,
      "MESA_FORMAT_L_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_INT,
      0, 0, 0, 0,
      16, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_L_SINT32,
      "MESA_FORMAT_L_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE,
      GL_INT,
      0, 0, 0, 0,
      32, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 5 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 0, 0, 5),
   },
   {
      MESA_FORMAT_LA_UINT8,
      "MESA_FORMAT_LA_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_UINT16,
      "MESA_FORMAT_LA_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_UINT32,
      "MESA_FORMAT_LA_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_INT,
      0, 0, 0, 32,
      32, 0, 0, 0,
      1, 1, 8,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_SINT8,
      "MESA_FORMAT_LA_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_INT,
      0, 0, 0, 8,
      8, 0, 0, 0,
      1, 1, 2,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_SINT16,
      "MESA_FORMAT_LA_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_INT,
      0, 0, 0, 16,
      16, 0, 0, 0,
      1, 1, 4,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_LA_SINT32,
      "MESA_FORMAT_LA_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_LUMINANCE_ALPHA,
      GL_INT,
      0, 0, 0, 32,
      32, 0, 0, 0,
      1, 1, 8,
      { 0, 0, 0, 1 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 2, 0, 0, 0, 1),
   },
   {
      MESA_FORMAT_R_UINT8,
      "MESA_FORMAT_R_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_UNSIGNED_INT,
      8, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_UINT16,
      "MESA_FORMAT_R_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_UNSIGNED_INT,
      16, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_UINT32,
      "MESA_FORMAT_R_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_UNSIGNED_INT,
      32, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_SINT8,
      "MESA_FORMAT_R_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_INT,
      8, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 1,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_SINT16,
      "MESA_FORMAT_R_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_INT,
      16, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_R_SINT32,
      "MESA_FORMAT_R_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RED,
      GL_INT,
      32, 0, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 4, 4, 5 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 1, 0, 4, 4, 5),
   },
   {
      MESA_FORMAT_RG_UINT8,
      "MESA_FORMAT_RG_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_UNSIGNED_INT,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_UINT16,
      "MESA_FORMAT_RG_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_UNSIGNED_INT,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_UINT32,
      "MESA_FORMAT_RG_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_UNSIGNED_INT,
      32, 32, 0, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_SINT8,
      "MESA_FORMAT_RG_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_INT,
      8, 8, 0, 0,
      0, 0, 0, 0,
      1, 1, 2,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_SINT16,
      "MESA_FORMAT_RG_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_INT,
      16, 16, 0, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RG_SINT32,
      "MESA_FORMAT_RG_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RG,
      GL_INT,
      32, 32, 0, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 4, 5 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 2, 0, 1, 4, 5),
   },
   {
      MESA_FORMAT_RGB_UINT8,
      "MESA_FORMAT_RGB_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 3,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_UINT16,
      "MESA_FORMAT_RGB_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 6,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_UINT32,
      "MESA_FORMAT_RGB_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 12,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_SINT8,
      "MESA_FORMAT_RGB_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 3,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_SINT16,
      "MESA_FORMAT_RGB_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 6,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_SINT32,
      "MESA_FORMAT_RGB_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 12,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 3, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBA_UINT8,
      "MESA_FORMAT_RGBA_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_UNSIGNED_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_UINT16,
      "MESA_FORMAT_RGBA_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_UNSIGNED_INT,
      16, 16, 16, 16,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_UINT32,
      "MESA_FORMAT_RGBA_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_UNSIGNED_INT,
      32, 32, 32, 32,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_SINT8,
      "MESA_FORMAT_RGBA_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_INT,
      8, 8, 8, 8,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_SINT16,
      "MESA_FORMAT_RGBA_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_INT,
      16, 16, 16, 16,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBA_SINT32,
      "MESA_FORMAT_RGBA_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGBA,
      GL_INT,
      32, 32, 32, 32,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 3 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 4, 0, 1, 2, 3),
   },
   {
      MESA_FORMAT_RGBX_UINT8,
      "MESA_FORMAT_RGBX_UINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 0, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_UINT16,
      "MESA_FORMAT_RGBX_UINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 0, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_UINT32,
      "MESA_FORMAT_RGBX_UINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_UNSIGNED_INT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 0, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_SINT8,
      "MESA_FORMAT_RGBX_SINT8",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      8, 8, 8, 0,
      0, 0, 0, 0,
      1, 1, 4,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(1, 1, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_SINT16,
      "MESA_FORMAT_RGBX_SINT16",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      1, 1, 8,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(2, 1, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGBX_SINT32,
      "MESA_FORMAT_RGBX_SINT32",
      MESA_FORMAT_LAYOUT_ARRAY,
      GL_RGB,
      GL_INT,
      32, 32, 32, 0,
      0, 0, 0, 0,
      1, 1, 16,
      { 0, 1, 2, 5 },
      MESA_ARRAY_FORMAT(4, 1, 0, 0, 4, 0, 1, 2, 5),
   },
   {
      MESA_FORMAT_RGB_DXT1,
      "MESA_FORMAT_RGB_DXT1",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_RGBA_DXT1,
      "MESA_FORMAT_RGBA_DXT1",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_RGBA_DXT3,
      "MESA_FORMAT_RGBA_DXT3",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_RGBA_DXT5,
      "MESA_FORMAT_RGBA_DXT5",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_SRGB_DXT1,
      "MESA_FORMAT_SRGB_DXT1",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_SRGBA_DXT1,
      "MESA_FORMAT_SRGBA_DXT1",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_SRGBA_DXT3,
      "MESA_FORMAT_SRGBA_DXT3",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_SRGBA_DXT5,
      "MESA_FORMAT_SRGBA_DXT5",
      MESA_FORMAT_LAYOUT_S3TC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 4,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_RGB_FXT1,
      "MESA_FORMAT_RGB_FXT1",
      MESA_FORMAT_LAYOUT_FXT1,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 0,
      0, 0, 0, 0,
      8, 4, 16,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_RGBA_FXT1,
      "MESA_FORMAT_RGBA_FXT1",
      MESA_FORMAT_LAYOUT_FXT1,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      4, 4, 4, 1,
      0, 0, 0, 0,
      8, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_R_RGTC1_UNORM,
      "MESA_FORMAT_R_RGTC1_UNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_RED,
      GL_UNSIGNED_NORMALIZED,
      8, 0, 0, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 4, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_R_RGTC1_SNORM,
      "MESA_FORMAT_R_RGTC1_SNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_RED,
      GL_SIGNED_NORMALIZED,
      8, 0, 0, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 4, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_RG_RGTC2_UNORM,
      "MESA_FORMAT_RG_RGTC2_UNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_RG_RGTC2_SNORM,
      "MESA_FORMAT_RG_RGTC2_SNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      8, 8, 0, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_L_LATC1_UNORM,
      "MESA_FORMAT_L_LATC1_UNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_LUMINANCE,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 0,
      8, 0, 0, 0,
      4, 4, 8,
      { 0, 0, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_L_LATC1_SNORM,
      "MESA_FORMAT_L_LATC1_SNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_LUMINANCE,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 0,
      8, 0, 0, 0,
      4, 4, 8,
      { 0, 0, 0, 5 },
      0,
   },
   {
      MESA_FORMAT_LA_LATC2_UNORM,
      "MESA_FORMAT_LA_LATC2_UNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_LUMINANCE_ALPHA,
      GL_UNSIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      4, 4, 16,
      { 0, 0, 0, 1 },
      0,
   },
   {
      MESA_FORMAT_LA_LATC2_SNORM,
      "MESA_FORMAT_LA_LATC2_SNORM",
      MESA_FORMAT_LAYOUT_RGTC,
      GL_LUMINANCE_ALPHA,
      GL_SIGNED_NORMALIZED,
      0, 0, 0, 8,
      8, 0, 0, 0,
      4, 4, 16,
      { 0, 0, 0, 1 },
      0,
   },
   {
      MESA_FORMAT_ETC1_RGB8,
      "MESA_FORMAT_ETC1_RGB8",
      MESA_FORMAT_LAYOUT_ETC1,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_RGB8,
      "MESA_FORMAT_ETC2_RGB8",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_SRGB8,
      "MESA_FORMAT_ETC2_SRGB8",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGB,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_RGBA8_EAC,
      "MESA_FORMAT_ETC2_RGBA8_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_ETC2_SRGB8_ALPHA8_EAC,
      "MESA_FORMAT_ETC2_SRGB8_ALPHA8_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_ETC2_R11_EAC,
      "MESA_FORMAT_ETC2_R11_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RED,
      GL_UNSIGNED_NORMALIZED,
      11, 0, 0, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 4, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_RG11_EAC,
      "MESA_FORMAT_ETC2_RG11_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RG,
      GL_UNSIGNED_NORMALIZED,
      11, 11, 0, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_SIGNED_R11_EAC,
      "MESA_FORMAT_ETC2_SIGNED_R11_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RED,
      GL_SIGNED_NORMALIZED,
      11, 0, 0, 0,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 4, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_SIGNED_RG11_EAC,
      "MESA_FORMAT_ETC2_SIGNED_RG11_EAC",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RG,
      GL_SIGNED_NORMALIZED,
      11, 11, 0, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 4, 5 },
      0,
   },
   {
      MESA_FORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1,
      "MESA_FORMAT_ETC2_RGB8_PUNCHTHROUGH_ALPHA1",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 1,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1,
      "MESA_FORMAT_ETC2_SRGB8_PUNCHTHROUGH_ALPHA1",
      MESA_FORMAT_LAYOUT_ETC2,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 1,
      0, 0, 0, 0,
      4, 4, 8,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_BPTC_RGBA_UNORM,
      "MESA_FORMAT_BPTC_RGBA_UNORM",
      MESA_FORMAT_LAYOUT_BPTC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM,
      "MESA_FORMAT_BPTC_SRGB_ALPHA_UNORM",
      MESA_FORMAT_LAYOUT_BPTC,
      GL_RGBA,
      GL_UNSIGNED_NORMALIZED,
      8, 8, 8, 8,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 3 },
      0,
   },
   {
      MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT,
      "MESA_FORMAT_BPTC_RGB_SIGNED_FLOAT",
      MESA_FORMAT_LAYOUT_BPTC,
      GL_RGB,
      GL_FLOAT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 5 },
      0,
   },
   {
      MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT,
      "MESA_FORMAT_BPTC_RGB_UNSIGNED_FLOAT",
      MESA_FORMAT_LAYOUT_BPTC,
      GL_RGB,
      GL_FLOAT,
      16, 16, 16, 0,
      0, 0, 0, 0,
      4, 4, 16,
      { 0, 1, 2, 5 },
      0,
   },
};
