Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dsc: Add prefill helper for DSC

Add intel_vdsc_prefill_lines() which tells us how many extra lines
of latency the DSC adds to the pipe prefill.

We shouldn't need a "worst case" vs, "current case" split here
as the DSC state should only change during full modesets.

The returned numbers are in .16 binary fixed point.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20251014191808.12326-6-ville.syrjala@linux.intel.com

+9
+8
drivers/gpu/drm/i915/display/intel_vdsc.c
··· 1077 1077 1078 1078 return min_cdclk; 1079 1079 } 1080 + 1081 + unsigned int intel_vdsc_prefill_lines(const struct intel_crtc_state *crtc_state) 1082 + { 1083 + if (!crtc_state->dsc.compression_enable) 1084 + return 0; 1085 + 1086 + return 0x18000; /* 1.5 */ 1087 + }
+1
drivers/gpu/drm/i915/display/intel_vdsc.h
··· 32 32 void intel_vdsc_state_dump(struct drm_printer *p, int indent, 33 33 const struct intel_crtc_state *crtc_state); 34 34 int intel_vdsc_min_cdclk(const struct intel_crtc_state *crtc_state); 35 + unsigned int intel_vdsc_prefill_lines(const struct intel_crtc_state *crtc_state); 35 36 36 37 #endif /* __INTEL_VDSC_H__ */