Document and add support for solid_fill property to drm_plane. In addition, add support for setting and getting the values for solid_fill. To enable solid fill planes, userspace must assign a property blob to the "solid_fill" plane property containing the following information: struct drm_mode_solid_fill { u32 r, g, b, pad; };
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -259,6 +259,30 @@ struct drm_mode_modeinfo { · 258 unmodified lines | ||
| 259 | 259 | char name[DRM_DISPLAY_MODE_LEN]; |
| 260 | 260 | }; |
| 261 | 261 | |
| 262 | +/** | |
| 263 | + * struct drm_mode_solid_fill - User info for solid fill planes | |
| 264 | + * | |
| 265 | + * This is the userspace API solid fill information structure. | |
| 266 | + * | |
| 267 | + * Userspace can enable solid fill planes by assigning the plane "solid_fill" | |
| 268 | + * property to a blob containing a single drm_mode_solid_fill struct populated with an RGB323232 | |
| 269 | + * color and setting the pixel source to "SOLID_FILL". | |
| 270 | + * | |
| 271 | + * For information on the plane property, see drm_plane_create_solid_fill_property() | |
| 272 | + * | |
| 273 | + * @r: Red color value of single pixel | |
| 274 | + * @g: Green color value of single pixel | |
| 275 | + * @b: Blue color value of single pixel | |
| 276 | + * @pad: padding, must be zero | |
| 277 | + */ | |
| 278 | +struct drm_mode_solid_fill { | |
| 279 | + __u32 r; | |
| 280 | + __u32 g; | |
| 281 | + __u32 b; | |
| 282 | + __u32 pad; | |
| 283 | +}; | |
| 284 | + | |
| 285 | + | |
| 262 | 286 | struct drm_mode_card_res { |
| 263 | 287 | __u64 fb_id_ptr; |
| 264 | 288 | __u64 crtc_id_ptr; |