-/**
- * Transfer data host<->device, offset and size is in bytes
- */
-void compute_memory_transfer(struct compute_memory_pool* pool,
- struct pipe_context * pipe, int device_to_host,
- struct compute_memory_item* chunk, void* data,
- int offset_in_chunk, int size);
+void compute_memory_demote_item(struct compute_memory_pool *pool,
+ struct compute_memory_item *item, struct pipe_context *pipe);
+
+void compute_memory_free(struct compute_memory_pool* pool, int64_t id);