File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 6
6
#ifndef __INTEL_FBDEV_H__
7
7
#define __INTEL_FBDEV_H__
8
8
9
+ #include <linux/types.h>
10
+
9
11
struct drm_fb_helper ;
10
12
struct drm_fb_helper_surface_size ;
11
13
struct drm_i915_private ;
Original file line number Diff line number Diff line change @@ -2314,6 +2314,7 @@ cdclk_prefill_adjustment(const struct intel_crtc_state *crtc_state)
2314
2314
static int
2315
2315
dsc_prefill_latency (const struct intel_crtc_state * crtc_state )
2316
2316
{
2317
+ struct intel_crtc * crtc = to_intel_crtc (crtc_state -> uapi .crtc );
2317
2318
const struct intel_crtc_scaler_state * scaler_state =
2318
2319
& crtc_state -> scaler_state ;
2319
2320
int linetime = DIV_ROUND_UP (1000 * crtc_state -> hw .adjusted_mode .htotal ,
@@ -2323,7 +2324,9 @@ dsc_prefill_latency(const struct intel_crtc_state *crtc_state)
2323
2324
crtc_state -> output_format == INTEL_OUTPUT_FORMAT_YCBCR420 ? 2 : 1 ;
2324
2325
u32 dsc_prefill_latency = 0 ;
2325
2326
2326
- if (!crtc_state -> dsc .compression_enable || !num_scaler_users )
2327
+ if (!crtc_state -> dsc .compression_enable ||
2328
+ !num_scaler_users ||
2329
+ num_scaler_users > crtc -> num_scalers )
2327
2330
return dsc_prefill_latency ;
2328
2331
2329
2332
dsc_prefill_latency = DIV_ROUND_UP (15 * linetime * chroma_downscaling_factor , 10 );
You can’t perform that action at this time.
0 commit comments