mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
st/xorg: don't bother with cso save and restore in copy func
This commit is contained in:
parent
7fbdbad5c0
commit
899d20cfaa
1 changed files with 0 additions and 19 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue