Skip to content

Commit

Permalink
drm: Set non-desktop property to true for writeback and virtual conne…
Browse files Browse the repository at this point in the history
…ctors

The non-desktop property "Indicates the output should be ignored for
purposes of displaying a standard desktop environment or console."

That sounds like it should be true for all writeback and virtual
connectors as you shouldn't render a desktop to them, so set it
by default.

Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 committed Aug 20, 2024
1 parent 29f7f01 commit 483260d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/drm_connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ static int __drm_connector_init(struct drm_device *dev,

drm_object_attach_property(&connector->base,
config->non_desktop_property,
0);
(connector_type != DRM_MODE_CONNECTOR_VIRTUAL &&
connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1;
drm_object_attach_property(&connector->base,
config->tile_property,
0);
Expand Down

0 comments on commit 483260d

Please sign in to comment.