gallium/dri2: Support I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS
authorNanley Chery <nanley.g.chery@intel.com>
Wed, 11 Sep 2019 22:34:46 +0000 (15:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 23:32:29 +0000 (23:32 +0000)
Add a case for this modifier in dri2_get_modifier_num_planes.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5420>

src/gallium/frontends/dri/dri2.c

index fbc9f1115adaff1bebb89b9528cdd0c9d0624e9b..3da3a07cf983213da191b0212911d4648573ea23 100644 (file)
@@ -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: