For MSAA depth/stencil.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5929>
} else {
if (is_bifrost) {
fbx->zs_block = MALI_BLOCK_UNKNOWN;
- fbx->flags_hi |= 0x4400;
+ fbx->flags_hi |= 0x440;
fbx->flags_lo |= 0x1;
} else {
fbx->zs_block = MALI_BLOCK_TILED;
fb->mfbd_flags ^= 0x100;
fb->mfbd_flags |= 0x200;
} else if (surf->format == PIPE_FORMAT_Z32_FLOAT_S8X24_UINT) {
- fbx->flags_hi |= 0x400;
+ fbx->flags_hi |= 0x40;
fbx->flags_lo |= 0xA;
fb->mfbd_flags ^= 0x100;
fb->mfbd_flags |= 0x201;
*/
/* flags_hi */
-#define MALI_EXTRA_PRESENT (0x10)
+#define MALI_EXTRA_PRESENT (0x1)
/* flags_lo */
#define MALI_EXTRA_ZS (0x4)
unsigned flags_lo : 4;
enum mali_block_format zs_block : 2;
- unsigned flags_hi : 26;
+
+ /* Number of samples in Z/S attachment, MALI_POSITIVE. So zero for
+ * 1-sample (non-MSAA), 0x3 for MSAA 4x, etc */
+ unsigned zs_samples : 4;
+ unsigned flags_hi : 22;
union {
/* Note: AFBC is only allowed for 24/8 combined depth/stencil. */
pandecode_log_cont(",\n");
pandecode_prop("zs_block = %s", pandecode_block_format(fbx->zs_block));
+ pandecode_prop("zs_samples = MALI_POSITIVE(%u)", fbx->zs_samples + 1);
if (fbx->zs_block == MALI_BLOCK_AFBC) {
pandecode_log(".ds_afbc = {\n");