From: Alyssa Rosenzweig Date: Mon, 20 Jul 2020 22:50:29 +0000 (-0400) Subject: gallium/dri2: Support Arm modifiers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22777025d4ac63a8f5909f8da7baa2501a32682f;p=mesa.git gallium/dri2: Support Arm modifiers This is needed to share both Utgard-style tiled and a subset of Arm FrameBuffer Compression (AFBC) tiled framebuffers across processes in Wayland. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Vasily Khoruzhick Tested-by: Icecream95 Part-of: --- diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index 3da3a07cf98..b6d7d039e20 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -850,6 +850,14 @@ dri2_get_modifier_num_planes(uint64_t modifier, int fourcc) case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS: case I915_FORMAT_MOD_Y_TILED_CCS: return 2; + case DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED: + case DRM_FORMAT_MOD_ARM_AFBC( + AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 | + AFBC_FORMAT_MOD_SPARSE | + AFBC_FORMAT_MOD_YTR): + case DRM_FORMAT_MOD_ARM_AFBC( + AFBC_FORMAT_MOD_BLOCK_SIZE_16x16 | + AFBC_FORMAT_MOD_SPARSE): case DRM_FORMAT_MOD_BROADCOM_UIF: case DRM_FORMAT_MOD_BROADCOM_VC4_T_TILED: case DRM_FORMAT_MOD_LINEAR: