Signed-off-by: Ben Widawsky <ben at bwidawsk.net> --- lib/drmtest.c | 2 +- tests/gem_bad_length.c | 2 +- tests/gem_exec_blt.c | 2 +- tests/gem_exec_faulting_reloc.c | 2 +- tests/gem_exec_nop.c | 2 +- tests/gem_linear_blits.c | 3 ++- tests/gen3_mixed_blits.c | 6 ++++-- tests/gen3_render_linear_blits.c | 3 ++- tests/gen3_render_mixed_blits.c | 3 ++- tests/gen3_render_tiledx_blits.c | 3 ++- tests/gen3_render_tiledy_blits.c | 3 ++- 11 files changed, 19 insertions(+), 12 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index eb429b5..69b7c8d 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -102,7 +102,7 @@ void gem_quiescent_gpu(int fd) execbuf.DR1 = 0; execbuf.DR4 = 0; execbuf.flags = 0; - execbuf.rsvd1 = 0; + i915_execbuffer2_set_context_id(execbuf, 0); execbuf.rsvd2 = 0; do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf); diff --git a/tests/gem_bad_length.c b/tests/gem_bad_length.c index 512effa..41f44d7 100644 --- a/tests/gem_bad_length.c +++ b/tests/gem_bad_length.c @@ -107,7 +107,7 @@ static void exec0(int fd) execbuf.DR1 = 0; execbuf.DR4 = 0; execbuf.flags = 0; - execbuf.rsvd1 = 0; + i915_execbuffer2_set_context_id(execbuf, 0); execbuf.rsvd2 = 0; printf("trying to run an empty batchbuffer\n"); diff --git a/tests/gem_exec_blt.c b/tests/gem_exec_blt.c index 472065c..eb5ae66 100644 --- a/tests/gem_exec_blt.c +++ b/tests/gem_exec_blt.c @@ -224,7 +224,7 @@ static void run(int object_size) execbuf.DR1 = 0; execbuf.DR4 = 0; execbuf.flags = ring; - execbuf.rsvd1 = 0; + i915_execbuffer2_set_context_id(execbuf, 0); execbuf.rsvd2 = 0; for (count = 1; count <= 1<<17; count <<= 1) { diff --git a/tests/gem_exec_faulting_reloc.c b/tests/gem_exec_faulting_reloc.c index e67056d..863a1b0 100644 --- a/tests/gem_exec_faulting_reloc.c +++ b/tests/gem_exec_faulting_reloc.c @@ -207,7 +207,7 @@ static void run(int object_size) execbuf.DR1 = 0; execbuf.DR4 = 0; execbuf.flags = ring; - execbuf.rsvd1 = 0; + i915_execbuffer2_set_context_id(execbuf, 0); execbuf.rsvd2 = 0; gem_exec(fd, &execbuf); diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index d2b35ed..9dd055c 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -75,7 +75,7 @@ static int exec(int fd, uint32_t handle, int loops) execbuf.DR1 = 0; execbuf.DR4 = 0; execbuf.flags = 0; - execbuf.rsvd1 = 0; + i915_execbuffer2_set_context_id(execbuf, 0); execbuf.rsvd2 = 0; while (loops-- && ret == 0) { diff --git a/tests/gem_linear_blits.c b/tests/gem_linear_blits.c index ec2ba26..fe15f1d 100644 --- a/tests/gem_linear_blits.c +++ b/tests/gem_linear_blits.c @@ -130,7 +130,8 @@ copy(int fd, uint32_t dst, uint32_t src) exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = HAS_BLT_RING(intel_get_drm_devid(fd)) ? I915_EXEC_BLT : 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { diff --git a/tests/gen3_mixed_blits.c b/tests/gen3_mixed_blits.c index 0e2fdbc..5bb6d86 100644 --- a/tests/gen3_mixed_blits.c +++ b/tests/gen3_mixed_blits.c @@ -312,7 +312,8 @@ render_copy(int fd, exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { @@ -389,7 +390,8 @@ static void blt_copy(int fd, uint32_t dst, uint32_t src) exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { diff --git a/tests/gen3_render_linear_blits.c b/tests/gen3_render_linear_blits.c index f474789..529e23f 100644 --- a/tests/gen3_render_linear_blits.c +++ b/tests/gen3_render_linear_blits.c @@ -281,7 +281,8 @@ copy(int fd, uint32_t dst, uint32_t src) exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { diff --git a/tests/gen3_render_mixed_blits.c b/tests/gen3_render_mixed_blits.c index 1c3d528..1353b9d 100644 --- a/tests/gen3_render_mixed_blits.c +++ b/tests/gen3_render_mixed_blits.c @@ -295,7 +295,8 @@ copy(int fd, exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { diff --git a/tests/gen3_render_tiledx_blits.c b/tests/gen3_render_tiledx_blits.c index c9e6ff9..0e96e79 100644 --- a/tests/gen3_render_tiledx_blits.c +++ b/tests/gen3_render_tiledx_blits.c @@ -282,7 +282,8 @@ copy(int fd, uint32_t dst, uint32_t src) exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c index 922ea1d..90fc7eb 100644 --- a/tests/gen3_render_tiledy_blits.c +++ b/tests/gen3_render_tiledy_blits.c @@ -282,7 +282,8 @@ copy(int fd, uint32_t dst, uint32_t src) exec.num_cliprects = 0; exec.cliprects_ptr = 0; exec.flags = 0; - exec.rsvd1 = exec.rsvd2 = 0; + i915_execbuffer2_set_context_id(exec, 0); + exec.rsvd2 = 0; ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &exec); while (ret && errno == EBUSY) { -- 1.7.10.2