i965: perf: fix pointer to integer cast
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 12 May 2017 11:34:46 +0000 (12:34 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 15 May 2017 13:06:15 +0000 (14:06 +0100)
v2: Just use cast to uintptr_t (Chris)

Reported-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/brw_performance_query.c

index 95f112e99f0639250f24c25d4d1d11c1cdcf39b7..d1c4b6514bc0f23b6d38738fb71e773755950a26 100644 (file)
@@ -833,7 +833,7 @@ open_i915_perf_oa_stream(struct brw_context *brw,
                I915_PERF_FLAG_FD_NONBLOCK |
                I915_PERF_FLAG_DISABLED,
       .num_properties = ARRAY_SIZE(properties) / 2,
-      .properties_ptr = (uint64_t)properties
+      .properties_ptr = (uintptr_t) properties,
    };
    int fd = drmIoctl(drm_fd, DRM_IOCTL_I915_PERF_OPEN, &param);
    if (fd == -1) {