From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 12/12] drm/i915: s/state/plane_state/
Date: Thu, 13 Feb 2025 21:23:41 +0200 [thread overview]
Message-ID: <87ldu9wsw2.fsf@intel.com> (raw)
In-Reply-To: <20250213150220.13580-13-ville.syrjala@linux.intel.com>
On Thu, 13 Feb 2025, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Use the canonical 'plane_state' name for funciton arguments where
> appropriate.
*function
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> Also do the s/int plane/int color_plane/ in couple of the
> function prototypes while at it.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_fb.c | 32 ++++++++++++-------------
> drivers/gpu/drm/i915/display/intel_fb.h | 11 +++++----
> 2 files changed, 22 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
> index 399babb57030..97d54b40cf1d 100644
> --- a/drivers/gpu/drm/i915/display/intel_fb.c
> +++ b/drivers/gpu/drm/i915/display/intel_fb.c
> @@ -1049,13 +1049,13 @@ static u32 intel_adjust_aligned_offset(int *x, int *y,
> * the x/y offsets.
> */
> u32 intel_plane_adjust_aligned_offset(int *x, int *y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane,
> u32 old_offset, u32 new_offset)
> {
> - return intel_adjust_aligned_offset(x, y, state->hw.fb, color_plane,
> - state->hw.rotation,
> - state->view.color_plane[color_plane].mapping_stride,
> + return intel_adjust_aligned_offset(x, y, plane_state->hw.fb, color_plane,
> + plane_state->hw.rotation,
> + plane_state->view.color_plane[color_plane].mapping_stride,
> old_offset, new_offset);
> }
>
> @@ -1129,14 +1129,14 @@ static u32 intel_compute_aligned_offset(struct intel_display *display,
> }
>
> u32 intel_plane_compute_aligned_offset(int *x, int *y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane)
> {
> - struct intel_display *display = to_intel_display(state);
> - struct intel_plane *plane = to_intel_plane(state->uapi.plane);
> - const struct drm_framebuffer *fb = state->hw.fb;
> - unsigned int rotation = state->hw.rotation;
> - unsigned int pitch = state->view.color_plane[color_plane].mapping_stride;
> + struct intel_display *display = to_intel_display(plane_state);
> + struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane);
> + const struct drm_framebuffer *fb = plane_state->hw.fb;
> + unsigned int rotation = plane_state->hw.rotation;
> + unsigned int pitch = plane_state->view.color_plane[color_plane].mapping_stride;
> unsigned int alignment = plane->min_alignment(plane, fb, color_plane);
>
> return intel_compute_aligned_offset(display, x, y, fb, color_plane,
> @@ -1944,12 +1944,12 @@ void intel_fb_fill_view(const struct intel_framebuffer *fb, unsigned int rotatio
> * with gen2/3, and 90/270 degree rotations isn't supported on any of them.
> */
> u32 intel_fb_xy_to_linear(int x, int y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane)
> {
> - const struct drm_framebuffer *fb = state->hw.fb;
> + const struct drm_framebuffer *fb = plane_state->hw.fb;
> unsigned int cpp = fb->format->cpp[color_plane];
> - unsigned int pitch = state->view.color_plane[color_plane].mapping_stride;
> + unsigned int pitch = plane_state->view.color_plane[color_plane].mapping_stride;
>
> return y * pitch + x * cpp;
> }
> @@ -1960,12 +1960,12 @@ u32 intel_fb_xy_to_linear(int x, int y,
> * specify the start of scanout from the beginning of the gtt mapping.
> */
> void intel_add_fb_offsets(int *x, int *y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane)
>
> {
> - *x += state->view.color_plane[color_plane].x;
> - *y += state->view.color_plane[color_plane].y;
> + *x += plane_state->view.color_plane[color_plane].x;
> + *y += plane_state->view.color_plane[color_plane].y;
> }
>
> static
> diff --git a/drivers/gpu/drm/i915/display/intel_fb.h b/drivers/gpu/drm/i915/display/intel_fb.h
> index 46286a40e10e..bdd76b372957 100644
> --- a/drivers/gpu/drm/i915/display/intel_fb.h
> +++ b/drivers/gpu/drm/i915/display/intel_fb.h
> @@ -71,11 +71,11 @@ void intel_fb_plane_get_subsampling(int *hsub, int *vsub,
> int color_plane);
>
> u32 intel_plane_adjust_aligned_offset(int *x, int *y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane,
> u32 old_offset, u32 new_offset);
> u32 intel_plane_compute_aligned_offset(int *x, int *y,
> - const struct intel_plane_state *state,
> + const struct intel_plane_state *plane_state,
> int color_plane);
>
> bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb);
> @@ -94,10 +94,11 @@ unsigned int intel_fb_view_vtd_guard(const struct drm_framebuffer *fb,
> int intel_plane_compute_gtt(struct intel_plane_state *plane_state);
>
> unsigned int intel_fb_xy_to_linear(int x, int y,
> - const struct intel_plane_state *state,
> - int plane);
> + const struct intel_plane_state *plane_state,
> + int color_plane);
> void intel_add_fb_offsets(int *x, int *y,
> - const struct intel_plane_state *state, int plane);
> + const struct intel_plane_state *plane_state,
> + int color_plane);
>
> int intel_framebuffer_init(struct intel_framebuffer *ifb,
> struct drm_gem_object *obj,
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-02-13 19:23 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-13 15:02 [PATCH 00/12] drm/i915: Hoist some stuff out from intel_display.c Ville Syrjala
2025-02-13 15:02 ` [PATCH 01/12] drm/i915: Move modeset_retry stuff into intel_connector.c Ville Syrjala
2025-02-13 19:11 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 02/12] drm/i915: Always initialize connector->modeset_retry_work Ville Syrjala
2025-02-13 19:11 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 03/12] drm/i915: Extract intel_connector_cancel_modeset_retry_work() Ville Syrjala
2025-02-13 19:12 ` Jani Nikula
2025-02-13 19:13 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 04/12] drm/i915: Extract intel_hdcp_cancel_works() Ville Syrjala
2025-02-13 19:14 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 05/12] drm/i915: Move intel_hpd_poll_fini() into intel_hotplug.c Ville Syrjala
2025-02-13 19:15 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 06/12] drm/i915: Move intel_plane_destroy() into intel_atomic_plane.c Ville Syrjala
2025-02-13 19:17 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 07/12] drm/i915: Relocate vlv_wait_port_ready() Ville Syrjala
2025-02-13 19:18 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 08/12] drm/i915: Simplify vlv_wait_port_ready() arguments Ville Syrjala
2025-02-13 19:19 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 09/12] drm/i915: Relocate intel_plane_uses_fence() Ville Syrjala
2025-02-13 19:20 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 10/12] drm/i915: Relocate intel_{rotation, remapped}_info_size() Ville Syrjala
2025-02-13 19:21 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 11/12] drm/i915: Relocate some other plane fb related stuff into intel_fb.c Ville Syrjala
2025-02-13 19:22 ` Jani Nikula
2025-02-13 15:02 ` [PATCH 12/12] drm/i915: s/state/plane_state/ Ville Syrjala
2025-02-13 19:23 ` Jani Nikula [this message]
2025-02-13 15:25 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Hoist some stuff out from intel_display.c Patchwork
2025-02-13 15:25 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-02-13 15:44 ` ✗ i915.CI.BAT: failure " Patchwork
2025-02-14 18:22 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Hoist some stuff out from intel_display.c (rev2) Patchwork
2025-02-14 18:22 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-02-14 18:39 ` ✗ i915.CI.BAT: failure " Patchwork
2025-02-15 3:02 ` ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Hoist some stuff out from intel_display.c (rev3) Patchwork
2025-02-15 3:02 ` ✗ Fi.CI.SPARSE: " Patchwork
2025-02-15 3:18 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-15 6:56 ` ✗ 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=87ldu9wsw2.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.