Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5782>
/* More below this, maybe */
} __attribute__((packed));
-/* Format bits for the render target flags */
+/* Format bits for the render target flags. Setting MSAA alone works for on
+ * chip MSAA. Setting MSAA with the LAYERED flag works for MSAA where each
+ * sample is its own image (implements the ES3 spec directly but inefficient on
+ * mobile). */
+#define MALI_MFBD_FORMAT_LAYERED (1 << 0)
#define MALI_MFBD_FORMAT_MSAA (1 << 1)
#define MALI_MFBD_FORMAT_SRGB (1 << 2)
#define FLAG_INFO(flag) { MALI_MFBD_FORMAT_##flag, "MALI_MFBD_FORMAT_" #flag }
static const struct pandecode_flag_info mfbd_fmt_flag_info[] = {
+ FLAG_INFO(LAYERED),
FLAG_INFO(MSAA),
FLAG_INFO(SRGB),
{}