From 4ed6e43988e2356265e5f0fdc06f0bf8b59ad475 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Wed, 11 Sep 2019 15:34:46 -0700 Subject: [PATCH] gallium/dri2: Support I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS Add a case for this modifier in dri2_get_modifier_num_planes. Reviewed-by: Sagar Ghuge Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/frontends/dri/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c index fbc9f1115ad..3da3a07cf98 100644 --- a/src/gallium/frontends/dri/dri2.c +++ b/src/gallium/frontends/dri/dri2.c @@ -847,6 +847,7 @@ dri2_get_modifier_num_planes(uint64_t modifier, int fourcc) return 0; switch (modifier) { + case I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS: case I915_FORMAT_MOD_Y_TILED_CCS: return 2; case DRM_FORMAT_MOD_BROADCOM_UIF: -- 2.30.2