]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/atomic-helper: Skip vblank waits for unchanged fbs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 24 Nov 2014 19:42:42 +0000 (20:42 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Nov 2014 12:12:42 +0000 (13:12 +0100)
commitab58e3384b9f9863bfd029b458ff337d381bf6d2
tree8a8408b443c8765f06217099540849f7a39cbe9e
parentb0ff4b93f646c39900ead9f6f7b6da78b5978273
drm/atomic-helper: Skip vblank waits for unchanged fbs

Especially with legacy cursor ioctls existing userspace assumes that
you can pile up lots of updates in one go. The super-proper way to
support this would be a special commit mode which overwrites the last
update. But getting there will be quite a bit of work.

Meanwhile do what pretty much all the drivers have done for the plane
update functions: Simply skip the vblank wait for the buffer cleanup
if the buffer is the same. Since the universal cursor plane code will
not recreate framebuffers needlessly this allows us to not slow down
legacy pageflip events while someone moves the cursor around.

v2: Drop the async plane update hunk from a previous attempt at this
issue.

v3: Fix up kerneldoc.

v4: Don't oops so badly. Reported by Jasper.

Cc: Rob Clark <robdclark@gmail.com>
Cc: "Jasper St. Pierre" <jstpierre@mecheye.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Tested-by: Jasper St. Pierre <jstpierre@mecheye.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic_helper.c