diff options
author | Marek Olšák <[email protected]> | 2012-05-11 22:56:08 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-05-12 00:50:52 +0200 |
commit | f808984f438b827afff6fdbe52ac52dee8781d03 (patch) | |
tree | ecdb7ae2845cb3f864b81afe8e67e60e462c36b1 /src/gallium/drivers/r300/r300_screen.c | |
parent | 4fd60ad6dae7e5cf3eb0ab4f49bf86378230b65f (diff) |
r300g: remove slab allocator for pipe_resource (used mainly for user buffers)
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_screen.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 1e7f9276b73..82bde2a39c1 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -458,9 +458,6 @@ static void r300_destroy_screen(struct pipe_screen* pscreen) struct r300_screen* r300screen = r300_screen(pscreen); struct radeon_winsys *rws = radeon_winsys(pscreen); - util_slab_destroy(&r300screen->pool_buffers); - pipe_mutex_destroy(r300screen->num_contexts_mutex); - if (rws) rws->destroy(rws); @@ -533,12 +530,6 @@ struct pipe_screen* r300_screen_create(struct radeon_winsys *rws) if (r300screen->info.drm_minor < 8) r300screen->caps.has_us_format = FALSE; - pipe_mutex_init(r300screen->num_contexts_mutex); - - util_slab_create(&r300screen->pool_buffers, - sizeof(struct r300_resource), 64, - UTIL_SLAB_SINGLETHREADED); - r300screen->rws = rws; r300screen->screen.destroy = r300_destroy_screen; r300screen->screen.get_name = r300_get_name; |