diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-02-22 16:54:38 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-02-23 09:22:06 +0000 |
commit | 1fb30f1131d2a31d0752a73929ca247708d471e4 (patch) | |
tree | 006d6a1786ae718ecbe5f76282296d5510580391 /tests/gem_close_race.c | |
parent | 998e1da7e830bad248497dccf23d7309e63e1207 (diff) |
igt: Use lib gem_execbuf where possible
Replace custom execbuf ioctl wrapper with the ones in lib.
v2:
- Lib execbuf wrapper is not signal handling friendly. (Chris)
v3:
- EXECBUFFER2_WR != EXECBUFFER2. (Chris)
v4: Drop gem_exec_fence.c changes
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_close_race.c')
-rw-r--r-- | tests/gem_close_race.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gem_close_race.c b/tests/gem_close_race.c index d9a45387..bc1127b1 100644 --- a/tests/gem_close_race.c +++ b/tests/gem_close_race.c @@ -119,8 +119,7 @@ static void selfcopy(int fd, uint32_t handle, int loops) gem_pwrite.size = sizeof(buf); gem_pwrite.data_ptr = to_user_pointer(buf); if (drmIoctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &gem_pwrite) == 0) { - while (loops-- && - drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf) == 0) + while (loops-- && __gem_execbuf(fd, &execbuf) == 0) ; } |