diff options
author | Charmaine Lee <[email protected]> | 2016-08-17 14:53:38 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-26 06:19:52 -0600 |
commit | 5313b294e68f6b03e6b26930c68fbb30ae16e7c4 (patch) | |
tree | 905b31b38d28712ecbf2933885eece81eed7afa4 /src/gallium/drivers/svga/svga_context.c | |
parent | e292f38c6c2aba28299b988ec4654b7c02d9adb8 (diff) |
svga: add a cleanup function to clean up sampler state
This patch adds a cleanup function to clean up sampler state at
context destruction time.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 7ac90f71755..475b2b53f5e 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -66,16 +66,6 @@ static void svga_destroy( struct pipe_context *pipe ) } } - /* free polygon stipple state */ - if (svga->polygon_stipple.sampler) { - pipe->delete_sampler_state(pipe, svga->polygon_stipple.sampler); - } - if (svga->polygon_stipple.sampler_view) { - pipe->sampler_view_destroy(pipe, - &svga->polygon_stipple.sampler_view->base); - } - pipe_resource_reference(&svga->polygon_stipple.texture, NULL); - /* free HW constant buffers */ for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { pipe_resource_reference(&svga->state.hw_draw.constbuf[shader], NULL); @@ -91,9 +81,9 @@ static void svga_destroy( struct pipe_context *pipe ) util_blitter_destroy(svga->blitter); + svga_cleanup_sampler_state(svga); svga_cleanup_framebuffer( svga ); svga_cleanup_tss_binding( svga ); - svga_cleanup_vertex_state(svga); svga_destroy_swtnl( svga ); |