diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-06-11 16:33:39 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-06-20 15:38:08 +0300 |
commit | a6c8dfbfcd0137b2676f0e3c48752c3d618d9805 (patch) | |
tree | 2f0fd02a6ef0d928ad11237a8d651cbf3b203417 /drivers/gpu/drm/i915/display/intel_dsb.h | |
parent | 42c8065d83fa3e9267bf99d6de70512c5c071a3b (diff) | |
download | lwn-a6c8dfbfcd0137b2676f0e3c48752c3d618d9805.tar.gz lwn-a6c8dfbfcd0137b2676f0e3c48752c3d618d9805.zip |
drm/i915/dsb: Plumb the whole atomic state into intel_dsb_prepare()
The DSB code will need to examine both the old and new crtc
states. Pass in the whole atomic state so we can dig up
what we need.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240611133344.30673-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dsb.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dsb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dsb.h b/drivers/gpu/drm/i915/display/intel_dsb.h index 36fdb130af6e..bb42749f2ea4 100644 --- a/drivers/gpu/drm/i915/display/intel_dsb.h +++ b/drivers/gpu/drm/i915/display/intel_dsb.h @@ -10,6 +10,7 @@ #include "i915_reg_defs.h" +struct intel_atomic_state; struct intel_crtc; struct intel_crtc_state; struct intel_dsb; @@ -22,7 +23,8 @@ enum intel_dsb_id { I915_MAX_DSBS, }; -struct intel_dsb *intel_dsb_prepare(const struct intel_crtc_state *crtc_state, +struct intel_dsb *intel_dsb_prepare(struct intel_atomic_state *state, + struct intel_crtc *crtc, enum intel_dsb_id dsb_id, unsigned int max_cmds); void intel_dsb_finish(struct intel_dsb *dsb); |