PIPE_FORMAT_ASTC_12x10_SRGB , astc,12,10, x128, , , , xyzw, srgb
PIPE_FORMAT_ASTC_12x12_SRGB , astc,12,12, x128, , , , xyzw, srgb
+PIPE_FORMAT_ATC_RGB , atc, 4, 4, x64, , , , xyz1, rgb
+PIPE_FORMAT_ATC_RGBA_EXPLICIT , atc, 4, 4, x128, , , , xyzw, rgb
+PIPE_FORMAT_ATC_RGBA_INTERPOLATED , atc, 4, 4, x128, , , , xyzw, rgb
+
# Straightforward D3D10-like formats (also used for
# vertex buffer element description)
#
*/
UTIL_FORMAT_LAYOUT_ASTC = 8,
+ /**
+ * ATC
+ */
+ UTIL_FORMAT_LAYOUT_ATC = 9,
+
/**
* Everything else that doesn't fit in any of the above layouts.
*/
- UTIL_FORMAT_LAYOUT_OTHER = 9
+ UTIL_FORMAT_LAYOUT_OTHER = 10
};
case UTIL_FORMAT_LAYOUT_ETC:
case UTIL_FORMAT_LAYOUT_BPTC:
case UTIL_FORMAT_LAYOUT_ASTC:
+ case UTIL_FORMAT_LAYOUT_ATC:
/* XXX add other formats in the future */
return TRUE;
default:
def is_format_hand_written(format):
- return format.layout in ('s3tc', 'rgtc', 'etc', 'bptc', 'astc', 'subsampled', 'other') or format.colorspace == ZS
+ return format.layout in ('s3tc', 'rgtc', 'etc', 'bptc', 'astc', 'atc', 'subsampled', 'other') or format.colorspace == ZS
def generate(formats):
u_format_pack.print_channels(format, do_swizzle_array)
print(" %s," % (colorspace_map(format.colorspace),))
access = True
- if format.layout == 'astc':
+ if format.layout == 'astc' or format.layout == 'atc':
access = False
if format.layout == 'etc' and format.short_name() != 'etc1_rgb8':
access = False
PIPE_FORMAT_A8B8G8R8_SINT = 315,
PIPE_FORMAT_X8B8G8R8_SINT = 316,
+ PIPE_FORMAT_ATC_RGB = 317,
+ PIPE_FORMAT_ATC_RGBA_EXPLICIT = 318,
+ PIPE_FORMAT_ATC_RGBA_INTERPOLATED = 319,
+
PIPE_FORMAT_COUNT
};