OSDN Git Service

drm/vc4: Add exec flags to allow forcing a specific X/Y tile walk order.
authorEric Anholt <eric@anholt.net>
Tue, 25 Jul 2017 16:27:33 +0000 (09:27 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 8 Aug 2017 20:26:44 +0000 (13:26 -0700)
commit3be8eddd9d58a925b461b582fa5aa422a9c145ee
tree163d10f1eff2b72853310e5a0d432ab1694801da
parentfb95992af1d779806da9a380b14f76ad13764c2f
drm/vc4: Add exec flags to allow forcing a specific X/Y tile walk order.

This is useful to allow GL to provide defined results for overlapping
glBlitFramebuffer, which X11 in turn uses to accelerate uncomposited
window movement without first blitting to a temporary.  x11perf
-copywinwin100 goes from 1850/sec to 4850/sec.

v2: Default to the same behavior as before when the flags aren't
    passed. (suggested by Boris)

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170725162733.28007-2-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_gem.c
drivers/gpu/drm/vc4/vc4_render_cl.c
include/uapi/drm/vc4_drm.h