mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 3ba21aa757ce7dce0735f8f14888550876968d14 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Tue, 20 Aug 2024 16:25:10 +0100
|
|
Subject: [PATCH 529/697] 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>
|
|
---
|
|
drivers/gpu/drm/drm_connector.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/drm_connector.c
|
|
+++ b/drivers/gpu/drm/drm_connector.c
|
|
@@ -362,7 +362,8 @@ static int __drm_connector_init(struct d
|
|
|
|
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);
|