mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 11:42:40 +01:00
72 lines
1.9 KiB
Diff
72 lines
1.9 KiB
Diff
From 64cb597c7f7fa1493aea95aa3656e2cae66728d2 Mon Sep 17 00:00:00 2001
|
|
From: Jonathon Jongsma <jjongsma@redhat.com>
|
|
Date: Mon, 12 Nov 2018 14:06:14 -0600
|
|
Subject: [PATCH] Make output names match modesetting driver
|
|
|
|
The xrandr output name used by the QXL driver is based on the drm
|
|
connector type, but the names do not match the kernel names (see
|
|
/drivers/gpu/drm/drm_connector.c) or the modesetting driver names (see
|
|
hw/xfree86/drivers/modesetting/drmmode_display.c). Making these more
|
|
consistent will require less driver-specific special-case code if a user
|
|
wants to match an xrandr output to a drm connector.
|
|
|
|
Note that this patch should not actually change any behavior, since the
|
|
QXL driver only uses the 'Virtual' connector type, so this is done only
|
|
for consistency.
|
|
|
|
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
|
|
Acked-by: Frediano Ziglio <fziglio@redhat.com>
|
|
---
|
|
src/qxl_drmmode.c | 35 +++++++++++++++++++----------------
|
|
1 file changed, 19 insertions(+), 16 deletions(-)
|
|
|
|
diff --git a/src/qxl_drmmode.c b/src/qxl_drmmode.c
|
|
index a814859..8ebc708 100644
|
|
--- a/src/qxl_drmmode.c
|
|
+++ b/src/qxl_drmmode.c
|
|
@@ -720,22 +720,25 @@ static int subpixel_conv_table[7] = { 0, SubPixelUnknown,
|
|
SubPixelVerticalBGR,
|
|
SubPixelNone };
|
|
|
|
-const char *output_names[] = { "None",
|
|
- "VGA",
|
|
- "DVI",
|
|
- "DVI",
|
|
- "DVI",
|
|
- "Composite",
|
|
- "S-video",
|
|
- "LVDS",
|
|
- "CTV",
|
|
- "DIN",
|
|
- "DisplayPort",
|
|
- "HDMI",
|
|
- "HDMI",
|
|
- "TV",
|
|
- "eDP",
|
|
- "Virtual"
|
|
+const char *output_names[] = {
|
|
+ "None",
|
|
+ "VGA",
|
|
+ "DVI-I",
|
|
+ "DVI-D",
|
|
+ "DVI-A",
|
|
+ "Composite",
|
|
+ "SVIDEO",
|
|
+ "LVDS",
|
|
+ "Component",
|
|
+ "DIN",
|
|
+ "DP",
|
|
+ "HDMI",
|
|
+ "HDMI-B",
|
|
+ "TV",
|
|
+ "eDP",
|
|
+ "Virtual",
|
|
+ "DSI",
|
|
+ "DPI",
|
|
};
|
|
|
|
static void
|
|
--
|
|
2.24.1
|
|
|