diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-11-25 18:42:54 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-11-26 11:23:36 +0000 |
commit | 899d20cfaa003913b38ae9e095ca87b8725a19c1 (patch) | |
tree | 55aa2d147d5f8a6cbd8b4afa8e01044002a048ba | |
parent | 7fbdbad5c02e3d5bfbf0e641e2aec224e39fa974 (diff) |
st/xorg: don't bother with cso save and restore in copy func
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_renderer.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_renderer.c b/src/gallium/state_trackers/xorg/xorg_renderer.c index bf38fa7de2..c9c5ea4c21 100644 --- a/src/gallium/state_trackers/xorg/xorg_renderer.c +++ b/src/gallium/state_trackers/xorg/xorg_renderer.c @@ -595,16 +595,6 @@ static void renderer_copy_texture(struct xorg_renderer *r, PIPE_TEXTURE_USAGE_RENDER_TARGET, 0)); - /* save state (restored below) */ - cso_save_blend(r->cso); - cso_save_samplers(r->cso); - cso_save_sampler_textures(r->cso); - cso_save_framebuffer(r->cso); - cso_save_fragment_shader(r->cso); - cso_save_vertex_shader(r->cso); - - cso_save_viewport(r->cso); - /* set misc state we care about */ { @@ -665,15 +655,6 @@ static void renderer_copy_texture(struct xorg_renderer *r, pipe_buffer_reference(&buf, NULL); } - /* restore state we changed */ - cso_restore_blend(r->cso); - cso_restore_samplers(r->cso); - cso_restore_sampler_textures(r->cso); - cso_restore_framebuffer(r->cso); - cso_restore_vertex_shader(r->cso); - cso_restore_fragment_shader(r->cso); - cso_restore_viewport(r->cso); - pipe_surface_reference(&dst_surf, NULL); } |