File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1545,12 +1545,21 @@ static bool intel_edp_psr_match_conditions(struct intel_dp *intel_dp)
1545
1545
return false;
1546
1546
}
1547
1547
1548
+ crtc = dig_port -> base .base .crtc ;
1549
+ if (crtc == NULL ) {
1550
+ DRM_DEBUG_KMS ("crtc not active for PSR\n" );
1551
+ dev_priv -> no_psr_reason = PSR_CRTC_NOT_ACTIVE ;
1552
+ return false;
1553
+ }
1554
+
1555
+ intel_crtc = to_intel_crtc (crtc );
1548
1556
if (!intel_crtc -> active || !crtc -> fb || !crtc -> mode .clock ) {
1549
1557
DRM_DEBUG_KMS ("crtc not active for PSR\n" );
1550
1558
dev_priv -> no_psr_reason = PSR_CRTC_NOT_ACTIVE ;
1551
1559
return false;
1552
1560
}
1553
1561
1562
+ obj = to_intel_framebuffer (crtc -> fb )-> obj ;
1554
1563
if (obj -> tiling_mode != I915_TILING_X ||
1555
1564
obj -> fence_reg == I915_FENCE_REG_NONE ) {
1556
1565
DRM_DEBUG_KMS ("PSR condition failed: fb not tiled or fenced\n" );
You can’t perform that action at this time.
0 commit comments