Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • drm/i915/kernel
  • drm/nova
  • jani/kernel
  • mripard/kernel
  • vigneshraman/kernel
  • zhanghe9702/kernel
  • mripard/kernel-other
7 results
Show changes
Commits on Source (2)
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#ifndef __INTEL_FBDEV_H__ #ifndef __INTEL_FBDEV_H__
#define __INTEL_FBDEV_H__ #define __INTEL_FBDEV_H__
#include <linux/types.h>
struct drm_fb_helper; struct drm_fb_helper;
struct drm_fb_helper_surface_size; struct drm_fb_helper_surface_size;
struct drm_i915_private; struct drm_i915_private;
......
...@@ -2314,6 +2314,7 @@ cdclk_prefill_adjustment(const struct intel_crtc_state *crtc_state) ...@@ -2314,6 +2314,7 @@ cdclk_prefill_adjustment(const struct intel_crtc_state *crtc_state)
static int static int
dsc_prefill_latency(const struct intel_crtc_state *crtc_state) dsc_prefill_latency(const struct intel_crtc_state *crtc_state)
{ {
struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
const struct intel_crtc_scaler_state *scaler_state = const struct intel_crtc_scaler_state *scaler_state =
&crtc_state->scaler_state; &crtc_state->scaler_state;
int linetime = DIV_ROUND_UP(1000 * crtc_state->hw.adjusted_mode.htotal, 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,7 +2324,9 @@ dsc_prefill_latency(const struct intel_crtc_state *crtc_state)
crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420 ? 2 : 1; crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420 ? 2 : 1;
u32 dsc_prefill_latency = 0; u32 dsc_prefill_latency = 0;
if (!crtc_state->dsc.compression_enable || !num_scaler_users) if (!crtc_state->dsc.compression_enable ||
!num_scaler_users ||
num_scaler_users > crtc->num_scalers)
return dsc_prefill_latency; return dsc_prefill_latency;
dsc_prefill_latency = DIV_ROUND_UP(15 * linetime * chroma_downscaling_factor, 10); dsc_prefill_latency = DIV_ROUND_UP(15 * linetime * chroma_downscaling_factor, 10);
......