Nux

Merge lp:~didrocks/nux/disable-blacklist into lp:nux

Proposed by Didier Roche-Tolomelli
Status: Merged
Approved by: Gord Allott
Approved revision: 336
Merged at revision: 336
Proposed branch: lp:~didrocks/nux/disable-blacklist
Merge into: lp:nux
Diff against target: 28 lines (+10/-1)
1 file modified
tools/unity_support_test.c (+10/-1)
To merge this branch: bzr merge lp:~didrocks/nux/disable-blacklist
Reviewer Review Type Date Requested Status
Unity Team Pending
Review via email: mp+58469@code.launchpad.net

Description of the change

add cards to the blacklist and enabling user to bypass the check with an
environment variable (LP: #728745, #764379)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tools/unity_support_test.c'
--- tools/unity_support_test.c 2011-04-14 13:45:58 +0000
+++ tools/unity_support_test.c 2011-04-20 10:33:34 +0000
@@ -72,7 +72,10 @@
72struct PciDevice gpu_blacklist[] = {72struct PciDevice gpu_blacklist[] = {
73 { 0x8086, 0x3577 }, // Intel : 82830M/MG73 { 0x8086, 0x3577 }, // Intel : 82830M/MG
74 { 0x8086, 0x2562 }, // Intel : 82845G aka Poulsbo74 { 0x8086, 0x2562 }, // Intel : 82845G aka Poulsbo
75 { 0x1002, 0x4c57 } // ATI : Radeon Mobility 750075 { 0x1002, 0x4c57 }, // ATI : Radeon Mobility 7500
76 { 0x10de, 0x0240 }, // nVidia: GeForce 6150
77 { 0x10de, 0x01d7 }, // nVidia: GeForce Go 7300 / Quadro NVS 110M
78 { 0x10de, 0x01d8 } // nVidia: GeForce Go 7400
76};79};
7780
78// Checks whether an extension is supported by the GLX/OpenGL implementation81// Checks whether an extension is supported by the GLX/OpenGL implementation
@@ -185,6 +188,12 @@
185 char *vendor, *renderer, *version;188 char *vendor, *renderer, *version;
186 int result, major, minor;189 int result, major, minor;
187190
191 if (getenv ("UNITY_FORCE_START")) {
192 fprintf (stdout, "Warning: UNITY_FORCE_START enabled, no check for unity or compiz support.\n");
193 return 0;
194 }
195
196
188 // Basic command-line parsing.197 // Basic command-line parsing.
189 for (int i = 1; i < argc; i++) {198 for (int i = 1; i < argc; i++) {
190 if (((strncmp (argv[i], "-d", 2) == 0) ||199 if (((strncmp (argv[i], "-d", 2) == 0) ||

Subscribers

People subscribed via source and target branches