From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 2/7] drm/i915/color: hide struct intel_color_funcs
Date: Wed, 9 Feb 2022 12:43:29 +0200 [thread overview]
Message-ID: <YgOa0VnsuOgsXd2T@intel.com> (raw)
In-Reply-To: <68cf44fab55c047253c3ed87f8afcf0a86fa157a.1643896905.git.jani.nikula@intel.com>
On Thu, Feb 03, 2022 at 04:02:28PM +0200, Jani Nikula wrote:
> The struct is only needed in intel_color.c, move it there.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_color.c | 19 +++++++++++++++++++
> drivers/gpu/drm/i915/i915_drv.h | 20 +-------------------
> 2 files changed, 20 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c
> index de3ded1e327a..8f8b34b60f27 100644
> --- a/drivers/gpu/drm/i915/display/intel_color.c
> +++ b/drivers/gpu/drm/i915/display/intel_color.c
> @@ -28,6 +28,25 @@
> #include "intel_dpll.h"
> #include "vlv_dsi_pll.h"
>
> +struct intel_color_funcs {
> + int (*color_check)(struct intel_crtc_state *crtc_state);
> + /*
> + * Program double buffered color management registers during
> + * vblank evasion. The registers should then latch during the
> + * next vblank start, alongside any other double buffered registers
> + * involved with the same commit.
> + */
> + void (*color_commit)(const struct intel_crtc_state *crtc_state);
> + /*
> + * Load LUTs (and other single buffered color management
> + * registers). Will (hopefully) be called during the vblank
> + * following the latching of any double buffered registers
> + * involved with the same commit.
> + */
> + void (*load_luts)(const struct intel_crtc_state *crtc_state);
> + void (*read_luts)(struct intel_crtc_state *crtc_state);
> +};
> +
> #define CTM_COEFF_SIGN (1ULL << 63)
>
> #define CTM_COEFF_1_0 (1ULL << 32)
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 5a1615c02971..cac18b57808e 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -115,6 +115,7 @@ struct intel_cdclk_config;
> struct intel_cdclk_funcs;
> struct intel_cdclk_state;
> struct intel_cdclk_vals;
> +struct intel_color_funcs;
> struct intel_connector;
> struct intel_crtc;
> struct intel_dp;
> @@ -320,25 +321,6 @@ struct drm_i915_wm_disp_funcs {
> int (*compute_global_watermarks)(struct intel_atomic_state *state);
> };
>
> -struct intel_color_funcs {
> - int (*color_check)(struct intel_crtc_state *crtc_state);
> - /*
> - * Program double buffered color management registers during
> - * vblank evasion. The registers should then latch during the
> - * next vblank start, alongside any other double buffered registers
> - * involved with the same commit.
> - */
> - void (*color_commit)(const struct intel_crtc_state *crtc_state);
> - /*
> - * Load LUTs (and other single buffered color management
> - * registers). Will (hopefully) be called during the vblank
> - * following the latching of any double buffered registers
> - * involved with the same commit.
> - */
> - void (*load_luts)(const struct intel_crtc_state *crtc_state);
> - void (*read_luts)(struct intel_crtc_state *crtc_state);
> -};
> -
> struct intel_hotplug_funcs {
> void (*hpd_irq_setup)(struct drm_i915_private *dev_priv);
> };
> --
> 2.30.2
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2022-02-09 10:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 14:02 [Intel-gfx] [PATCH 0/7] drm/i915: split out function structs from i915_drv.h Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 1/7] drm/i915: group i915_drv.h forward declarations together Jani Nikula
2022-02-09 10:42 ` Ville Syrjälä
2022-02-03 14:02 ` [Intel-gfx] [PATCH 2/7] drm/i915/color: hide struct intel_color_funcs Jani Nikula
2022-02-09 10:43 ` Ville Syrjälä [this message]
2022-02-03 14:02 ` [Intel-gfx] [PATCH 3/7] drm/i915/hpd: hide struct intel_hotplug_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 4/7] drm/i915/fdi: hide struct intel_fdi_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 5/7] drm/i915/dpll: add intel_dpll_crtc_compute_clock() Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 6/7] drm/i915/dpll: hide struct intel_dpll_funcs Jani Nikula
2022-02-03 14:02 ` [Intel-gfx] [PATCH 7/7] drm/i915/pm: hide struct drm_i915_clock_gating_funcs Jani Nikula
2022-02-09 10:45 ` Ville Syrjälä
2022-02-09 13:12 ` Jani Nikula
2022-02-03 14:56 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: split out function structs from i915_drv.h Patchwork
2022-02-03 15:26 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-02-03 18:28 ` [Intel-gfx] ✗ Fi.CI.IGT: 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=YgOa0VnsuOgsXd2T@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@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.