summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_resource.c
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-09-27 19:09:24 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-10-05 15:42:20 +0200
commit2a83036fe29262c8761812c65d6e81c7198da54e (patch)
tree8712ec0026e00dc11d0f6b55cb56763858f10474 /src/gallium/drivers/vc4/vc4_resource.c
parent0334ba150f429b7d6b0bdc003c4301e0ad5fa21d (diff)
downloadexternal_mesa3d-2a83036fe29262c8761812c65d6e81c7198da54e.zip
external_mesa3d-2a83036fe29262c8761812c65d6e81c7198da54e.tar.gz
external_mesa3d-2a83036fe29262c8761812c65d6e81c7198da54e.tar.bz2
vc4: use the new parent/child pools for transfers
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index bfa8f40..9932bb3 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -120,7 +120,7 @@ vc4_resource_transfer_unmap(struct pipe_context *pctx,
}
pipe_resource_reference(&ptrans->resource, NULL);
- slab_free_st(&vc4->transfer_pool, ptrans);
+ slab_free(&vc4->transfer_pool, ptrans);
}
static struct pipe_resource *
@@ -196,7 +196,7 @@ vc4_resource_transfer_map(struct pipe_context *pctx,
if (usage & PIPE_TRANSFER_WRITE)
rsc->writes++;
- trans = slab_alloc_st(&vc4->transfer_pool);
+ trans = slab_alloc(&vc4->transfer_pool);
if (!trans)
return NULL;