panfrost: Determine load classes for formats
[mesa.git] / src / panfrost / util / pan_lower_framebuffer.h
index b18660eb9b2d8c10a4e5f44a37952cda5afea865..7bca12f561a8e7ebfeaba590655e9da2a8cd8c06 100644 (file)
 #include "compiler/nir/nir.h"
 #include "util/format/u_format.h"
 
+/* NATIVE formats can use a typed load/store. PACK formats cannot but can use a
+ * typed pack/unpack instruction. SOFTWARE formats are lowered */
+
+enum pan_format_class {
+        PAN_FORMAT_NATIVE,
+        PAN_FORMAT_PACK,
+        PAN_FORMAT_SOFTWARE
+};
+
 nir_alu_type pan_unpacked_type_for_format(const struct util_format_description *desc);
+enum pan_format_class pan_format_class_load(const struct util_format_description *desc, unsigned quirks);
 
 #endif