aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/Makefile
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-11-30 11:41:40 -0800
committerEric Anholt <eric@anholt.net>2015-12-07 20:05:09 -0800
commit463873d5701427f2964a0b4b72c45f1f14b6df87 (patch)
tree023716d1baafccda43cd6bb35f61a9a83b48f86c /drivers/gpu/drm/vc4/Makefile
parentdrm/vc4: Add create and map BO ioctls. (diff)
downloadlinux-dev-463873d5701427f2964a0b4b72c45f1f14b6df87.tar.xz
linux-dev-463873d5701427f2964a0b4b72c45f1f14b6df87.zip
drm/vc4: Add an API for creating GPU shaders in GEM BOs.
Since we have no MMU, the kernel needs to validate that the submitted shader code won't make any accesses to memory that the user doesn't control, which involves banning some operations (general purpose DMA writes), and tracking where we need to write out pointers for other operations (texture sampling). Once it's validated, we return a GEM BO containing the shader, which doesn't allow mapping for write or exporting to other subsystems. v2: Use __u32-style types. Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4/Makefile')
-rw-r--r--drivers/gpu/drm/vc4/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/Makefile b/drivers/gpu/drm/vc4/Makefile
index 32b4f9cd8f52..eb776a6a9899 100644
--- a/drivers/gpu/drm/vc4/Makefile
+++ b/drivers/gpu/drm/vc4/Makefile
@@ -10,7 +10,8 @@ vc4-y := \
vc4_kms.o \
vc4_hdmi.o \
vc4_hvs.o \
- vc4_plane.o
+ vc4_plane.o \
+ vc4_validate_shaders.o
vc4-$(CONFIG_DEBUG_FS) += vc4_debugfs.o