Skip to content

Commit a97c88a

Browse files
vsyrjalatursulin
authored andcommitted
drm/i915/wm: Verify the correct plane DDB entry
Actually verify the DDB entry for the plane we're looking at instead of always verifying the cursor DDB. Fixes: 7d45617 ("drm/i915: Tweak plane ddb allocation tracking") Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Vinod Govindapillai <[email protected]> (cherry picked from commit f002f7c7439de18117a31ca84dc87a59719c3dd6) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent ed8be78 commit a97c88a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/i915/display/skl_watermark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4028,8 +4028,8 @@ void intel_wm_state_verify(struct intel_atomic_state *state,
40284028
}
40294029

40304030
/* DDB */
4031-
hw_ddb_entry = &hw->ddb[PLANE_CURSOR];
4032-
sw_ddb_entry = &new_crtc_state->wm.skl.plane_ddb[PLANE_CURSOR];
4031+
hw_ddb_entry = &hw->ddb[plane->id];
4032+
sw_ddb_entry = &new_crtc_state->wm.skl.plane_ddb[plane->id];
40334033

40344034
if (!skl_ddb_entry_equal(hw_ddb_entry, sw_ddb_entry)) {
40354035
drm_err(display->drm,

0 commit comments

Comments
 (0)