From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> Another iteration of my cursor stuff. I ended up expanding it quite a bit because I decided that I need to handle the fb/src offsets correctly. I also tried to address some of Chris's review feedback, mainly about sharing some of the code between the i9xx and i845/i865 codepaths. The mess with the conditional register writes was also starting to bother me, so I tried to make it less convoluted, but spliting it between just updating CURPOS vs. updating everything. This even seemed improve the performance a little bit on my old 830. Entire series is available here: git://github.com/vsyrjala/linux.git cursor_improvements_5 Ville Syrjälä (15): drm/i915: Parametrize cursor/primary pipe select bits drm/i915: Pass intel_plane and intel_crtc to plane hooks drm/i915: Refactor CURBASE calculation drm/i915: Clean up cursor junk from intel_crtc drm/i915: Refactor CURPOS calculation drm/i915: Move cursor position and base handling into the platform specific functions drm/i915: Drop useless posting reads from cursor commit drm/i915: Split cursor check_plane into i845 and i9xx variants drm/i915: Generalize cursor size checks a bit drm/i915: Use fb->pitches[0] in cursor code drm/i915: Support variable cursor height on ivb+ drm/i915: Fix gen3 physical cursor alignment requirements drm/i915: Handle fb offset and src coordinates for cursors drm/i915: Relax 845/865 CURBASE alignemnt requirement to 32 bytes drm/i915: Simplify cursor register write sequence drivers/gpu/drm/i915/i915_debugfs.c | 48 +-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 12 +- drivers/gpu/drm/i915/intel_atomic_plane.c | 6 +- drivers/gpu/drm/i915/intel_display.c | 661 +++++++++++++++++------------- drivers/gpu/drm/i915/intel_drv.h | 17 +- drivers/gpu/drm/i915/intel_sprite.c | 110 +++-- 7 files changed, 454 insertions(+), 401 deletions(-) -- 2.10.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx