Skip to content

Commit c7ef1d3

Browse files
6by9popcornmix
authored andcommitted
drm: Set non-desktop property to true for writeback and virtual connectors
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 <dave.stevenson@raspberrypi.com>
1 parent ef07f29 commit c7ef1d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/drm_connector.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ static int drm_connector_init_only(struct drm_device *dev,
307307

308308
drm_object_attach_property(&connector->base,
309309
config->non_desktop_property,
310-
0);
310+
(connector_type != DRM_MODE_CONNECTOR_VIRTUAL &&
311+
connector_type != DRM_MODE_CONNECTOR_WRITEBACK) ? 0 : 1);
311312
drm_object_attach_property(&connector->base,
312313
config->tile_property,
313314
0);

0 commit comments

Comments
 (0)