diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-11-21 19:05:17 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-11-27 16:21:28 +0200 |
commit | 725da6ee7458c5227a2bc9a1b686dad8f3c6d854 (patch) | |
tree | 06c35f8b387225ce645ac3434c1a8607f38b25c4 /tests/gem_ctx_basic.c | |
parent | 3d371a7284798c96bb033a449acbad7cc29c2e29 (diff) |
rendercopy: Pass context to rendercopy functions
rendercopy does the batch buffer flush internally, so if we want
to use it with multiple contexts, we need to pass the context
in from caller.
v2: Modify rendercopy_gen8 as well
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/gem_ctx_basic.c')
-rw-r--r-- | tests/gem_ctx_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_basic.c b/tests/gem_ctx_basic.c index bc21a8a3..a2b83dfd 100644 --- a/tests/gem_ctx_basic.c +++ b/tests/gem_ctx_basic.c @@ -84,7 +84,7 @@ static void *work(void *arg) if (uncontexted) { igt_assert(rendercopy); - rendercopy(batch, &src, 0, 0, 0, 0, &dst, 0, 0); + rendercopy(batch, NULL, &src, 0, 0, 0, 0, &dst, 0, 0); } else { int ret; ret = drm_intel_bo_subdata(batch->bo, 0, 4096, batch->buffer); |