summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_screen.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-09-27 19:12:24 +0200
committerNicolai Hähnle <[email protected]>2016-10-05 15:42:22 +0200
commit8a943564fd7ebacd2437bb907535b7765ff448e4 (patch)
tree1b44f125781f42057ca4cef1c27fbe7074c851b4 /src/gallium/drivers/virgl/virgl_screen.c
parent2a83036fe29262c8761812c65d6e81c7198da54e (diff)
virgl: use the new parent/child pools for transfers
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index dd135a789d7..5f987541890 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -547,6 +547,8 @@ virgl_destroy_screen(struct pipe_screen *screen)
struct virgl_screen *vscreen = virgl_screen(screen);
struct virgl_winsys *vws = vscreen->vws;
+ slab_destroy_parent(&vscreen->texture_transfer_pool);
+
if (vws)
vws->destroy(vws);
FREE(vscreen);
@@ -581,6 +583,8 @@ virgl_create_screen(struct virgl_winsys *vws)
screen->refcnt = 1;
+ slab_create_parent(&screen->texture_transfer_pool, sizeof(struct virgl_transfer), 16);
+
util_format_s3tc_init();
return &screen->base;
}