summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_resource.h
diff options
context:
space:
mode:
authorGurchetan Singh <[email protected]>2019-01-03 16:20:47 -0800
committerGert Wollny <[email protected]>2019-02-15 11:19:04 +0100
commit168c3ffce34e8c0f81d6bf32da82c0b5427f5c89 (patch)
tree8e60c88aa0edb26e231fc27c10dd2d1bd3293ac9 /src/gallium/drivers/virgl/virgl_resource.h
parentd5c2dacc155912ad6e78afe9022aabc9af6ee697 (diff)
virgl: when creating / freeing transfers, pass slab pool directly
This will allow us to destroy transfers w/o having a pointer to the context. Reviewed-by: Gert Wollny <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_resource.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_resource.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_resource.h b/src/gallium/drivers/virgl/virgl_resource.h
index 4aa2e71ecee..3a017ef2355 100644
--- a/src/gallium/drivers/virgl/virgl_resource.h
+++ b/src/gallium/drivers/virgl/virgl_resource.h
@@ -122,13 +122,13 @@ void virgl_resource_layout(struct pipe_resource *pt,
struct virgl_resource_metadata *metadata);
struct virgl_transfer *
-virgl_resource_create_transfer(struct pipe_context *ctx,
+virgl_resource_create_transfer(struct slab_child_pool *pool,
struct pipe_resource *pres,
const struct virgl_resource_metadata *metadata,
unsigned level, unsigned usage,
const struct pipe_box *box);
-void virgl_resource_destroy_transfer(struct virgl_context *vctx,
+void virgl_resource_destroy_transfer(struct slab_child_pool *pool,
struct virgl_transfer *trans);
void virgl_resource_destroy(struct pipe_screen *screen,