i915: Use deviceID in EGL device create
authorJakob Bornecrantz <jakob@aurora.(none)>
Tue, 8 Jul 2008 12:44:23 +0000 (14:44 +0200)
committerJakob Bornecrantz <jakob@aurora.(none)>
Tue, 8 Jul 2008 12:44:23 +0000 (14:44 +0200)
src/gallium/winsys/egl_drm/intel/intel_device.c

index a601904ba441008811aeaab71eb5835c1e744e88..b9649cbec718db6bc23535b6a676d0e7b3b44da5 100644 (file)
@@ -55,7 +55,7 @@ intel_create_device(struct egl_drm_device *device)
 
        intel_device->deviceID = device->deviceID;
 
-       intel_be_init_device(&intel_device->base, device->drmFD, PCI_CHIP_I945_GM);
+       intel_be_init_device(&intel_device->base, device->drmFD, intel_device->deviceID);
 
        intel_device->pipe = i915_create_screen(&intel_device->base.base, intel_device->deviceID);