PIPE_FORMAT_DXT3_SRGBA , s3tc, 4, 4, 1, x128, , , , xyzw, srgb
PIPE_FORMAT_DXT5_SRGBA , s3tc, 4, 4, 1, x128, , , , xyzw, srgb
+# FXT1 compressed formats
+PIPE_FORMAT_FXT1_RGB , fxt1, 8, 4, 1, x128, , , , xyz1, rgb
+PIPE_FORMAT_FXT1_RGBA , fxt1, 8, 4, 1, x128, , , , xyzw, rgb
+
PIPE_FORMAT_RGTC1_UNORM , rgtc, 4, 4, 1, x64, , , , x001, rgb
PIPE_FORMAT_RGTC1_SNORM , rgtc, 4, 4, 1, x64, , , , x001, rgb
PIPE_FORMAT_RGTC2_UNORM , rgtc, 4, 4, 1, x128, , , , xy01, rgb
u_format_pack.print_channels(format, do_swizzle_array)
print(" %s," % (colorspace_map(format.colorspace),))
access = True
- if format.layout == 'astc' or format.layout == 'atc':
+ if format.layout in ('astc', 'atc', 'fxt1'):
access = False
if format.layout == 'etc' and format.short_name() != 'etc1_rgb8':
access = False
case MESA_FORMAT_ATC_RGBA_INTERPOLATED:
return PIPE_FORMAT_ATC_RGBA_INTERPOLATED;
+ case MESA_FORMAT_RGB_FXT1:
+ return PIPE_FORMAT_FXT1_RGB;
+ case MESA_FORMAT_RGBA_FXT1:
+ return PIPE_FORMAT_FXT1_RGBA;
+
default:
if (0) {
debug_printf("%s(mesa_format=%s) -> NONE\n",
case PIPE_FORMAT_ATC_RGBA_INTERPOLATED:
return MESA_FORMAT_ATC_RGBA_INTERPOLATED;
+ case PIPE_FORMAT_FXT1_RGB:
+ return MESA_FORMAT_RGB_FXT1;
+ case PIPE_FORMAT_FXT1_RGBA:
+ return MESA_FORMAT_RGBA_FXT1;
+
default:
return MESA_FORMAT_NONE;
}