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_render_tiled_blits.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_render_tiled_blits.c')
-rw-r--r-- | tests/gem_render_tiled_blits.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_render_tiled_blits.c b/tests/gem_render_tiled_blits.c index d2af1e33..f8af2368 100644 --- a/tests/gem_render_tiled_blits.c +++ b/tests/gem_render_tiled_blits.c @@ -130,7 +130,7 @@ int main(int argc, char **argv) int src = i % count; int dst = (i + 1) % count; - render_copy(batch, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); + render_copy(batch, NULL, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); start_val[dst] = start_val[src]; } for (i = 0; i < count; i++) @@ -141,7 +141,7 @@ int main(int argc, char **argv) int src = (i + 1) % count; int dst = i % count; - render_copy(batch, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); + render_copy(batch, NULL, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); start_val[dst] = start_val[src]; } for (i = 0; i < count; i++) @@ -155,7 +155,7 @@ int main(int argc, char **argv) if (src == dst) continue; - render_copy(batch, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); + render_copy(batch, NULL, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); start_val[dst] = start_val[src]; } for (i = 0; i < count; i++) |