diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-27 22:03:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-04-28 14:19:48 +0100 |
commit | 93ad7793894787600c5074917c753fa7c6816134 (patch) | |
tree | 8a331cca4f93689010e9d3b2bcbdf7a9b42c955c | |
parent | 986dbdda3bf8dcf208e55543d8a3393c4b53f10b (diff) | |
download | xf86-video-intel-93ad7793894787600c5074917c753fa7c6816134.tar.gz xf86-video-intel-93ad7793894787600c5074917c753fa7c6816134.tar.bz2 xf86-video-intel-93ad7793894787600c5074917c753fa7c6816134.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 29f0e2992..43029524a 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); } |