2013-12-12 15:33:35 +01:00
|
|
|
From: Stefan Dirsch <sndirsch@suse.de>
|
|
|
|
|
|
|
|
Set DefaultDepth for implicite screen section when using FGLRX driver
|
|
|
|
|
|
|
|
The binary only AMD FGLRX driver doesn't set the default depth in the
|
|
|
|
driver. Do it for it in the server.
|
|
|
|
|
2012-04-20 11:32:05 +02:00
|
|
|
Index: hw/xfree86/common/xf86AutoConfig.c
|
|
|
|
===================================================================
|
|
|
|
--- hw/xfree86/common/xf86AutoConfig.c.orig
|
|
|
|
+++ hw/xfree86/common/xf86AutoConfig.c
|
2019-09-18 14:48:07 +02:00
|
|
|
@@ -77,6 +77,13 @@
|
2010-04-07 01:52:32 +02:00
|
|
|
"\tDevice\t" BUILTIN_DEVICE_NAME "\n" \
|
|
|
|
"EndSection\n\n"
|
|
|
|
|
|
|
|
+#define BUILTIN_SCREEN_SECTION_FOR_FGLRX \
|
|
|
|
+ "Section \"Screen\"\n" \
|
|
|
|
+ "\tIdentifier\t" BUILTIN_SCREEN_NAME "\n" \
|
|
|
|
+ "\tDevice\t" BUILTIN_DEVICE_NAME "\n" \
|
|
|
|
+ "\tDefaultDepth\t24\n" \
|
|
|
|
+ "EndSection\n\n"
|
|
|
|
+
|
|
|
|
#define BUILTIN_LAYOUT_SECTION_PRE \
|
|
|
|
"Section \"ServerLayout\"\n" \
|
|
|
|
"\tIdentifier\t\"Builtin Default Layout\"\n"
|
2019-09-18 14:48:07 +02:00
|
|
|
@@ -187,8 +194,12 @@ xf86AutoConfig(void)
|
2018-05-19 20:13:03 +02:00
|
|
|
snprintf(buf, sizeof(buf), BUILTIN_DEVICE_SECTION,
|
|
|
|
md.matches[i], 0, md.matches[i]);
|
2012-04-20 11:32:05 +02:00
|
|
|
AppendToConfig(buf);
|
2018-05-19 20:13:03 +02:00
|
|
|
- snprintf(buf, sizeof(buf), BUILTIN_SCREEN_SECTION,
|
|
|
|
- md.matches[i], 0, md.matches[i], 0);
|
|
|
|
+ if (strcmp(md.matches[i], "fglrx") == 0)
|
|
|
|
+ snprintf(buf, sizeof(buf), BUILTIN_SCREEN_SECTION_FOR_FGLRX,
|
|
|
|
+ md.matches[i], 0, md.matches[i], 0);
|
|
|
|
+ else
|
|
|
|
+ snprintf(buf, sizeof(buf), BUILTIN_SCREEN_SECTION,
|
|
|
|
+ md.matches[i], 0, md.matches[i], 0);
|
2012-04-20 11:32:05 +02:00
|
|
|
AppendToConfig(buf);
|
2010-04-07 01:52:32 +02:00
|
|
|
}
|
2019-09-18 14:48:07 +02:00
|
|
|
|