summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm
diff options
context:
space:
mode:
authorEric Anholt2016-07-02 23:14:27 +0200
committerEric Anholt2016-07-16 00:19:51 +0200
commit7363cee5b467c31dc3af2ac98df0634bb8bbc668 (patch)
treec98b9e23f35f23be2c3b2fb7df71c417c7554b72 /include/uapi/drm
parentdrm/vc4: Add support for branching in shader validation. (diff)
downloadkernel-qcow2-linux-7363cee5b467c31dc3af2ac98df0634bb8bbc668.tar.gz
kernel-qcow2-linux-7363cee5b467c31dc3af2ac98df0634bb8bbc668.tar.xz
kernel-qcow2-linux-7363cee5b467c31dc3af2ac98df0634bb8bbc668.zip
drm/vc4: Add a getparam to signal support for branches.
Userspace needs to know if it can create shaders that do branching. Otherwise, for backwards compatibility with old kernels it needs to lower if statements to conditional assignments. Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'include/uapi/drm')
-rw-r--r--include/uapi/drm/vc4_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/vc4_drm.h b/include/uapi/drm/vc4_drm.h
index 1143e954048d..ad7edc3edf7c 100644
--- a/include/uapi/drm/vc4_drm.h
+++ b/include/uapi/drm/vc4_drm.h
@@ -285,6 +285,7 @@ struct drm_vc4_get_hang_state {
#define DRM_VC4_PARAM_V3D_IDENT0 0
#define DRM_VC4_PARAM_V3D_IDENT1 1
#define DRM_VC4_PARAM_V3D_IDENT2 2
+#define DRM_VC4_PARAM_SUPPORTS_BRANCHES 3
struct drm_vc4_get_param {
__u32 param;