summaryrefslogtreecommitdiff
path: root/tests/gem_linear_blits.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-03-18 18:42:44 -0700
committerBen Widawsky <ben@bwidawsk.net>2012-06-14 10:15:42 -0700
commit5a28ef8580a83375fc663b84873c4e18207ed3fb (patch)
tree0f0c7e0af273577480109c174b4f347a2483f4d5 /tests/gem_linear_blits.c
parentb28a399dcd8d28b6b9bde4baa105f9e78e520122 (diff)
context: update for new execbuf2 element
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tests/gem_linear_blits.c')
-rw-r--r--tests/gem_linear_blits.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gem_linear_blits.c b/tests/gem_linear_blits.c
index ec2ba269..fe15f1d1 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) {