Mesa (master): i965: perf: fix pointer to integer cast

Lionel Landwerlin llandwerlin at kemper.freedesktop.org
Mon May 15 13:08:10 UTC 2017


Module: Mesa
Branch: master
Commit: 6d2e912cdb10c36ecc5fc4ab5f1bfb80a7fe211d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6d2e912cdb10c36ecc5fc4ab5f1bfb80a7fe211d

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Fri May 12 12:34:46 2017 +0100

i965: perf: fix pointer to integer cast

v2: Just use cast to uintptr_t (Chris)

Reported-by: Mauro Rossi <issor.oruam at gmail.com>
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

---

 src/mesa/drivers/dri/i965/brw_performance_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
index 95f112e99f..d1c4b6514b 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
@@ -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) {




More information about the mesa-commit mailing list