@@ -83,6 +83,8 @@ static void frontbuffer_flush(struct drm_i915_private *i915,
83
83
unsigned int frontbuffer_bits ,
84
84
enum fb_op_origin origin )
85
85
{
86
+ struct intel_display * display = & i915 -> display ;
87
+
86
88
/* Delay flushing when rings are still busy.*/
87
89
spin_lock (& i915 -> display .fb_tracking .lock );
88
90
frontbuffer_bits &= ~i915 -> display .fb_tracking .busy_bits ;
@@ -96,7 +98,7 @@ static void frontbuffer_flush(struct drm_i915_private *i915,
96
98
might_sleep ();
97
99
intel_td_flush (i915 );
98
100
intel_drrs_flush (i915 , frontbuffer_bits );
99
- intel_psr_flush (i915 , frontbuffer_bits , origin );
101
+ intel_psr_flush (display , frontbuffer_bits , origin );
100
102
intel_fbc_flush (i915 , frontbuffer_bits , origin );
101
103
}
102
104
@@ -172,6 +174,7 @@ void __intel_fb_invalidate(struct intel_frontbuffer *front,
172
174
unsigned int frontbuffer_bits )
173
175
{
174
176
struct drm_i915_private * i915 = intel_bo_to_i915 (front -> obj );
177
+ struct intel_display * display = & i915 -> display ;
175
178
176
179
if (origin == ORIGIN_CS ) {
177
180
spin_lock (& i915 -> display .fb_tracking .lock );
@@ -183,7 +186,7 @@ void __intel_fb_invalidate(struct intel_frontbuffer *front,
183
186
trace_intel_frontbuffer_invalidate (i915 , frontbuffer_bits , origin );
184
187
185
188
might_sleep ();
186
- intel_psr_invalidate (i915 , frontbuffer_bits , origin );
189
+ intel_psr_invalidate (display , frontbuffer_bits , origin );
187
190
intel_drrs_invalidate (i915 , frontbuffer_bits );
188
191
intel_fbc_invalidate (i915 , frontbuffer_bits , origin );
189
192
}
0 commit comments