summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-09-22 22:20:09 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-09-22 22:20:09 +0200
commit630dd26fb41c64c1e61be6e929e025c1528e9046 (patch)
tree8acb71ca60cca522840e0a92c5205ceb2570205b
parent1459cb9252e3a07292d3e64ce961f738cd01eae4 (diff)
drm/intel: don't clobber bufmgr->pci_device
Otherwise it's pretty hard to differentiate the different chipset variants. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--intel/intel_bufmgr_gem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 4f4de929..22617ec0 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -2113,7 +2113,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
drm_intel_bufmgr_gem *bufmgr_gem;
struct drm_i915_gem_get_aperture aperture;
drm_i915_getparam_t gp;
- int ret;
+ int ret, tmp;
int exec2 = 0;
bufmgr_gem = calloc(1, sizeof(*bufmgr_gem));
@@ -2160,6 +2160,8 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
else
bufmgr_gem->gen = 6;
+ gp.value = &tmp;
+
gp.param = I915_PARAM_HAS_EXECBUF2;
ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GETPARAM, &gp);
if (!ret)