In order to manage ringbuffer priority to its fullest userspace should know how many ringbuffers it has to work with. Add a parameter to return the number of active rings.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -73,6 +73,7 @@ struct drm_msm_timespec { · 72 unmodified lines | ||
| 73 | 73 | #define MSM_PARAM_MAX_FREQ 0x04 |
| 74 | 74 | #define MSM_PARAM_TIMESTAMP 0x05 |
| 75 | 75 | #define MSM_PARAM_GMEM_BASE 0x06 |
| 76 | +#define MSM_PARAM_NR_RINGS 0x07 | |
| 76 | 77 | |
| 77 | 78 | struct drm_msm_param { |
| 78 | 79 | __u32 pipe; /* in, MSM_PIPE_x */ |