diff options
author | Jason Ekstrand <[email protected]> | 2016-11-09 18:45:21 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-16 20:07:20 -0800 |
commit | 18266247a0750f2e63dc8ba1bb790177098a0354 (patch) | |
tree | 24bb403845bde5997b98a28f3dd60578432c5f6b /src | |
parent | 80786a67cf64f9d3ae21b42ab7690255105a66db (diff) |
anv/device: Silence a 32-bit warning
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |