1// DO NOT EDIT -- AUTOMATICALLY GENERATED 2 3#include "gfx10_format_table.h" 4#include "amdgfxregs.h" 5 6#define FMT(_img_format, ...) { .img_format = V_008F0C_GFX10_FORMAT_##_img_format, ##__VA_ARGS__ } 7 8const struct gfx10_format gfx10_format_table[PIPE_FORMAT_COUNT] = { 9 [PIPE_FORMAT_NONE] = FMT(8_USCALED), 10 [PIPE_FORMAT_B8G8R8A8_UNORM] = FMT(8_8_8_8_UNORM), 11 [PIPE_FORMAT_B8G8R8X8_UNORM] = FMT(8_8_8_8_UNORM), 12 [PIPE_FORMAT_B8G8R8X8_SNORM] = FMT(8_8_8_8_SNORM), 13 [PIPE_FORMAT_B8G8R8X8_UINT] = FMT(8_8_8_8_UINT), 14 [PIPE_FORMAT_B8G8R8X8_SINT] = FMT(8_8_8_8_SINT), 15 [PIPE_FORMAT_A8R8G8B8_UNORM] = FMT(8_8_8_8_UNORM), 16 [PIPE_FORMAT_A8R8G8B8_SNORM] = FMT(8_8_8_8_SNORM), 17 [PIPE_FORMAT_A8R8G8B8_SINT] = FMT(8_8_8_8_SINT), 18 [PIPE_FORMAT_X8R8G8B8_UNORM] = FMT(8_8_8_8_UNORM), 19 [PIPE_FORMAT_X8R8G8B8_SNORM] = FMT(8_8_8_8_SNORM), 20 [PIPE_FORMAT_X8R8G8B8_SINT] = FMT(8_8_8_8_SINT), 21 [PIPE_FORMAT_A8B8G8R8_UNORM] = FMT(8_8_8_8_UNORM), 22 [PIPE_FORMAT_X8B8G8R8_UNORM] = FMT(8_8_8_8_UNORM), 23 [PIPE_FORMAT_R8G8B8X8_UNORM] = FMT(8_8_8_8_UNORM), 24 [PIPE_FORMAT_R5G5B5A1_UNORM] = FMT(1_5_5_5_UNORM), 25 [PIPE_FORMAT_R5G5B5X1_UNORM] = FMT(1_5_5_5_UNORM), 26 [PIPE_FORMAT_B5G5R5X1_UNORM] = FMT(1_5_5_5_UNORM), 27 [PIPE_FORMAT_B5G5R5A1_UNORM] = FMT(1_5_5_5_UNORM), 28 [PIPE_FORMAT_X1B5G5R5_UNORM] = FMT(5_5_5_1_UNORM), 29 [PIPE_FORMAT_A1R5G5B5_UNORM] = FMT(5_5_5_1_UNORM), 30 [PIPE_FORMAT_X1R5G5B5_UNORM] = FMT(5_5_5_1_UNORM), 31 [PIPE_FORMAT_A1B5G5R5_UNORM] = FMT(5_5_5_1_UNORM), 32 [PIPE_FORMAT_R4G4B4A4_UNORM] = FMT(4_4_4_4_UNORM), 33 [PIPE_FORMAT_R4G4B4X4_UNORM] = FMT(4_4_4_4_UNORM), 34 [PIPE_FORMAT_B4G4R4A4_UNORM] = FMT(4_4_4_4_UNORM), 35 [PIPE_FORMAT_B4G4R4X4_UNORM] = FMT(4_4_4_4_UNORM), 36 [PIPE_FORMAT_A4R4G4B4_UNORM] = FMT(4_4_4_4_UNORM), 37 [PIPE_FORMAT_A4B4G4R4_UNORM] = FMT(4_4_4_4_UNORM), 38 [PIPE_FORMAT_R5G6B5_UNORM] = FMT(5_6_5_UNORM), 39 [PIPE_FORMAT_B5G6R5_UNORM] = FMT(5_6_5_UNORM), 40 [PIPE_FORMAT_R10G10B10A2_UNORM] = FMT(2_10_10_10_UNORM), 41 [PIPE_FORMAT_R10G10B10X2_UNORM] = FMT(2_10_10_10_UNORM), 42 [PIPE_FORMAT_B10G10R10A2_UNORM] = FMT(2_10_10_10_UNORM), 43 [PIPE_FORMAT_A2R10G10B10_UNORM] = FMT(10_10_10_2_UNORM), 44 [PIPE_FORMAT_A2B10G10R10_UNORM] = FMT(10_10_10_2_UNORM), 45/* PIPE_FORMAT_R3G3B2_UNORM is not supported */ 46/* PIPE_FORMAT_B2G3R3_UNORM is not supported */ 47 [PIPE_FORMAT_L8_UNORM] = FMT(8_UNORM), 48 [PIPE_FORMAT_A8_UNORM] = FMT(8_UNORM), 49 [PIPE_FORMAT_I8_UNORM] = FMT(8_UNORM), 50/* PIPE_FORMAT_L4A4_UNORM is not supported */ 51 [PIPE_FORMAT_L8A8_UNORM] = FMT(8_8_UNORM), 52 [PIPE_FORMAT_L16_UNORM] = FMT(16_UNORM), 53 [PIPE_FORMAT_A16_UNORM] = FMT(16_UNORM), 54 [PIPE_FORMAT_I16_UNORM] = FMT(16_UNORM), 55 [PIPE_FORMAT_L16A16_UNORM] = FMT(16_16_UNORM), 56 [PIPE_FORMAT_A8_SNORM] = FMT(8_SNORM), 57 [PIPE_FORMAT_L8_SNORM] = FMT(8_SNORM), 58 [PIPE_FORMAT_L8A8_SNORM] = FMT(8_8_SNORM), 59 [PIPE_FORMAT_I8_SNORM] = FMT(8_SNORM), 60 [PIPE_FORMAT_A16_SNORM] = FMT(16_SNORM), 61 [PIPE_FORMAT_L16_SNORM] = FMT(16_SNORM), 62 [PIPE_FORMAT_L16A16_SNORM] = FMT(16_16_SNORM), 63 [PIPE_FORMAT_I16_SNORM] = FMT(16_SNORM), 64 [PIPE_FORMAT_A16_FLOAT] = FMT(16_FLOAT), 65 [PIPE_FORMAT_L16_FLOAT] = FMT(16_FLOAT), 66 [PIPE_FORMAT_L16A16_FLOAT] = FMT(16_16_FLOAT), 67 [PIPE_FORMAT_I16_FLOAT] = FMT(16_FLOAT), 68 [PIPE_FORMAT_A32_FLOAT] = FMT(32_FLOAT), 69 [PIPE_FORMAT_L32_FLOAT] = FMT(32_FLOAT), 70 [PIPE_FORMAT_L32A32_FLOAT] = FMT(32_32_FLOAT), 71 [PIPE_FORMAT_I32_FLOAT] = FMT(32_FLOAT), 72 [PIPE_FORMAT_L8_SRGB] = FMT(8_SRGB), 73 [PIPE_FORMAT_R8_SRGB] = FMT(8_SRGB), 74/* PIPE_FORMAT_L8A8_SRGB is not supported */ 75 [PIPE_FORMAT_R8G8_SRGB] = FMT(8_8_SRGB), 76/* PIPE_FORMAT_R8G8B8_SRGB is not supported */ 77/* PIPE_FORMAT_B8G8R8_SRGB is not supported */ 78 [PIPE_FORMAT_R8G8B8A8_SRGB] = FMT(8_8_8_8_SRGB), 79 [PIPE_FORMAT_A8B8G8R8_SRGB] = FMT(8_8_8_8_SRGB), 80 [PIPE_FORMAT_X8B8G8R8_SRGB] = FMT(8_8_8_8_SRGB), 81 [PIPE_FORMAT_B8G8R8A8_SRGB] = FMT(8_8_8_8_SRGB), 82 [PIPE_FORMAT_B8G8R8X8_SRGB] = FMT(8_8_8_8_SRGB), 83 [PIPE_FORMAT_A8R8G8B8_SRGB] = FMT(8_8_8_8_SRGB), 84 [PIPE_FORMAT_X8R8G8B8_SRGB] = FMT(8_8_8_8_SRGB), 85/* PIPE_FORMAT_R8SG8SB8UX8U_NORM is not supported */ 86/* PIPE_FORMAT_R10SG10SB10SA2U_NORM is not supported */ 87/* PIPE_FORMAT_R5SG5SB6U_NORM is not supported */ 88 [PIPE_FORMAT_S8_UINT] = FMT(8_UINT), 89 [PIPE_FORMAT_Z16_UNORM] = FMT(16_UNORM), 90/* PIPE_FORMAT_Z16_UNORM_S8_UINT is not supported */ 91/* PIPE_FORMAT_Z32_UNORM is not supported */ 92 [PIPE_FORMAT_Z32_FLOAT] = FMT(32_FLOAT), 93 [PIPE_FORMAT_Z24_UNORM_S8_UINT] = FMT(8_24_UNORM), 94 [PIPE_FORMAT_S8_UINT_Z24_UNORM] = FMT(24_8_UNORM), 95 [PIPE_FORMAT_X24S8_UINT] = FMT(8_24_UINT), 96 [PIPE_FORMAT_S8X24_UINT] = FMT(24_8_UINT), 97 [PIPE_FORMAT_Z24X8_UNORM] = FMT(8_24_UNORM), 98 [PIPE_FORMAT_X8Z24_UNORM] = FMT(24_8_UNORM), 99 [PIPE_FORMAT_Z32_FLOAT_S8X24_UINT] = FMT(X24_8_32_FLOAT), 100 [PIPE_FORMAT_X32_S8X24_UINT] = FMT(X24_8_32_UINT), 101 [PIPE_FORMAT_Z24_UNORM_S8_UINT_AS_R8G8B8A8] = FMT(8_8_8_8_UNORM), 102/* PIPE_FORMAT_UYVY is not supported */ 103/* PIPE_FORMAT_YUYV is not supported */ 104/* PIPE_FORMAT_AYUV is not supported */ 105/* PIPE_FORMAT_XYUV is not supported */ 106 [PIPE_FORMAT_R8G8_B8G8_UNORM] = FMT(GB_GR_UNORM), 107 [PIPE_FORMAT_G8R8_G8B8_UNORM] = FMT(BG_RG_UNORM), 108 [PIPE_FORMAT_G8R8_B8R8_UNORM] = FMT(GB_GR_UNORM), 109 [PIPE_FORMAT_R8G8_R8B8_UNORM] = FMT(BG_RG_UNORM), 110 [PIPE_FORMAT_R11G11B10_FLOAT] = FMT(10_11_11_FLOAT), 111 [PIPE_FORMAT_R9G9B9E5_FLOAT] = FMT(5_9_9_9_FLOAT), 112/* PIPE_FORMAT_R1_UNORM is not supported */ 113/* PIPE_FORMAT_R8G8Bx_SNORM is not supported */ 114 [PIPE_FORMAT_DXT1_RGB] = FMT(BC1_UNORM), 115 [PIPE_FORMAT_DXT1_RGBA] = FMT(BC1_UNORM), 116 [PIPE_FORMAT_DXT3_RGBA] = FMT(BC2_UNORM), 117 [PIPE_FORMAT_DXT5_RGBA] = FMT(BC3_UNORM), 118 [PIPE_FORMAT_DXT1_SRGB] = FMT(BC1_SRGB), 119 [PIPE_FORMAT_DXT1_SRGBA] = FMT(BC1_SRGB), 120 [PIPE_FORMAT_DXT3_SRGBA] = FMT(BC2_SRGB), 121 [PIPE_FORMAT_DXT5_SRGBA] = FMT(BC3_SRGB), 122/* PIPE_FORMAT_FXT1_RGB is not supported */ 123/* PIPE_FORMAT_FXT1_RGBA is not supported */ 124 [PIPE_FORMAT_RGTC1_UNORM] = FMT(BC4_UNORM), 125 [PIPE_FORMAT_RGTC1_SNORM] = FMT(BC4_SNORM), 126 [PIPE_FORMAT_RGTC2_UNORM] = FMT(BC5_UNORM), 127 [PIPE_FORMAT_RGTC2_SNORM] = FMT(BC5_SNORM), 128 [PIPE_FORMAT_LATC1_UNORM] = FMT(BC4_UNORM), 129 [PIPE_FORMAT_LATC1_SNORM] = FMT(BC4_SNORM), 130 [PIPE_FORMAT_LATC2_UNORM] = FMT(BC5_UNORM), 131 [PIPE_FORMAT_LATC2_SNORM] = FMT(BC5_SNORM), 132/* PIPE_FORMAT_ETC1_RGB8 is not supported */ 133/* PIPE_FORMAT_ETC2_RGB8 is not supported */ 134/* PIPE_FORMAT_ETC2_SRGB8 is not supported */ 135/* PIPE_FORMAT_ETC2_RGB8A1 is not supported */ 136/* PIPE_FORMAT_ETC2_SRGB8A1 is not supported */ 137/* PIPE_FORMAT_ETC2_RGBA8 is not supported */ 138/* PIPE_FORMAT_ETC2_SRGBA8 is not supported */ 139/* PIPE_FORMAT_ETC2_R11_UNORM is not supported */ 140/* PIPE_FORMAT_ETC2_R11_SNORM is not supported */ 141/* PIPE_FORMAT_ETC2_RG11_UNORM is not supported */ 142/* PIPE_FORMAT_ETC2_RG11_SNORM is not supported */ 143 [PIPE_FORMAT_BPTC_RGBA_UNORM] = FMT(BC7_UNORM), 144 [PIPE_FORMAT_BPTC_SRGBA] = FMT(BC7_SRGB), 145 [PIPE_FORMAT_BPTC_RGB_FLOAT] = FMT(BC6_SFLOAT), 146 [PIPE_FORMAT_BPTC_RGB_UFLOAT] = FMT(BC6_UFLOAT), 147/* PIPE_FORMAT_ASTC_4x4 is not supported */ 148/* PIPE_FORMAT_ASTC_5x4 is not supported */ 149/* PIPE_FORMAT_ASTC_5x5 is not supported */ 150/* PIPE_FORMAT_ASTC_6x5 is not supported */ 151/* PIPE_FORMAT_ASTC_6x6 is not supported */ 152/* PIPE_FORMAT_ASTC_8x5 is not supported */ 153/* PIPE_FORMAT_ASTC_8x6 is not supported */ 154/* PIPE_FORMAT_ASTC_8x8 is not supported */ 155/* PIPE_FORMAT_ASTC_10x5 is not supported */ 156/* PIPE_FORMAT_ASTC_10x6 is not supported */ 157/* PIPE_FORMAT_ASTC_10x8 is not supported */ 158/* PIPE_FORMAT_ASTC_10x10 is not supported */ 159/* PIPE_FORMAT_ASTC_12x10 is not supported */ 160/* PIPE_FORMAT_ASTC_12x12 is not supported */ 161/* PIPE_FORMAT_ASTC_4x4_SRGB is not supported */ 162/* PIPE_FORMAT_ASTC_5x4_SRGB is not supported */ 163/* PIPE_FORMAT_ASTC_5x5_SRGB is not supported */ 164/* PIPE_FORMAT_ASTC_6x5_SRGB is not supported */ 165/* PIPE_FORMAT_ASTC_6x6_SRGB is not supported */ 166/* PIPE_FORMAT_ASTC_8x5_SRGB is not supported */ 167/* PIPE_FORMAT_ASTC_8x6_SRGB is not supported */ 168/* PIPE_FORMAT_ASTC_8x8_SRGB is not supported */ 169/* PIPE_FORMAT_ASTC_10x5_SRGB is not supported */ 170/* PIPE_FORMAT_ASTC_10x6_SRGB is not supported */ 171/* PIPE_FORMAT_ASTC_10x8_SRGB is not supported */ 172/* PIPE_FORMAT_ASTC_10x10_SRGB is not supported */ 173/* PIPE_FORMAT_ASTC_12x10_SRGB is not supported */ 174/* PIPE_FORMAT_ASTC_12x12_SRGB is not supported */ 175/* PIPE_FORMAT_ASTC_3x3x3 is not supported */ 176/* PIPE_FORMAT_ASTC_4x3x3 is not supported */ 177/* PIPE_FORMAT_ASTC_4x4x3 is not supported */ 178/* PIPE_FORMAT_ASTC_4x4x4 is not supported */ 179/* PIPE_FORMAT_ASTC_5x4x4 is not supported */ 180/* PIPE_FORMAT_ASTC_5x5x4 is not supported */ 181/* PIPE_FORMAT_ASTC_5x5x5 is not supported */ 182/* PIPE_FORMAT_ASTC_6x5x5 is not supported */ 183/* PIPE_FORMAT_ASTC_6x6x5 is not supported */ 184/* PIPE_FORMAT_ASTC_6x6x6 is not supported */ 185/* PIPE_FORMAT_ASTC_3x3x3_SRGB is not supported */ 186/* PIPE_FORMAT_ASTC_4x3x3_SRGB is not supported */ 187/* PIPE_FORMAT_ASTC_4x4x3_SRGB is not supported */ 188/* PIPE_FORMAT_ASTC_4x4x4_SRGB is not supported */ 189/* PIPE_FORMAT_ASTC_5x4x4_SRGB is not supported */ 190/* PIPE_FORMAT_ASTC_5x5x4_SRGB is not supported */ 191/* PIPE_FORMAT_ASTC_5x5x5_SRGB is not supported */ 192/* PIPE_FORMAT_ASTC_6x5x5_SRGB is not supported */ 193/* PIPE_FORMAT_ASTC_6x6x5_SRGB is not supported */ 194/* PIPE_FORMAT_ASTC_6x6x6_SRGB is not supported */ 195/* PIPE_FORMAT_ATC_RGB is not supported */ 196/* PIPE_FORMAT_ATC_RGBA_EXPLICIT is not supported */ 197/* PIPE_FORMAT_ATC_RGBA_INTERPOLATED is not supported */ 198 [PIPE_FORMAT_R64_FLOAT] = FMT(32_32_FLOAT, .buffers_only = 1), 199 [PIPE_FORMAT_R64G64_FLOAT] = FMT(32_32_32_32_FLOAT, .buffers_only = 1), 200 [PIPE_FORMAT_R64G64B64_FLOAT] = FMT(32_32_FLOAT, .buffers_only = 1), 201 [PIPE_FORMAT_R64G64B64A64_FLOAT] = FMT(32_32_32_32_FLOAT, .buffers_only = 1), 202 [PIPE_FORMAT_R32_FLOAT] = FMT(32_FLOAT), 203 [PIPE_FORMAT_R32G32_FLOAT] = FMT(32_32_FLOAT), 204 [PIPE_FORMAT_R32G32B32_FLOAT] = FMT(32_32_32_FLOAT, .buffers_only = 1), 205 [PIPE_FORMAT_R32G32B32A32_FLOAT] = FMT(32_32_32_32_FLOAT), 206 [PIPE_FORMAT_R32_UNORM] = FMT(32_UINT, .buffers_only = 1), 207 [PIPE_FORMAT_R32G32_UNORM] = FMT(32_32_UINT, .buffers_only = 1), 208 [PIPE_FORMAT_R32G32B32_UNORM] = FMT(32_32_32_UINT, .buffers_only = 1), 209 [PIPE_FORMAT_R32G32B32A32_UNORM] = FMT(32_32_32_32_UINT, .buffers_only = 1), 210 [PIPE_FORMAT_R32_USCALED] = FMT(32_UINT, .buffers_only = 1), 211 [PIPE_FORMAT_R32G32_USCALED] = FMT(32_32_UINT, .buffers_only = 1), 212 [PIPE_FORMAT_R32G32B32_USCALED] = FMT(32_32_32_UINT, .buffers_only = 1), 213 [PIPE_FORMAT_R32G32B32A32_USCALED] = FMT(32_32_32_32_UINT, .buffers_only = 1), 214 [PIPE_FORMAT_R32_SNORM] = FMT(32_SINT, .buffers_only = 1), 215 [PIPE_FORMAT_R32G32_SNORM] = FMT(32_32_SINT, .buffers_only = 1), 216 [PIPE_FORMAT_R32G32B32_SNORM] = FMT(32_32_32_SINT, .buffers_only = 1), 217 [PIPE_FORMAT_R32G32B32A32_SNORM] = FMT(32_32_32_32_SINT, .buffers_only = 1), 218 [PIPE_FORMAT_R32_SSCALED] = FMT(32_SINT, .buffers_only = 1), 219 [PIPE_FORMAT_R32G32_SSCALED] = FMT(32_32_SINT, .buffers_only = 1), 220 [PIPE_FORMAT_R32G32B32_SSCALED] = FMT(32_32_32_SINT, .buffers_only = 1), 221 [PIPE_FORMAT_R32G32B32A32_SSCALED] = FMT(32_32_32_32_SINT, .buffers_only = 1), 222 [PIPE_FORMAT_R16_FLOAT] = FMT(16_FLOAT), 223 [PIPE_FORMAT_R16G16_FLOAT] = FMT(16_16_FLOAT), 224 [PIPE_FORMAT_R16G16B16_FLOAT] = FMT(16_FLOAT, .buffers_only = 1), 225 [PIPE_FORMAT_R16G16B16A16_FLOAT] = FMT(16_16_16_16_FLOAT), 226 [PIPE_FORMAT_R16_UNORM] = FMT(16_UNORM), 227 [PIPE_FORMAT_R16G16_UNORM] = FMT(16_16_UNORM), 228 [PIPE_FORMAT_R16G16B16_UNORM] = FMT(16_UNORM, .buffers_only = 1), 229 [PIPE_FORMAT_R16G16B16A16_UNORM] = FMT(16_16_16_16_UNORM), 230 [PIPE_FORMAT_R16_USCALED] = FMT(16_USCALED), 231 [PIPE_FORMAT_R16G16_USCALED] = FMT(16_16_USCALED), 232 [PIPE_FORMAT_R16G16B16_USCALED] = FMT(16_USCALED, .buffers_only = 1), 233 [PIPE_FORMAT_R16G16B16A16_USCALED] = FMT(16_16_16_16_USCALED), 234 [PIPE_FORMAT_R16_SNORM] = FMT(16_SNORM), 235 [PIPE_FORMAT_R16G16_SNORM] = FMT(16_16_SNORM), 236 [PIPE_FORMAT_R16G16B16_SNORM] = FMT(16_SNORM, .buffers_only = 1), 237 [PIPE_FORMAT_R16G16B16A16_SNORM] = FMT(16_16_16_16_SNORM), 238 [PIPE_FORMAT_R16_SSCALED] = FMT(16_SSCALED), 239 [PIPE_FORMAT_R16G16_SSCALED] = FMT(16_16_SSCALED), 240 [PIPE_FORMAT_R16G16B16_SSCALED] = FMT(16_SSCALED, .buffers_only = 1), 241 [PIPE_FORMAT_R16G16B16A16_SSCALED] = FMT(16_16_16_16_SSCALED), 242 [PIPE_FORMAT_R8_UNORM] = FMT(8_UNORM), 243 [PIPE_FORMAT_R8G8_UNORM] = FMT(8_8_UNORM), 244 [PIPE_FORMAT_R8G8B8_UNORM] = FMT(8_UNORM, .buffers_only = 1), 245 [PIPE_FORMAT_B8G8R8_UNORM] = FMT(8_UNORM, .buffers_only = 1), 246 [PIPE_FORMAT_R8G8B8A8_UNORM] = FMT(8_8_8_8_UNORM), 247 [PIPE_FORMAT_R8_USCALED] = FMT(8_USCALED), 248 [PIPE_FORMAT_R8G8_USCALED] = FMT(8_8_USCALED), 249 [PIPE_FORMAT_R8G8B8_USCALED] = FMT(8_USCALED, .buffers_only = 1), 250 [PIPE_FORMAT_B8G8R8_USCALED] = FMT(8_USCALED, .buffers_only = 1), 251 [PIPE_FORMAT_R8G8B8A8_USCALED] = FMT(8_8_8_8_USCALED), 252 [PIPE_FORMAT_B8G8R8A8_USCALED] = FMT(8_8_8_8_USCALED), 253 [PIPE_FORMAT_A8B8G8R8_USCALED] = FMT(8_8_8_8_USCALED), 254 [PIPE_FORMAT_R8_SNORM] = FMT(8_SNORM), 255 [PIPE_FORMAT_R8G8_SNORM] = FMT(8_8_SNORM), 256 [PIPE_FORMAT_R8G8B8_SNORM] = FMT(8_SNORM, .buffers_only = 1), 257 [PIPE_FORMAT_B8G8R8_SNORM] = FMT(8_SNORM, .buffers_only = 1), 258 [PIPE_FORMAT_R8G8B8A8_SNORM] = FMT(8_8_8_8_SNORM), 259 [PIPE_FORMAT_B8G8R8A8_SNORM] = FMT(8_8_8_8_SNORM), 260 [PIPE_FORMAT_R8_SSCALED] = FMT(8_SSCALED), 261 [PIPE_FORMAT_R8G8_SSCALED] = FMT(8_8_SSCALED), 262 [PIPE_FORMAT_R8G8B8_SSCALED] = FMT(8_SSCALED, .buffers_only = 1), 263 [PIPE_FORMAT_B8G8R8_SSCALED] = FMT(8_SSCALED, .buffers_only = 1), 264 [PIPE_FORMAT_R8G8B8A8_SSCALED] = FMT(8_8_8_8_SSCALED), 265 [PIPE_FORMAT_B8G8R8A8_SSCALED] = FMT(8_8_8_8_SSCALED), 266 [PIPE_FORMAT_A8B8G8R8_SSCALED] = FMT(8_8_8_8_SSCALED), 267 [PIPE_FORMAT_R32_FIXED] = FMT(32_SINT, .buffers_only = 1), 268 [PIPE_FORMAT_R32G32_FIXED] = FMT(32_32_SINT, .buffers_only = 1), 269 [PIPE_FORMAT_R32G32B32_FIXED] = FMT(32_32_32_SINT, .buffers_only = 1), 270 [PIPE_FORMAT_R32G32B32A32_FIXED] = FMT(32_32_32_32_SINT, .buffers_only = 1), 271 [PIPE_FORMAT_R10G10B10X2_USCALED] = FMT(2_10_10_10_USCALED), 272 [PIPE_FORMAT_R10G10B10X2_SNORM] = FMT(2_10_10_10_SNORM), 273/* PIPE_FORMAT_YV12 is not supported */ 274/* PIPE_FORMAT_YV16 is not supported */ 275/* PIPE_FORMAT_IYUV is not supported */ 276/* PIPE_FORMAT_NV12 is not supported */ 277/* PIPE_FORMAT_NV21 is not supported */ 278/* PIPE_FORMAT_R8_G8B8_420_UNORM is not supported */ 279/* PIPE_FORMAT_R8_G8_B8_420_UNORM is not supported */ 280/* PIPE_FORMAT_Y8_U8_V8_422_UNORM is not supported */ 281/* PIPE_FORMAT_Y8_U8V8_422_UNORM is not supported */ 282/* PIPE_FORMAT_Y8_U8_V8_444_UNORM is not supported */ 283/* PIPE_FORMAT_Y16_U16_V16_420_UNORM is not supported */ 284/* PIPE_FORMAT_Y16_U16_V16_422_UNORM is not supported */ 285/* PIPE_FORMAT_Y16_U16V16_422_UNORM is not supported */ 286/* PIPE_FORMAT_Y16_U16_V16_444_UNORM is not supported */ 287/* PIPE_FORMAT_P010 is not supported */ 288/* PIPE_FORMAT_P012 is not supported */ 289/* PIPE_FORMAT_P016 is not supported */ 290/* PIPE_FORMAT_Y210 is not supported */ 291/* PIPE_FORMAT_Y212 is not supported */ 292/* PIPE_FORMAT_Y216 is not supported */ 293/* PIPE_FORMAT_Y410 is not supported */ 294/* PIPE_FORMAT_Y412 is not supported */ 295/* PIPE_FORMAT_Y416 is not supported */ 296/* PIPE_FORMAT_A4R4_UNORM is not supported */ 297/* PIPE_FORMAT_R4A4_UNORM is not supported */ 298 [PIPE_FORMAT_R8A8_UNORM] = FMT(8_8_UNORM), 299 [PIPE_FORMAT_A8R8_UNORM] = FMT(8_8_UNORM), 300 [PIPE_FORMAT_R10G10B10A2_USCALED] = FMT(2_10_10_10_USCALED), 301 [PIPE_FORMAT_R10G10B10A2_SSCALED] = FMT(2_10_10_10_SSCALED), 302 [PIPE_FORMAT_R10G10B10A2_SNORM] = FMT(2_10_10_10_SNORM), 303 [PIPE_FORMAT_B10G10R10A2_USCALED] = FMT(2_10_10_10_USCALED), 304 [PIPE_FORMAT_B10G10R10A2_SSCALED] = FMT(2_10_10_10_SSCALED), 305 [PIPE_FORMAT_B10G10R10A2_SNORM] = FMT(2_10_10_10_SNORM), 306 [PIPE_FORMAT_R8_UINT] = FMT(8_UINT), 307 [PIPE_FORMAT_R8G8_UINT] = FMT(8_8_UINT), 308 [PIPE_FORMAT_R8G8B8_UINT] = FMT(8_UINT, .buffers_only = 1), 309 [PIPE_FORMAT_R8G8B8A8_UINT] = FMT(8_8_8_8_UINT), 310 [PIPE_FORMAT_R8_SINT] = FMT(8_SINT), 311 [PIPE_FORMAT_R8G8_SINT] = FMT(8_8_SINT), 312 [PIPE_FORMAT_R8G8B8_SINT] = FMT(8_SINT, .buffers_only = 1), 313 [PIPE_FORMAT_R8G8B8A8_SINT] = FMT(8_8_8_8_SINT), 314 [PIPE_FORMAT_R16_UINT] = FMT(16_UINT), 315 [PIPE_FORMAT_R16G16_UINT] = FMT(16_16_UINT), 316 [PIPE_FORMAT_R16G16B16_UINT] = FMT(16_UINT, .buffers_only = 1), 317 [PIPE_FORMAT_R16G16B16A16_UINT] = FMT(16_16_16_16_UINT), 318 [PIPE_FORMAT_R16_SINT] = FMT(16_SINT), 319 [PIPE_FORMAT_R16G16_SINT] = FMT(16_16_SINT), 320 [PIPE_FORMAT_R16G16B16_SINT] = FMT(16_SINT, .buffers_only = 1), 321 [PIPE_FORMAT_R16G16B16A16_SINT] = FMT(16_16_16_16_SINT), 322 [PIPE_FORMAT_R32_UINT] = FMT(32_UINT), 323 [PIPE_FORMAT_R32G32_UINT] = FMT(32_32_UINT), 324 [PIPE_FORMAT_R32G32B32_UINT] = FMT(32_32_32_UINT, .buffers_only = 1), 325 [PIPE_FORMAT_R32G32B32A32_UINT] = FMT(32_32_32_32_UINT), 326 [PIPE_FORMAT_R32_SINT] = FMT(32_SINT), 327 [PIPE_FORMAT_R32G32_SINT] = FMT(32_32_SINT), 328 [PIPE_FORMAT_R32G32B32_SINT] = FMT(32_32_32_SINT, .buffers_only = 1), 329 [PIPE_FORMAT_R32G32B32A32_SINT] = FMT(32_32_32_32_SINT), 330 [PIPE_FORMAT_R64_UINT] = FMT(32_32_UINT), 331/* PIPE_FORMAT_R64G64_UINT is not supported */ 332/* PIPE_FORMAT_R64G64B64_UINT is not supported */ 333/* PIPE_FORMAT_R64G64B64A64_UINT is not supported */ 334 [PIPE_FORMAT_R64_SINT] = FMT(32_32_SINT), 335 [PIPE_FORMAT_A8_UINT] = FMT(8_UINT), 336 [PIPE_FORMAT_I8_UINT] = FMT(8_UINT), 337 [PIPE_FORMAT_L8_UINT] = FMT(8_UINT), 338 [PIPE_FORMAT_L8A8_UINT] = FMT(8_8_UINT), 339 [PIPE_FORMAT_A8_SINT] = FMT(8_SINT), 340 [PIPE_FORMAT_I8_SINT] = FMT(8_SINT), 341 [PIPE_FORMAT_L8_SINT] = FMT(8_SINT), 342 [PIPE_FORMAT_L8A8_SINT] = FMT(8_8_SINT), 343 [PIPE_FORMAT_A16_UINT] = FMT(16_UINT), 344 [PIPE_FORMAT_I16_UINT] = FMT(16_UINT), 345 [PIPE_FORMAT_L16_UINT] = FMT(16_UINT), 346 [PIPE_FORMAT_L16A16_UINT] = FMT(16_16_UINT), 347 [PIPE_FORMAT_A16_SINT] = FMT(16_SINT), 348 [PIPE_FORMAT_I16_SINT] = FMT(16_SINT), 349 [PIPE_FORMAT_L16_SINT] = FMT(16_SINT), 350 [PIPE_FORMAT_L16A16_SINT] = FMT(16_16_SINT), 351 [PIPE_FORMAT_A32_UINT] = FMT(32_UINT), 352 [PIPE_FORMAT_I32_UINT] = FMT(32_UINT), 353 [PIPE_FORMAT_L32_UINT] = FMT(32_UINT), 354 [PIPE_FORMAT_L32A32_UINT] = FMT(32_32_UINT), 355 [PIPE_FORMAT_A32_SINT] = FMT(32_SINT), 356 [PIPE_FORMAT_I32_SINT] = FMT(32_SINT), 357 [PIPE_FORMAT_L32_SINT] = FMT(32_SINT), 358 [PIPE_FORMAT_L32A32_SINT] = FMT(32_32_SINT), 359 [PIPE_FORMAT_B8G8R8_UINT] = FMT(8_UINT, .buffers_only = 1), 360 [PIPE_FORMAT_B8G8R8A8_UINT] = FMT(8_8_8_8_UINT), 361 [PIPE_FORMAT_B8G8R8_SINT] = FMT(8_SINT, .buffers_only = 1), 362 [PIPE_FORMAT_B8G8R8A8_SINT] = FMT(8_8_8_8_SINT), 363 [PIPE_FORMAT_A8R8G8B8_UINT] = FMT(8_8_8_8_UINT), 364 [PIPE_FORMAT_A8B8G8R8_UINT] = FMT(8_8_8_8_UINT), 365 [PIPE_FORMAT_A2R10G10B10_UINT] = FMT(10_10_10_2_UINT), 366 [PIPE_FORMAT_A2B10G10R10_UINT] = FMT(10_10_10_2_UINT), 367 [PIPE_FORMAT_B10G10R10A2_UINT] = FMT(2_10_10_10_UINT), 368 [PIPE_FORMAT_B10G10R10A2_SINT] = FMT(2_10_10_10_SINT), 369/* PIPE_FORMAT_R5G6B5_UINT is not supported */ 370/* PIPE_FORMAT_B5G6R5_UINT is not supported */ 371/* PIPE_FORMAT_R3G3B2_UINT is not supported */ 372/* PIPE_FORMAT_B2G3R3_UINT is not supported */ 373/* PIPE_FORMAT_R4G4B4A4_UINT is not supported */ 374/* PIPE_FORMAT_B4G4R4A4_UINT is not supported */ 375/* PIPE_FORMAT_A4R4G4B4_UINT is not supported */ 376/* PIPE_FORMAT_A4B4G4R4_UINT is not supported */ 377/* PIPE_FORMAT_A1R5G5B5_UINT is not supported */ 378/* PIPE_FORMAT_A1B5G5R5_UINT is not supported */ 379/* PIPE_FORMAT_R5G5B5A1_UINT is not supported */ 380/* PIPE_FORMAT_B5G5R5A1_UINT is not supported */ 381 [PIPE_FORMAT_R8G8B8X8_SNORM] = FMT(8_8_8_8_SNORM), 382 [PIPE_FORMAT_R8G8B8X8_SRGB] = FMT(8_8_8_8_SRGB), 383 [PIPE_FORMAT_R8G8B8X8_UINT] = FMT(8_8_8_8_UINT), 384 [PIPE_FORMAT_R8G8B8X8_SINT] = FMT(8_8_8_8_SINT), 385 [PIPE_FORMAT_B10G10R10X2_UNORM] = FMT(2_10_10_10_UNORM), 386 [PIPE_FORMAT_B10G10R10X2_SNORM] = FMT(2_10_10_10_SNORM), 387 [PIPE_FORMAT_R16G16B16X16_UNORM] = FMT(16_16_16_16_UNORM), 388 [PIPE_FORMAT_R16G16B16X16_SNORM] = FMT(16_16_16_16_SNORM), 389 [PIPE_FORMAT_R16G16B16X16_FLOAT] = FMT(16_16_16_16_FLOAT), 390 [PIPE_FORMAT_R16G16B16X16_UINT] = FMT(16_16_16_16_UINT), 391 [PIPE_FORMAT_R16G16B16X16_SINT] = FMT(16_16_16_16_SINT), 392 [PIPE_FORMAT_R32G32B32X32_FLOAT] = FMT(32_32_32_32_FLOAT), 393 [PIPE_FORMAT_R32G32B32X32_UINT] = FMT(32_32_32_32_UINT), 394 [PIPE_FORMAT_R32G32B32X32_SINT] = FMT(32_32_32_32_SINT), 395 [PIPE_FORMAT_R8A8_SNORM] = FMT(8_8_SNORM), 396 [PIPE_FORMAT_R16A16_UNORM] = FMT(16_16_UNORM), 397 [PIPE_FORMAT_R16A16_SNORM] = FMT(16_16_SNORM), 398 [PIPE_FORMAT_R16A16_FLOAT] = FMT(16_16_FLOAT), 399 [PIPE_FORMAT_R32A32_FLOAT] = FMT(32_32_FLOAT), 400 [PIPE_FORMAT_R8A8_UINT] = FMT(8_8_UINT), 401 [PIPE_FORMAT_R8A8_SINT] = FMT(8_8_SINT), 402 [PIPE_FORMAT_R16A16_UINT] = FMT(16_16_UINT), 403 [PIPE_FORMAT_R16A16_SINT] = FMT(16_16_SINT), 404 [PIPE_FORMAT_R32A32_UINT] = FMT(32_32_UINT), 405 [PIPE_FORMAT_R32A32_SINT] = FMT(32_32_SINT), 406 [PIPE_FORMAT_R10G10B10A2_UINT] = FMT(2_10_10_10_UINT), 407 [PIPE_FORMAT_R10G10B10A2_SINT] = FMT(2_10_10_10_SINT), 408/* PIPE_FORMAT_B5G6R5_SRGB is not supported */ 409/* PIPE_FORMAT_R5G6B5_SRGB is not supported */ 410 [PIPE_FORMAT_G8R8_UNORM] = FMT(8_8_UNORM), 411 [PIPE_FORMAT_G8R8_SNORM] = FMT(8_8_SNORM), 412 [PIPE_FORMAT_G8R8_SINT] = FMT(8_8_SINT), 413 [PIPE_FORMAT_G16R16_UNORM] = FMT(16_16_UNORM), 414 [PIPE_FORMAT_G16R16_SNORM] = FMT(16_16_SNORM), 415 [PIPE_FORMAT_A8B8G8R8_SNORM] = FMT(8_8_8_8_SNORM), 416 [PIPE_FORMAT_A8B8G8R8_SINT] = FMT(8_8_8_8_SINT), 417 [PIPE_FORMAT_X8B8G8R8_SNORM] = FMT(8_8_8_8_SNORM), 418 [PIPE_FORMAT_X8B8G8R8_SINT] = FMT(8_8_8_8_SINT), 419}; 420 421