summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/fs-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/fs-test.c')
-rw-r--r--src/gallium/tests/graw/fs-test.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c
index ffb6bd269d6..04b57323d8a 100644
--- a/src/gallium/tests/graw/fs-test.c
+++ b/src/gallium/tests/graw/fs-test.c
@@ -369,12 +369,10 @@ static void init_tex( void )
{
struct pipe_transfer *t;
uint32_t *ptr;
- t = pipe_get_transfer(ctx, samptex,
- 0, 0, /* level, layer */
- PIPE_TRANSFER_READ,
- 0, 0, SIZE, SIZE); /* x, y, width, height */
-
- ptr = ctx->transfer_map(ctx, t);
+ ptr = pipe_transfer_map(ctx, samptex,
+ 0, 0, /* level, layer */
+ PIPE_TRANSFER_READ,
+ 0, 0, SIZE, SIZE, &t); /* x, y, width, height */
if (memcmp(ptr, tex2d, sizeof tex2d) != 0) {
assert(0);
@@ -382,8 +380,6 @@ static void init_tex( void )
}
ctx->transfer_unmap(ctx, t);
-
- ctx->transfer_destroy(ctx, t);
}
memset(&sv_template, 0, sizeof sv_template);