pan/decode: Identify layered MSAA flag

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5782>
This commit is contained in:
Alyssa Rosenzweig 2020-07-06 18:45:16 -04:00 committed by Marge Bot
parent eba9bcd3c9
commit af8fcfe620
2 changed files with 6 additions and 1 deletions

View File

@ -1673,8 +1673,12 @@ struct mali_single_framebuffer {
/* 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)

View File

@ -244,6 +244,7 @@ static const struct pandecode_flag_info u4_flag_info[] = {
#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),
{}