[Mesa-dev] [PATCH 2/2] i965: perf: fix pointer to integer cast
Chris Wilson
chris at chris-wilson.co.uk
Fri May 12 11:47:07 UTC 2017
On Fri, May 12, 2017 at 12:37:26PM +0100, Lionel Landwerlin wrote:
> Reported-by: Mauro Rossi <issor.oruam at gmail.com>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin 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 95f112e99f0..fa601400cb5 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 = (uint64_t) (uintptr_t) properties,
The final cast is implict. Just the cast to uintptr_t is required to
shut the compiler up for 32b builds.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the mesa-dev
mailing list