intel: cast a pointer to unsigned long, avoid potential error.
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 21 Dec 2007 09:03:55 +0000 (17:03 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 21 Dec 2007 09:03:55 +0000 (17:03 +0800)
src/mesa/drivers/dri/i915/intel_ioctl.c
src/mesa/drivers/dri/i965/intel_ioctl.c

index 37704d66ec7790db148fe88b1c2acff618d2dd36..3cd8344b48d87a479544307afdffed565c4099a6 100644 (file)
@@ -157,7 +157,7 @@ intel_exec_ioctl(struct intel_context *intel,
    execbuf.batch.DR4 = ((((GLuint) intel->drawX) & 0xffff) |
                        (((GLuint) intel->drawY) << 16));
 
-   execbuf.ops_list = (unsigned)start; // TODO
+   execbuf.ops_list = (unsigned long)start; // TODO
    execbuf.fence_arg.flags = DRM_FENCE_FLAG_SHAREABLE | DRM_I915_FENCE_FLAG_FLUSHED;
 
    if (drmCommandWriteRead(intel->driFd, DRM_I915_EXECBUFFER, &execbuf,
index c6633e81c1c206ed3289c7a5a4db6670ecd87beb..ebf5e3ae835f2aba10829d777fcdd8c487351e2d 100644 (file)
@@ -174,7 +174,7 @@ intel_exec_ioctl(struct intel_context *intel,
    execbuf.batch.DR4 = ((((GLuint) intel->drawX) & 0xffff) |
                        (((GLuint) intel->drawY) << 16));
 
-   execbuf.ops_list = (unsigned)start; // TODO
+   execbuf.ops_list = (unsigned long)start; // TODO
    execbuf.fence_arg.flags = DRM_FENCE_FLAG_SHAREABLE | DRM_I915_FENCE_FLAG_FLUSHED;
 
    if (intel->no_hw)