diff options
author | Jonas Pfeil <pfeiljonas@gmx.de> | 2016-11-08 02:18:39 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-11-17 00:25:26 +0300 |
commit | c778cc5df944291dcdb1ca7a6bb781fbc22550c5 (patch) | |
tree | 98fc974a019af9af6975499fc68c267f78a42f34 /drivers/gpu/drm/vc4/vc4_drv.c | |
parent | 3a62234680d86efa0239665ed8a0e908f1aef147 (diff) | |
download | linux-c778cc5df944291dcdb1ca7a6bb781fbc22550c5.tar.xz |
drm/vc4: Add fragment shader threading support
FS threading brings performance improvements of 0-20% in glmark2.
The validation code checks for thread switch signals and ensures that
the registers of the other thread are not touched, and that our clamps
are not live across thread switches. It also checks that the
threading and branching instructions do not interfere.
(Original patch by Jonas, changes by anholt for style cleanup,
removing validation the kernel doesn't need to do, and adding the flag
for userspace).
v2: Minor style fixes from checkpatch.
Signed-off-by: Jonas Pfeil <pfeiljonas@gmx.de>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.c')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c index 7abfe088f2d1..86aabf6d0f79 100644 --- a/drivers/gpu/drm/vc4/vc4_drv.c +++ b/drivers/gpu/drm/vc4/vc4_drv.c @@ -82,6 +82,7 @@ static int vc4_get_param_ioctl(struct drm_device *dev, void *data, break; case DRM_VC4_PARAM_SUPPORTS_BRANCHES: case DRM_VC4_PARAM_SUPPORTS_ETC1: + case DRM_VC4_PARAM_SUPPORTS_THREADED_FS: args->value = true; break; default: |