@@ -906,12 +906,18 @@ static bool needs_async_flip_vtd_wa(const struct intel_crtc_state *crtc_state)
906
906
static bool planes_enabling (const struct intel_crtc_state * old_crtc_state ,
907
907
const struct intel_crtc_state * new_crtc_state )
908
908
{
909
+ if (!new_crtc_state -> hw .active )
910
+ return false;
911
+
909
912
return is_enabling (active_planes , old_crtc_state , new_crtc_state );
910
913
}
911
914
912
915
static bool planes_disabling (const struct intel_crtc_state * old_crtc_state ,
913
916
const struct intel_crtc_state * new_crtc_state )
914
917
{
918
+ if (!old_crtc_state -> hw .active )
919
+ return false;
920
+
915
921
return is_disabling (active_planes , old_crtc_state , new_crtc_state );
916
922
}
917
923
@@ -928,6 +934,9 @@ static bool vrr_params_changed(const struct intel_crtc_state *old_crtc_state,
928
934
static bool vrr_enabling (const struct intel_crtc_state * old_crtc_state ,
929
935
const struct intel_crtc_state * new_crtc_state )
930
936
{
937
+ if (!new_crtc_state -> hw .active )
938
+ return false;
939
+
931
940
return is_enabling (vrr .enable , old_crtc_state , new_crtc_state ) ||
932
941
(new_crtc_state -> vrr .enable &&
933
942
(new_crtc_state -> update_m_n || new_crtc_state -> update_lrr ||
@@ -937,6 +946,9 @@ static bool vrr_enabling(const struct intel_crtc_state *old_crtc_state,
937
946
static bool vrr_disabling (const struct intel_crtc_state * old_crtc_state ,
938
947
const struct intel_crtc_state * new_crtc_state )
939
948
{
949
+ if (!old_crtc_state -> hw .active )
950
+ return false;
951
+
940
952
return is_disabling (vrr .enable , old_crtc_state , new_crtc_state ) ||
941
953
(old_crtc_state -> vrr .enable &&
942
954
(new_crtc_state -> update_m_n || new_crtc_state -> update_lrr ||
0 commit comments