History

drm: Introduce solid fill DRM plane property

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; };

Jessica Zhang committed 3 years ago

Commit 85863a41 parent e50e5fe6 files · +126 −0Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/drm/drm_mode.h+24−0
@@ -259,6 +259,30 @@ struct drm_mode_modeinfo { · 258 unmodified lines
259 char name[DRM_DISPLAY_MODE_LEN];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 */
278struct drm_mode_solid_fill {
279 __u32 r;
280 __u32 g;
281 __u32 b;
282 __u32 pad;
283};
284
285
262struct drm_mode_card_res {286struct drm_mode_card_res {
263 __u64 fb_id_ptr;287 __u64 fb_id_ptr;
264 __u64 crtc_id_ptr;288 __u64 crtc_id_ptr;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t