X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fpanfrost%2Futil%2Fpan_lower_framebuffer.h;h=7bca12f561a8e7ebfeaba590655e9da2a8cd8c06;hb=18a767df35f2a71105703a1132ab5a3c1ec27313;hp=b18660eb9b2d8c10a4e5f44a37952cda5afea865;hpb=60d647f9def4b84396fd820fd7a5e6ea7a4f1f0a;p=mesa.git diff --git a/src/panfrost/util/pan_lower_framebuffer.h b/src/panfrost/util/pan_lower_framebuffer.h index b18660eb9b2..7bca12f561a 100644 --- a/src/panfrost/util/pan_lower_framebuffer.h +++ b/src/panfrost/util/pan_lower_framebuffer.h @@ -30,6 +30,16 @@ #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