diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-14 09:47:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-14 09:48:24 +0000 |
commit | 217bd8d55e723d8bd6911d6c2ec8a9c42bdc8272 (patch) | |
tree | 9412ee7a85d559a529ebbe71c4a18c13cba30940 /tests | |
parent | c37e9cf0c4bb7bae69693fa5d5d57cf30f8db87e (diff) |
tests/pm_pc8: Fix invalid pointer-to-integer casting
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71592
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pm_pc8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index e17be1b7..bf4f19f9 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -1015,9 +1015,9 @@ static void submit_blt_cmd(uint32_t dst_handle, uint32_t x, uint32_t y, objs[1].handle = batch_handle; objs[1].relocation_count = 1; - objs[1].relocs_ptr = (uint64_t) relocs; + objs[1].relocs_ptr = (uintptr_t)relocs; - execbuf.buffers_ptr = (uint64_t) objs; + execbuf.buffers_ptr = (uintptr_t)objs; execbuf.buffer_count = 2; execbuf.batch_len = batch_size; execbuf.flags = I915_EXEC_BLT; @@ -1160,7 +1160,7 @@ static void gem_execbuf_stress_subtest(void) objs[0].handle = handle; - execbuf.buffers_ptr = (uint64_t) objs; + execbuf.buffers_ptr = (uintptr_t)objs; execbuf.buffer_count = 1; execbuf.batch_len = batch_size; execbuf.flags = I915_EXEC_RENDER; |