From: Jason Ekstrand Date: Thu, 10 Nov 2016 02:45:21 +0000 (-0800) Subject: anv/device: Silence a 32-bit warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18266247a0750f2e63dc8ba1bb790177098a0354;p=mesa.git anv/device: Silence a 32-bit warning --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 0999fcf63fe..ad7207db793 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1086,7 +1086,8 @@ anv_device_execbuf(struct anv_device *device, return vk_errorf(VK_ERROR_DEVICE_LOST, "execbuf2 failed: %m"); } - struct drm_i915_gem_exec_object2 *objects = (void *)execbuf->buffers_ptr; + struct drm_i915_gem_exec_object2 *objects = + (void *)(uintptr_t)execbuf->buffers_ptr; for (uint32_t k = 0; k < execbuf->buffer_count; k++) execbuf_bos[k]->offset = objects[k].offset;