]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Store plane relative data rate in crtc_state
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 6 Nov 2020 17:30:41 +0000 (19:30 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Nov 2020 19:30:06 +0000 (21:30 +0200)
commitd7bd146ba22dd632055ce7736520d94b3023870b
tree61edcfc154954f07bef648659898c6a138648463
parent754848bc0f5a7f7c87c4b7fbbc74484526e3f150
drm/i915: Store plane relative data rate in crtc_state

Store the relative data rate for planes in the crtc state
so that we don't have to use
intel_atomic_crtc_state_for_each_plane_state() to compute
it even for the planes that are no part of the current state.

Should probably just nuke this stuff entirely an use the normal
plane data rate instead. The two are slightly different since this
relative data rate doesn't factor in the actual pixel clock, so
it's a bit odd thing to even call a "data rate". And since the
watermarks are computed based on the actual data rate anyway
I don't really see what the point of this relative data rate
is. But that's for the future...

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201106173042.7534-6-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/intel_pm.c