diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-27 21:05:33 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-27 21:12:20 +0100 |
| commit | fc69bb0de5f072be45e327bfff0efade6880a1a9 (patch) | |
| tree | 75b0041bbf93c59e25013f43f6ad5a9aca5394d9 /lib | |
| parent | 40b45bace325b13519c4ddc71eb64665c7796350 (diff) | |
igt/gem_exec_big: Check 64bit relocation values
On gen8, we should check that the full 64bit relocation value is
correct, and we should be sure to poison the relocation offset between
runs.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ioctl_wrappers.c | 4 | ||||
| -rw-r--r-- | lib/ioctl_wrappers.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c index 67d3fd06..a269d0fd 100644 --- a/lib/ioctl_wrappers.c +++ b/lib/ioctl_wrappers.c @@ -306,7 +306,7 @@ void gem_close(int fd, uint32_t handle) * This wraps the PWRITE ioctl, which is to upload a linear data to a subrange * of a gem buffer object. */ -void gem_write(int fd, uint32_t handle, uint32_t offset, const void *buf, uint32_t length) +void gem_write(int fd, uint32_t handle, uint64_t offset, const void *buf, uint64_t length) { struct drm_i915_gem_pwrite gem_pwrite; @@ -329,7 +329,7 @@ void gem_write(int fd, uint32_t handle, uint32_t offset, const void *buf, uint32 * This wraps the PREAD ioctl, which is to download a linear data to a subrange * of a gem buffer object. */ -void gem_read(int fd, uint32_t handle, uint32_t offset, void *buf, uint32_t length) +void gem_read(int fd, uint32_t handle, uint64_t offset, void *buf, uint64_t length) { struct drm_i915_gem_pread gem_pread; diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index 2702a94d..bc5d4bd8 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -51,8 +51,8 @@ uint32_t gem_get_caching(int fd, uint32_t handle); uint32_t gem_flink(int fd, uint32_t handle); uint32_t gem_open(int fd, uint32_t name); void gem_close(int fd, uint32_t handle); -void gem_write(int fd, uint32_t handle, uint32_t offset, const void *buf, uint32_t length); -void gem_read(int fd, uint32_t handle, uint32_t offset, void *buf, uint32_t length); +void gem_write(int fd, uint32_t handle, uint64_t offset, const void *buf, uint64_t length); +void gem_read(int fd, uint32_t handle, uint64_t offset, void *buf, uint64_t length); void gem_set_domain(int fd, uint32_t handle, uint32_t read_domains, uint32_t write_domain); void gem_sync(int fd, uint32_t handle); |
