From: "Michał Grzelak" <michal.grzelak@intel.com>
To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org
Cc: ville.syrjala@linux.intel.com, nemesa.garg@intel.com,
"Michał Grzelak" <michal.grzelak@intel.com>
Subject: [PATCH v3 3/9] drm/i915: rename t into tap
Date: Sat, 9 May 2026 18:40:42 +0200 [thread overview]
Message-ID: <20260509164048.627399-4-michal.grzelak@intel.com> (raw)
In-Reply-To: <20260509164048.627399-1-michal.grzelak@intel.com>
Add more description to the casf_coeff()'s argument and
casf_coeff_tap()'s returned value.
Do the same for glk_nearest_filter_coef().
v1->v2
- apply the rename to nearest neighbor filter (Ville)
Cc: Nemesa Garg <nemesa.garg@intel.com>
Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/display/intel_casf.c | 14 +++++++-------
drivers/gpu/drm/i915/display/skl_scaler.c | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_casf.c b/drivers/gpu/drm/i915/display/intel_casf.c
index c4fabffa369e..b9643548d182 100644
--- a/drivers/gpu/drm/i915/display/intel_casf.c
+++ b/drivers/gpu/drm/i915/display/intel_casf.c
@@ -148,12 +148,12 @@ static int casf_coeff_tap(int i)
return i % SCALER_FILTER_NUM_TAPS;
}
-static u32 casf_coeff(const struct intel_crtc_state *crtc_state, int t)
+static u32 casf_coeff(const struct intel_crtc_state *crtc_state, int tap)
{
struct scaler_filter_coeff value;
u32 coeff;
- value = crtc_state->pch_pfit.casf.coeff[t];
+ value = crtc_state->pch_pfit.casf.coeff[tap];
value.sign = 0;
coeff = value.sign << 15 | value.exp << 12 | value.mantissa << 3;
@@ -183,13 +183,13 @@ static void intel_casf_write_coeff(const struct intel_crtc_state *crtc_state)
for (i = 0; i < 17 * SCALER_FILTER_NUM_TAPS; i += 2) {
u32 tmp;
- int t;
+ int tap;
- t = casf_coeff_tap(i);
- tmp = casf_coeff(crtc_state, t);
+ tap = casf_coeff_tap(i);
+ tmp = casf_coeff(crtc_state, tap);
- t = casf_coeff_tap(i + 1);
- tmp |= casf_coeff(crtc_state, t) << 16;
+ tap = casf_coeff_tap(i + 1);
+ tmp |= casf_coeff(crtc_state, tap) << 16;
intel_de_write_fw(display, GLK_PS_COEF_DATA_SET(crtc->pipe, id, 0),
tmp);
diff --git a/drivers/gpu/drm/i915/display/skl_scaler.c b/drivers/gpu/drm/i915/display/skl_scaler.c
index 308b8d363bba..eceda1a909cc 100644
--- a/drivers/gpu/drm/i915/display/skl_scaler.c
+++ b/drivers/gpu/drm/i915/display/skl_scaler.c
@@ -661,9 +661,9 @@ static int glk_coef_tap(int i)
return i % 7;
}
-static u16 glk_nearest_filter_coef(int t)
+static u16 glk_nearest_filter_coef(int tap)
{
- return t == 3 ? 0x0800 : 0x3000;
+ return tap == 3 ? 0x0800 : 0x3000;
}
/*
@@ -715,13 +715,13 @@ static void glk_program_nearest_filter_coefs(struct intel_display *display,
for (i = 0; i < 17 * 7; i += 2) {
u32 tmp;
- int t;
+ int tap;
- t = glk_coef_tap(i);
- tmp = glk_nearest_filter_coef(t);
+ tap = glk_coef_tap(i);
+ tmp = glk_nearest_filter_coef(tap);
- t = glk_coef_tap(i + 1);
- tmp |= glk_nearest_filter_coef(t) << 16;
+ tap = glk_coef_tap(i + 1);
+ tmp |= glk_nearest_filter_coef(tap) << 16;
intel_de_write_dsb(display, dsb,
GLK_PS_COEF_DATA_SET(pipe, id, set), tmp);
--
2.45.2
next prev parent reply other threads:[~2026-05-09 16:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-09 16:40 [PATCH v3 0/9] casf & scaler refactoring Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 1/9] drm/i915/casf: fix comment typos Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 2/9] drm/i915/casf: rename *_coef*() into *_coeff*() Michał Grzelak
2026-05-09 16:40 ` Michał Grzelak [this message]
2026-05-09 16:40 ` [PATCH v3 4/9] drm/i915/casf: rename sumcoeff into sum_coeff Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 5/9] drm/i915/scaler: s/i/scaler_id/ where appropriate Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 6/9] drm/i915/scaler: remove id in favor of scaler_id Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 7/9] drm/i915/scaler: unloop scaler readout that is run once Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 8/9] drm/i915/scaler: abstract scaler searching loop Michał Grzelak
2026-05-09 16:40 ` [PATCH v3 9/9] drm/i915/scaler: eliminate dead code Michał Grzelak
2026-05-09 17:39 ` ✓ i915.CI.BAT: success for casf & scaler refactoring Patchwork
2026-05-10 4:25 ` ✗ i915.CI.Full: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260509164048.627399-4-michal.grzelak@intel.com \
--to=michal.grzelak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=nemesa.garg@intel.com \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox