diff options
author | Eric Anholt <eric@anholt.net> | 2015-11-30 11:41:40 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-12-07 20:05:09 -0800 |
commit | 463873d5701427f2964a0b4b72c45f1f14b6df87 (patch) | |
tree | 023716d1baafccda43cd6bb35f61a9a83b48f86c /drivers/gpu/drm/vc4/Makefile | |
parent | d5bc60f6ad05b3c676b057bec662cfafc3ee24dd (diff) | |
download | op-kernel-dev-463873d5701427f2964a0b4b72c45f1f14b6df87.zip op-kernel-dev-463873d5701427f2964a0b4b72c45f1f14b6df87.tar.gz |
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/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/Makefile b/drivers/gpu/drm/vc4/Makefile index 32b4f9c..eb776a6 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 |