summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/i915
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-03-28 17:37:33 -0700
committerVinson Lee <vlee@vmware.com>2011-03-28 17:37:33 -0700
commit2737350157cf048b436d7b64d420881ff6df9223 (patch)
treef5258048fd74f1b3027f48953e63d73b5ea1e0d4 /src/gallium/winsys/i915
parent0fbb64a52931ba5871aa2c5eb01b81d391f678d1 (diff)
downloadexternal_mesa3d-2737350157cf048b436d7b64d420881ff6df9223.zip
external_mesa3d-2737350157cf048b436d7b64d420881ff6df9223.tar.gz
external_mesa3d-2737350157cf048b436d7b64d420881ff6df9223.tar.bz2
i915g: Fix build.
Fix build failures introduced with commit 0fbb64a52931ba5871aa2c5eb01b81d391f678d1. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Diffstat (limited to 'src/gallium/winsys/i915')
-rw-r--r--src/gallium/winsys/i915/drm/i915_drm_winsys.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/winsys/i915/drm/i915_drm_winsys.c b/src/gallium/winsys/i915/drm/i915_drm_winsys.c
index a2b61cd..6c8a10d 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_winsys.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_winsys.c
@@ -1,4 +1,7 @@
#include <stdio.h>
+#include <sys/ioctl.h>
+
+#include "i915_drm.h"
#include "state_tracker/drm_driver.h"
@@ -13,13 +16,13 @@
static void
-i915_drm_get_device_id(unsigned int *device_id)
+i915_drm_get_device_id(int fd, unsigned int *device_id)
{
int ret;
struct drm_i915_getparam gp;
gp.param = I915_PARAM_CHIPSET_ID;
- gp.value = (int *)devid;
+ gp.value = (int *)device_id;
ret = ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp));
assert(ret == 0);
@@ -45,7 +48,7 @@ i915_drm_winsys_create(int drmFD)
if (!idws)
return NULL;
- i915_drm_get_device_id(&deviceID);
+ i915_drm_get_device_id(drmFD, &deviceID);
i915_drm_winsys_init_batchbuffer_functions(idws);
i915_drm_winsys_init_buffer_functions(idws);