提交 f4a2f273 编写于 作者: J Jouni Högander 提交者: Ville Syrjälä

drm/i915/display: Use original src in psr2 sel fetch area calculation

drm_plane_state->src is modified when offset is calculated:

before calculation:
src.x1 = 8192, src.y1 = 8192

after calculation (pitch = 65536, cpp = 4, alignment = 262144)
src.x1 = 8192, src.y1 = 0, offset = 0x20000000

Damage clips are relative to original coodrdinates provided by
user-space. To compare these against src coordinates we need to use
original coordinates as provided by user-space. These can be obtained
by using drm_plane_state_src.
Signed-off-by: NJouni Högander <jouni.hogander@intel.com>
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220823112920.352563-3-jouni.hogander@intel.comReviewed-by: NMika Kahola <mika.kahola@intel.com>
上级 cae5cb0c
......@@ -1768,7 +1768,8 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state,
continue;
}
drm_rect_fp_to_int(&src, &new_plane_state->uapi.src);
src = drm_plane_state_src(&new_plane_state->uapi);
drm_rect_fp_to_int(&src, &src);
drm_atomic_helper_damage_iter_init(&iter,
&old_plane_state->uapi,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册