Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH v5 0/2] Fixes for selective fetch area calculation
@ 2022-05-13 14:28 Jouni Högander
  2022-05-13 14:28 ` [Intel-gfx] [PATCH v5 1/2] drm/i915/psr: Use full update In case of area calculation fails Jouni Högander
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jouni Högander @ 2022-05-13 14:28 UTC (permalink / raw)
  To: intel-gfx; +Cc: Mark Pearson

Currently selective fetch area calculation ends up as bogus area in
at least following cases:

1. Updated plane is partially or fully outside pipe area
2. Big fb with only part of memory area used for plane

These end up as y1 = 0, y2 = 4 or y2 being outside pipe area. This
patch set addresses these by ensuring update area is within pipe area
or by falling back to full update.

v5:
 - pipeA -> "pipe %c", pipe_name(crtc-pipe)
v4:
 - draw_area -> pipe_src
 - drm_dbg_once dropped and drm_info_once used instead
v3:
 - Add drm_dbg_once* and use it when sel fetch area calculation fails
 - Move drm_rect_intersect to clip_area_update
v2:
 - Update commit message of first patch
 - Set damaged_area x1 and x2 during initialization

Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Mark Pearson <markpearson@lenovo.com>

Jouni Högander (2):
  drm/i915/psr: Use full update In case of area calculation fails
  drm/i915: Ensure damage clip area is within pipe area

 drivers/gpu/drm/i915/display/intel_psr.c | 37 +++++++++++++++++++-----
 1 file changed, 30 insertions(+), 7 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-13 17:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 14:28 [Intel-gfx] [PATCH v5 0/2] Fixes for selective fetch area calculation Jouni Högander
2022-05-13 14:28 ` [Intel-gfx] [PATCH v5 1/2] drm/i915/psr: Use full update In case of area calculation fails Jouni Högander
2022-05-13 16:35   ` Souza, Jose
2022-05-13 14:28 ` [Intel-gfx] [PATCH v5 2/2] drm/i915: Ensure damage clip area is within pipe area Jouni Högander
2022-05-13 15:21 ` [Intel-gfx] ✓ Fi.CI.BAT: success for Fixes for selective fetch area calculation (rev5) Patchwork
2022-05-13 17:34 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox