summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2024-06-26 02:36:26 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-09-12 19:39:39 +0300
commitb43a3c81752ee0c4f28621b0ed4271bd98e219c5 (patch)
treecc512b2fa720f8957f2d9d5ea5c5b30215e28e1a /lib
parent89812ddc736dde99f39eaf3ae40a1b78a650387d (diff)
lib/igt_fb: Extract is_gen12_rc_ccs_cc_modifier()
Extract a helper to identify the clear color compressed modifiers. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_fb.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index d425ad68b..853f6cfe9 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -596,15 +596,20 @@ static bool is_gen12_mc_ccs_modifier(uint64_t modifier)
modifier == I915_FORMAT_MOD_4_TILED_MTL_MC_CCS;
}
+static bool is_gen12_rc_ccs_cc_modifier(uint64_t modifier)
+{
+ return modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ||
+ modifier == I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC ||
+ modifier == I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC;
+}
+
static bool is_gen12_ccs_modifier(uint64_t modifier)
{
return is_gen12_mc_ccs_modifier(modifier) ||
+ is_gen12_rc_ccs_cc_modifier(modifier) ||
modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS ||
- modifier == I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ||
modifier == I915_FORMAT_MOD_4_TILED_DG2_RC_CCS ||
- modifier == I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC ||
- modifier == I915_FORMAT_MOD_4_TILED_MTL_RC_CCS ||
- modifier == I915_FORMAT_MOD_4_TILED_MTL_RC_CCS_CC;
+ modifier == I915_FORMAT_MOD_4_TILED_MTL_RC_CCS;
}
static bool is_ccs_modifier(uint64_t modifier)