diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-03 10:21:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-03 10:23:31 +0100 |
commit | e3bc91842bf186ec149c852f48993235ef7ad27f (patch) | |
tree | fd984461a27b1f961110b4fc6ffd3120db8bf8b5 /src/sna/sna_driver.c | |
parent | affdebcb2d09cd8fdc5aadb2d8df3193587e4a06 (diff) |
sna: Allow booting on older kernels by disabling HW acceleration
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 047b8654..f7eeca58 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -294,8 +294,7 @@ static int sna_open_drm_master(ScrnInfoPtr scrn) struct sna *sna = to_sna(scrn); struct pci_device *pci = sna->PciInfo; drmSetVersion sv; - struct drm_i915_getparam gp; - int err, val; + int err; char busid[20]; int fd; @@ -335,18 +334,6 @@ static int sna_open_drm_master(ScrnInfoPtr scrn) return -1; } - val = FALSE; - - VG_CLEAR(gp); - gp.param = I915_PARAM_HAS_BLT; - gp.value = &val; - if (drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp)) { - xf86DrvMsg(scrn->scrnIndex, X_ERROR, - "Failed to detect BLT. Kernel 2.6.37 required.\n"); - drmClose(fd); - return -1; - } - dev = malloc(sizeof(*dev)); if (dev) { int flags; |