From e7a73b75a0dbd599187b8980b2e1e1cb5dfdaf6d Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 28 Aug 2016 11:05:14 +0200 Subject: gallium: switch drivers to the slab allocator in src/util --- src/gallium/drivers/ilo/ilo_transfer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/ilo/ilo_transfer.c') diff --git a/src/gallium/drivers/ilo/ilo_transfer.c b/src/gallium/drivers/ilo/ilo_transfer.c index d243e38fbe2..87607ebe80d 100644 --- a/src/gallium/drivers/ilo/ilo_transfer.c +++ b/src/gallium/drivers/ilo/ilo_transfer.c @@ -1184,7 +1184,7 @@ ilo_transfer_unmap(struct pipe_context *pipe, pipe_resource_reference(&xfer->base.resource, NULL); - util_slab_free(&ilo->transfer_mempool, xfer); + slab_free_st(&ilo->transfer_mempool, xfer); } static void * @@ -1200,7 +1200,7 @@ ilo_transfer_map(struct pipe_context *pipe, void *ptr; /* note that xfer is not zero'd */ - xfer = util_slab_alloc(&ilo->transfer_mempool); + xfer = slab_alloc_st(&ilo->transfer_mempool); if (!xfer) { *transfer = NULL; return NULL; @@ -1226,7 +1226,7 @@ ilo_transfer_map(struct pipe_context *pipe, if (!ptr) { pipe_resource_reference(&xfer->base.resource, NULL); - util_slab_free(&ilo->transfer_mempool, xfer); + slab_free_st(&ilo->transfer_mempool, xfer); *transfer = NULL; return NULL; } -- cgit v1.2.3