]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Don't wait for vblank when updating the cursor
authorMichael Zoran <mzoran@crowfest.net>
Fri, 24 Feb 2017 01:54:31 +0000 (17:54 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 28 Feb 2017 20:49:40 +0000 (12:49 -0800)
commit312c191366c066ef5dbb4a4aa22ac9e508fa008c
tree3f1686a483f5c7ab56f0fa0d73c9fffb76be8f9b
parent65f1263ef04ac45ba54e80fd90aae0c058c1e715
drm/vc4: Don't wait for vblank when updating the cursor

Commonly used desktop environments such as xfce4 and gnome
on debian sid can flood the graphics drivers with cursor
updates.  Because the current implementation is waiting
for a vblank between cursor updates, this will cause the
display to hang for a long time since a typical refresh
rate is only 60Hz.

This is unnecessary and unexpected by user mode software,
so simply swap out the cursor frame buffer without waiting.

Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224015431.24583-1-mzoran@crowfest.net
drivers/gpu/drm/vc4/vc4_plane.c