@@ -2383,8 +2383,8 @@ static bool icl_plane_format_mod_supported(struct drm_plane *_plane,
2383
2383
}
2384
2384
}
2385
2385
2386
- static bool gen12_plane_format_mod_supported (struct drm_plane * _plane ,
2387
- u32 format , u64 modifier )
2386
+ static bool tgl_plane_format_mod_supported (struct drm_plane * _plane ,
2387
+ u32 format , u64 modifier )
2388
2388
{
2389
2389
struct intel_plane * plane = to_intel_plane (_plane );
2390
2390
@@ -2453,13 +2453,13 @@ static const struct drm_plane_funcs icl_plane_funcs = {
2453
2453
.format_mod_supported = icl_plane_format_mod_supported ,
2454
2454
};
2455
2455
2456
- static const struct drm_plane_funcs gen12_plane_funcs = {
2456
+ static const struct drm_plane_funcs tgl_plane_funcs = {
2457
2457
.update_plane = drm_atomic_helper_update_plane ,
2458
2458
.disable_plane = drm_atomic_helper_disable_plane ,
2459
2459
.destroy = intel_plane_destroy ,
2460
2460
.atomic_duplicate_state = intel_plane_duplicate_state ,
2461
2461
.atomic_destroy_state = intel_plane_destroy_state ,
2462
- .format_mod_supported = gen12_plane_format_mod_supported ,
2462
+ .format_mod_supported = tgl_plane_format_mod_supported ,
2463
2463
};
2464
2464
2465
2465
static void
@@ -2501,8 +2501,8 @@ static bool skl_plane_has_rc_ccs(struct drm_i915_private *i915,
2501
2501
(plane_id == PLANE_1 || plane_id == PLANE_2 );
2502
2502
}
2503
2503
2504
- static bool gen12_plane_has_mc_ccs (struct drm_i915_private * i915 ,
2505
- enum plane_id plane_id )
2504
+ static bool tgl_plane_has_mc_ccs (struct drm_i915_private * i915 ,
2505
+ enum plane_id plane_id )
2506
2506
{
2507
2507
if (DISPLAY_VER (i915 ) < 12 )
2508
2508
return false;
@@ -2540,7 +2540,7 @@ static u8 skl_get_plane_caps(struct drm_i915_private *i915,
2540
2540
caps |= INTEL_PLANE_CAP_CCS_RC_CC ;
2541
2541
}
2542
2542
2543
- if (gen12_plane_has_mc_ccs (i915 , plane_id ))
2543
+ if (tgl_plane_has_mc_ccs (i915 , plane_id ))
2544
2544
caps |= INTEL_PLANE_CAP_CCS_MC ;
2545
2545
2546
2546
if (DISPLAY_VER (i915 ) >= 14 && IS_DGFX (i915 ))
@@ -2631,7 +2631,7 @@ skl_universal_plane_create(struct drm_i915_private *dev_priv,
2631
2631
plane_id , & num_formats );
2632
2632
2633
2633
if (DISPLAY_VER (dev_priv ) >= 12 )
2634
- plane_funcs = & gen12_plane_funcs ;
2634
+ plane_funcs = & tgl_plane_funcs ;
2635
2635
else if (DISPLAY_VER (dev_priv ) == 11 )
2636
2636
plane_funcs = & icl_plane_funcs ;
2637
2637
else
0 commit comments