summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-27 22:03:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-28 14:19:48 +0100
commit93ad7793894787600c5074917c753fa7c6816134 (patch)
tree8a331cca4f93689010e9d3b2bcbdf7a9b42c955c
parent986dbdda3bf8dcf208e55543d8a3393c4b53f10b (diff)
sna: Tweak semaphores-enabled heuristic
The kernel module now defaults to -1, confusing the test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 29f0e299..43029524 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -574,7 +574,7 @@ static bool semaphores_enabled(void)
if (file) {
int value;
if (fscanf(file, "%d", &value) == 1)
- detected = value > 0;
+ detected = value != 0;
fclose(file);
}