Skip to content

Commit b6e742f

Browse files
Damien Lespiaudanvet
authored andcommitted
drm/i915: Be optimistic about future display engines having 7 WM levels
As we're doing throughout the code, being optimistic that platform n + 1 will mostly reuse the same things as platform n allows us to minimize the enabling work needed. This time, it's about the number of WM levels. Signed-off-by: Damien Lespiau <[email protected]> Signed-off-by: Daniel Vetter <[email protected]>
1 parent 49d6fa2 commit b6e742f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ static void intel_fixup_cur_wm_latency(struct drm_device *dev, uint16_t wm[5])
19461946
int ilk_wm_max_level(const struct drm_device *dev)
19471947
{
19481948
/* how many WM levels are we expecting */
1949-
if (IS_GEN9(dev))
1949+
if (INTEL_INFO(dev)->gen >= 9)
19501950
return 7;
19511951
else if (IS_HASWELL(dev) || IS_BROADWELL(dev))
19521952
return 4;

0 commit comments

Comments
 (0)