]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: Consult hw.crtc instead of uapi.crtc
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 13 Apr 2022 15:28:51 +0000 (18:28 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 25 Apr 2022 15:47:50 +0000 (18:47 +0300)
commit0e34364e2a1e9630a597d84705ae769745ccd31d
treed7cda5d818c34d7d7e05fe6957358b3c0d7fc785
parent444482c16bf2ef2962d21e7729174ec6ab7f430b
drm/i915/fbc: Consult hw.crtc instead of uapi.crtc

plane_state->uapi.crtc is not what we want to be looking at.
If bigjoiner is used hw.crtc is what tells us what crtc the plane
is supposedly using.

Not an actual problem on current hardware as the only FBC capable
pipe (A) can't be a bigjoiner slave and thus uapi.crtc==hw.crtc
always here. But when we get more FBC instances this will become
actually important.

Fixes: 6a58970db50f ("drm/i915/fbc: Nuke lots of crap from intel_fbc_state_cache")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220413152852.7336-1-ville.syrjala@linux.intel.com
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c