[PATCH 0/3] drm/i915/display: Reduce global state funcs boilerplate

Gustavo Sousa gustavo.sousa at intel.com
Thu Dec 19 21:48:35 UTC 2024


If we look at how the members of struct intel_global_state_funcs, we see
a common pattern repeating itself. We can reduce such boilerplate by
moving the common implementation to the generic global state code. This
series proposes that.

Gustavo Sousa (3):
  drm/i915/display: Do not assume zero offset when duplicating global
    state
  drm/i915/display: Add infra to reduce global state funcs boilerplate
  drm/i915/display: Use INTEL_GLOBAL_STATE_DEFAULTS

 drivers/gpu/drm/i915/display/intel_bw.c       | 21 +---------
 drivers/gpu/drm/i915/display/intel_cdclk.c    | 16 +++-----
 .../gpu/drm/i915/display/intel_global_state.c | 41 ++++++++++++++++++-
 .../gpu/drm/i915/display/intel_global_state.h | 15 +++++++
 drivers/gpu/drm/i915/display/intel_pmdemand.c | 21 +---------
 drivers/gpu/drm/i915/display/skl_watermark.c  | 20 +--------
 6 files changed, 63 insertions(+), 71 deletions(-)

-- 
2.47.1



More information about the Intel-gfx mailing list