summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-14 12:29:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-14 12:29:47 +0100
commit3f764ee4c50567cfb831495d42cb6c2bb94055ad (patch)
tree3927dffc0c1c9a680f03940fd08f1f7de342112e /src
parent39845280b5a9d0ed60c6a158c3d0df9fb8756d40 (diff)
sna/dri: Presume an unknown chipset will want i965_dri.so
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_dri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index 5f237b01..d3698710 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -2148,7 +2148,8 @@ bool sna_dri_open(struct sna *sna, ScreenPtr screen)
sna->deviceName = drmGetDeviceNameFromFd(sna->kgem.fd);
memset(&info, '\0', sizeof(info));
info.fd = sna->kgem.fd;
- info.driverName = sna->kgem.gen < 40 ? "i915" : "i965";
+ info.driverName =
+ (sna->kgem.gen && sna->kgem.gen < 40) ? "i915" : "i965";
info.deviceName = sna->deviceName;
DBG(("%s: loading dri driver '%s' [gen=%d] for device '%s'\n",