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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -285,6 +285,7 @@ struct drm_vc4_get_hang_state { · 284 unmodified lines | |||
| 285 | #define DRM_VC4_PARAM_V3D_IDENT0 0 | 285 | #define DRM_VC4_PARAM_V3D_IDENT0 0 |
| 286 | #define DRM_VC4_PARAM_V3D_IDENT1 1 | 286 | #define DRM_VC4_PARAM_V3D_IDENT1 1 |
| 287 | #define DRM_VC4_PARAM_V3D_IDENT2 2 | 287 | #define DRM_VC4_PARAM_V3D_IDENT2 2 |
| 288 | #define DRM_VC4_PARAM_SUPPORTS_BRANCHES 3 | ||
| 288 | 289 | ||
| 289 | struct drm_vc4_get_param { | 290 | struct drm_vc4_get_param { |
| 290 | __u32 param; | 291 | __u32 param; |