Skip to content

drm/i915/fbc: Dirty rectangle bounding and CFB

Austin Hu intel-gfx intel-xe 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 2 repliesSuperseded
  3. v22 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Rebased onto latest drm-tip.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915/display/fbc: Move intel_fbc_can_flip_nuke() higher updrivers/gpu/drm/i915/display/intel_fbc.c+45 -450 replies
2/3drm/i915/fbc: fbc_dirty_rect restrictions and loggingdrivers/gpu/drm/i915/display/intel_fbc.c+36 -30 replies
3/3drm/i915/fbc: nuke CFB if Plane setting (except for surf addr) changesdrivers/gpu/drm/i915/display/intel_fbc.c+61 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] drm/i915/fbc: Dirty rectangle bounding and CFB

This series updates Intel FBC dirty rectangle handling and refactors plane update checks:

1. Moves intel_fbc_can_flip_nuke() higher up in intel_fbc.c to avoid a forward declaration in subsequent FBC checks. (No functional change)
2. Clamps FBC dirty rectangle bounds to valid surface limits [y_offset, y_end] and adds logging for out-of-bounds coordinates, including handling for 180-degree plane rotation.
3. Tracks plane state attribute changes during atomic commits. When FBC Dirty Rectangle mode is active, partial updates only apply to surface address changes (PLANE_SURF). Modifications to any other plane state parameters require fetching full-plane pixel data from memory to re-compress and update the entire CFB in stolen memory. Once fully re-compressed, subsequent atomic commits can resume selective dirty rectangle updates.

v3 -> v4 changes:
- Rebased onto latest drm-tip.

v2 -> v3 changes:
- Split function reordering into a separate standalone commit (v3 1/3) to avoid mixing movement and functional changes, per maintainer feedback.
- Rebased onto latest drm-tip.

v1 -> v2 changes:
- Reused intel_fbc_can_flip_nuke() for plane update state checks as suggested.
- Added plane Y-coordinate plane view checking (color_plane[0].y) alongside X.

Austin Hu (2):
drm/i915/display/fbc: Move intel_fbc_can_flip_nuke() higher up drm/i915/fbc: nuke CFB if Plane setting (except for surf addr) changes

Charlton Lin (1):
drm/i915/fbc: fbc_dirty_rect restrictions and logging

 drivers/gpu/drm/i915/display/intel_fbc.c | 192 +++++++++++++++++------
 1 file changed, 141 insertions(+), 51 deletions(-)
Signature · 1 line
2.34.1