mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
drm/i915/scaler: Add and compute scaling factors
Add scaling factors to scaler_state for a particular scaler user. These factors will be used later to compute scaler prefill latency. Currently, only plane scaling factors are stored, but the same members can later be extended to store pipe scaling factors as well. --v2: - Rephrase commit message. [Ankit] - Corrects typos. [Ankit] Signed-off-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250120172209.188488-2-mitulkumar.ajitkumar.golani@intel.com
This commit is contained in:
parent
381ab12d48
commit
8c27c4e90e
|
|
@ -711,6 +711,8 @@ struct intel_initial_plane_config {
|
|||
struct intel_scaler {
|
||||
u32 mode;
|
||||
bool in_use;
|
||||
int hscale;
|
||||
int vscale;
|
||||
};
|
||||
|
||||
struct intel_crtc_scaler_state {
|
||||
|
|
|
|||
|
|
@ -434,6 +434,9 @@ static int intel_atomic_setup_scaler(struct intel_crtc_scaler_state *scaler_stat
|
|||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
scaler_state->scalers[*scaler_id].hscale = hscale;
|
||||
scaler_state->scalers[*scaler_id].vscale = vscale;
|
||||
}
|
||||
|
||||
drm_dbg_kms(display->drm, "[CRTC:%d:%s] attached scaler id %u.%u to %s:%d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user