summaryrefslogtreecommitdiff
path: root/src/legacy/i810/i810_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-03 15:08:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-03 21:42:28 +0100
commit05dcc5f1699ba90fc14c50882e8d4be89bc4a4f9 (patch)
treeacc433746fcc878f00e3e464924151ccb0218b66 /src/legacy/i810/i810_driver.c
parent2b3f4ca33a00440a7005fef69099f8dbaddbbad1 (diff)
Pass the chipset info through driverPrivate rather than a global pointer
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/legacy/i810/i810_driver.c')
-rw-r--r--src/legacy/i810/i810_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy/i810/i810_driver.c b/src/legacy/i810/i810_driver.c
index 949fd274..fc6369ee 100644
--- a/src/legacy/i810/i810_driver.c
+++ b/src/legacy/i810/i810_driver.c
@@ -152,7 +152,7 @@ static int i810_pitches[] = {
static Bool
I810GetRec(ScrnInfoPtr scrn)
{
- if (scrn->driverPrivate)
+ if (((uintptr_t)scrn->driverPrivate & 1) == 0)
return TRUE;
scrn->driverPrivate = xnfcalloc(sizeof(I810Rec), 1);