Skip to content

Commit 32febd9

Browse files
committed
drm/i915: Require fence only for FBC capable planes
As only a subset of primary planes are FBC capable there's no need to waste fences on all of them. So let's skip the fence if the plane isn't even fbc capable. In the future we might extend this to skip the fence even for FBC capable planes if the crtc and/or plane state isn't suitable for FBC. 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-5-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
1 parent cf1805e commit 32febd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ static bool intel_plane_uses_fence(const struct intel_plane_state *plane_state)
20722072
struct intel_plane *plane = to_intel_plane(plane_state->base.plane);
20732073
struct drm_i915_private *dev_priv = to_i915(plane->base.dev);
20742074

2075-
return INTEL_GEN(dev_priv) < 4 || plane->id == PLANE_PRIMARY;
2075+
return INTEL_GEN(dev_priv) < 4 || plane->has_fbc;
20762076
}
20772077

20782078
struct i915_vma *

0 commit comments

Comments
 (0)