diff options
author | José Fonseca <[email protected]> | 2010-01-21 12:12:47 -0800 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-01-21 15:18:40 -0800 |
commit | 31e49dc54ee2d8b2c50ed1d19ab973f72a60f8d8 (patch) | |
tree | 414f858e9aaac32b3be6a2fc20c1cdd4111921c1 /src/gallium | |
parent | 50edefec2dd5ec2990ab2cd699478139173d5fd2 (diff) |
svga: Remove duplicate code.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_screen_buffer.c b/src/gallium/drivers/svga/svga_screen_buffer.c index cc4109dfe8a..727fd180c1e 100644 --- a/src/gallium/drivers/svga/svga_screen_buffer.c +++ b/src/gallium/drivers/svga/svga_screen_buffer.c @@ -496,10 +496,8 @@ svga_buffer_destroy( struct pipe_buffer *buf ) assert(!sbuf->needs_flush); - if(sbuf->handle) { - SVGA_DBG(DEBUG_DMA, "release sid %p sz %d\n", sbuf->handle, sbuf->base.size); - svga_screen_surface_destroy(ss, &sbuf->key, &sbuf->handle); - } + if(sbuf->handle) + svga_buffer_destroy_host_surface(ss, sbuf); if(sbuf->hw.buf) svga_buffer_destroy_hw_storage(ss, sbuf); |