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.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -287,6 +287,7 @@ struct drm_vc4_get_hang_state { · 286 unmodified lines | |||
| 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 | #define DRM_VC4_PARAM_SUPPORTS_BRANCHES 3 |
| 289 | #define DRM_VC4_PARAM_SUPPORTS_ETC1 4 | 289 | #define DRM_VC4_PARAM_SUPPORTS_ETC1 4 |
| 290 | #define DRM_VC4_PARAM_SUPPORTS_THREADED_FS 5 | ||
| 290 | 291 | ||
| 291 | struct drm_vc4_get_param { | 292 | struct drm_vc4_get_param { |
| 292 | __u32 param; | 293 | __u32 param; |