summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/quad-sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/quad-sample.c')
-rw-r--r--src/gallium/tests/graw/quad-sample.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gallium/tests/graw/quad-sample.c b/src/gallium/tests/graw/quad-sample.c
index 4703b83db0e..6f4b9f6e7e8 100644
--- a/src/gallium/tests/graw/quad-sample.c
+++ b/src/gallium/tests/graw/quad-sample.c
@@ -242,12 +242,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);
@@ -255,8 +253,6 @@ static void init_tex( void )
}
ctx->transfer_unmap(ctx, t);
-
- ctx->transfer_destroy(ctx, t);
}
memset(&sv_template, 0, sizeof sv_template);