summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial
diff options
context:
space:
mode:
authorAndreas Boll <[email protected]>2012-11-21 17:52:07 +0100
committerAndreas Boll <[email protected]>2012-11-27 19:00:48 +0100
commitf65741721bcd7064e428ae2c47811fba150b1480 (patch)
treece83a9d1b8712e5b1445cbb71e75a60301c72970 /src/gallium/tests/trivial
parentcba639f2a150db41f434f163fb3a36d2b0d70642 (diff)
gallium/tests/trivial: updates for transfer functions changes
Fixes build error with configure option --enable-gallium-tests introduced in 369e46888904c6d379b8b477d9242cff1608e30e Compile tested only. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/tests/trivial')
-rw-r--r--src/gallium/tests/trivial/compute.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
index 1812090d3a0..a6ebc7cd235 100644
--- a/src/gallium/tests/trivial/compute.c
+++ b/src/gallium/tests/trivial/compute.c
@@ -201,13 +201,11 @@ static void init_tex(struct context *ctx, int slot,
*tex = ctx->screen->resource_create(ctx->screen, &ttex);
assert(*tex);
- xfer = pipe->get_transfer(pipe, *tex, 0, PIPE_TRANSFER_WRITE,
+ map = pipe->transfer_map(pipe, *tex, 0, PIPE_TRANSFER_WRITE,
&(struct pipe_box) { .width = w,
.height = h,
- .depth = 1 });
+ .depth = 1 }, &xfer);
assert(xfer);
-
- map = pipe->transfer_map(pipe, xfer);
assert(map);
for (y = 0; y < ny; ++y) {
@@ -217,7 +215,6 @@ static void init_tex(struct context *ctx, int slot,
}
pipe->transfer_unmap(pipe, xfer);
- pipe->transfer_destroy(pipe, xfer);
ctx->tex_rw[slot] = rw;
}
@@ -246,13 +243,11 @@ static void check_tex(struct context *ctx, int slot,
if (!check)
check = default_check;
- xfer = pipe->get_transfer(pipe, tex, 0, PIPE_TRANSFER_READ,
+ map = pipe->transfer_map(pipe, tex, 0, PIPE_TRANSFER_READ,
&(struct pipe_box) { .width = tex->width0,
.height = tex->height0,
- .depth = 1 });
+ .depth = 1 }, &xfer);
assert(xfer);
-
- map = pipe->transfer_map(pipe, xfer);
assert(map);
for (y = 0; y < ny; ++y) {
@@ -285,7 +280,6 @@ static void check_tex(struct context *ctx, int slot,
}
pipe->transfer_unmap(pipe, xfer);
- pipe->transfer_destroy(pipe, xfer);
if (err)
printf("(%d, %d): \x1b[31mFAIL\x1b[0m (%d)\n", x, y, err);