summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-07-17 14:51:16 -0400
committerMarek Olšák <[email protected]>2018-07-17 14:51:45 -0400
commitbb5449cfeee1f6ec151343e673f29a3f69b750b2 (patch)
treeaef33b0eef0305509ea00ad8771f8f41b511640e /src/gallium/drivers/r600
parent3f8fa7716de8c9603e7c1ca5767c686fd8020b9f (diff)
r600: fix warnings when unref'ing pool->bo
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/compute_memory_pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index 981d944b8d0..4c87b32fcd4 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -114,7 +114,7 @@ void compute_memory_pool_delete(struct compute_memory_pool* pool)
{
COMPUTE_DBG(pool->screen, "* compute_memory_pool_delete()\n");
free(pool->shadow);
- pipe_resource_reference(&pool->bo, NULL);
+ r600_resource_reference(&pool->bo, NULL);
/* In theory, all of the items were freed in compute_memory_free.
* Just delete the list heads
*/
@@ -157,7 +157,7 @@ static int compute_memory_grow_defrag_pool(struct compute_memory_pool *pool,
compute_memory_defrag(pool, src, dst, pipe);
/* Release the old buffer */
- pipe_resource_reference(&pool->bo, NULL);
+ r600_resource_reference(&pool->bo, NULL);
pool->bo = temp;
pool->size_in_dw = new_size_in_dw;
}
@@ -172,7 +172,7 @@ static int compute_memory_grow_defrag_pool(struct compute_memory_pool *pool,
pool->size_in_dw = new_size_in_dw;
/* Release the old buffer */
- pipe_resource_reference(&pool->bo, NULL);
+ r600_resource_reference(&pool->bo, NULL);
pool->bo = r600_compute_buffer_alloc_vram(pool->screen, pool->size_in_dw * 4);
compute_memory_shadow(pool, pipe, 0);