open-src/xserver/xorg/6721634.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 14 Mar 2011 15:37:30 -0700
changeset 1088 1c99106ccbe0
parent 943 294f64612d23
child 1124 7bc7e624f965
permissions -rw-r--r--
6983602 Xorg 1.9 integration [PSARC/2011/008]
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
943
294f64612d23 6948254 Mass update of X gate sources to Oracle copyright format
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
     1
# Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
     2
#
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
     3
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     4
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     5
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     6
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     7
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     8
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
     9
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    10
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    11
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    12
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    15
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    16
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    17
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    19
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    20
# DEALINGS IN THE SOFTWARE.
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    21
diff -Nurp -x '*~' -x '*.orig' hw/xfree86/common/xf86AutoConfig.c hw/xfree86/common/xf86AutoConfig.c
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    22
--- hw/xfree86/common/xf86AutoConfig.c	2010-06-10 07:07:55.000000000 -0700
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    23
+++ hw/xfree86/common/xf86AutoConfig.c	2010-09-03 16:45:29.769441097 -0700
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    24
@@ -59,6 +59,18 @@
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    25
 	"\tIdentifier\t" BUILTIN_DEVICE_NAME "\n" \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    26
 	"\tDriver\t\"%s\"\n"
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    27
 
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    28
+#ifdef sun
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    29
+/* 
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    30
+ * Allow setting an arbitrary number of options.
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    31
+ * Each option should be indented with a tab and newline terminated.
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    32
+ */ 
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    33
+#define BUILTIN_DEVICE_SECTION_PRE_OPT \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    34
+	"Section \"Device\"\n" \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    35
+	"\tIdentifier\t" BUILTIN_DEVICE_NAME "\n" \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    36
+	"\tDriver\t\"%s\"\n" \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    37
+	"%s"
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    38
+#endif
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    39
+
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    40
 #define BUILTIN_DEVICE_SECTION_POST \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    41
 	"EndSection\n\n"
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    42
 
705
24ca414edbff 6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    43
@@ -66,6 +78,13 @@
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    44
 	BUILTIN_DEVICE_SECTION_PRE \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    45
 	BUILTIN_DEVICE_SECTION_POST
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    46
 
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    47
+#ifdef sun
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    48
+/* Device section with options */
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    49
+#define BUILTIN_DEVICE_SECTION_OPT \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    50
+	BUILTIN_DEVICE_SECTION_PRE_OPT \
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    51
+	BUILTIN_DEVICE_SECTION_POST
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    52
+#endif
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    53
+
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    54
 #define BUILTIN_SCREEN_NAME \
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    55
 	"\"Builtin Default %s Screen %d\""
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    56
 
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    57
@@ -151,6 +170,14 @@ xf86AutoConfig(void)
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    58
     listPossibleVideoDrivers(deviceList, 20);
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    59
 
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    60
     for (p = deviceList; *p; p++) {
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    61
+#ifdef sun
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    62
+	const char *nvidia_string = "nvidia";
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    63
+	const char *nvidia_opt_no_logo = "\tOption \"NoLogo\" \"True\"\n";
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    64
+	if (!strncmp(*p, nvidia_string, sizeof(nvidia_string)))
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    65
+	    snprintf(buf, sizeof(buf), BUILTIN_DEVICE_SECTION_OPT,
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    66
+		     *p, 0, *p, nvidia_opt_no_logo);
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    67
+	else
517
933104ebefbd 6721634 The Nvidia logo screen should *not* be displayed
John Martin <John.M.Martin@Sun.COM>
parents:
diff changeset
    68
+#endif
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    69
 	snprintf(buf, sizeof(buf), BUILTIN_DEVICE_SECTION, *p, 0, *p);
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    70
 	AppendToConfig(buf);
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 517
diff changeset
    71
 	snprintf(buf, sizeof(buf), BUILTIN_SCREEN_SECTION, *p, 0, *p, 0);