diff options
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index a3b1c5e4d92..46d360a7b4a 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -96,6 +96,8 @@ ilo_context_destroy(struct pipe_context *pipe) if (ilo->last_cp_bo) ilo->last_cp_bo->unreference(ilo->last_cp_bo); + util_slab_destroy(&ilo->transfer_mempool); + if (ilo->blitter) util_blitter_destroy(ilo->blitter); if (ilo->hw3d) @@ -134,6 +136,9 @@ ilo_context_create(struct pipe_screen *screen, void *priv) ilo_cp_set_flush_callback(ilo->cp, ilo_context_cp_flushed, (void *) ilo); + util_slab_create(&ilo->transfer_mempool, + sizeof(struct ilo_transfer), 64, UTIL_SLAB_SINGLETHREADED); + ilo->dirty = ILO_DIRTY_ALL; ilo->base.screen = screen; |