Skip to content

Commit 61b8b35

Browse files
committed
drm/i915: Add a FIXME about FBC vs. fence. 90/270 degree rotation
Currently the FBC code doesn't handle the 90/270 degree rotated case correctly. We would need the GTT tracking to monitor the fence on the normal GTT view (the rotated view doesn't even have a fence). Not quite sure how we should program the fence Y offset etc. in that case. For now we'll end up disabling FBC with 90/270 degree rotation. Add a FIXME to remind people about this fact. v2: Reword the text (Chris) Move the FIXME to the fbc code Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180221160235.11134-7-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
1 parent ef1a191 commit 61b8b35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/i915/intel_fbc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,12 @@ static bool intel_fbc_can_activate(struct intel_crtc *crtc)
810810
* Note that is possible for a tiled surface to be unmappable (and
811811
* so have no fence associated with it) due to aperture constaints
812812
* at the time of pinning.
813+
*
814+
* FIXME with 90/270 degree rotation we should use the fence on
815+
* the normal GTT view (the rotated view doesn't even have a
816+
* fence). Would need changes to the FBC fence Y offset as well.
817+
* For now this will effecively disable FBC with 90/270 degree
818+
* rotation.
813819
*/
814820
if (!(cache->flags & PLANE_HAS_FENCE)) {
815821
fbc->no_fbc_reason = "framebuffer not tiled or fenced";

0 commit comments

Comments
 (0)