st/nine: util_gen_mipmap doesn't need we reset states.
authorAxel Davy <axel.davy@ens.fr>
Thu, 19 Feb 2015 21:28:37 +0000 (22:28 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 29 Apr 2015 06:28:11 +0000 (08:28 +0200)
util_gen_mipmap uses pipe->blit, and thus doesn't need
we restore all states after using it.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/basetexture9.c

index c9e82f38bab95dc4ea42facf0ea0a58b5aabb055..7315e7873902e7379815a1ac62716cc8e127cb51 100644 (file)
@@ -404,8 +404,6 @@ NineBaseTexture9_GenerateMipSubLevels( struct NineBaseTexture9 *This )
                     first_layer, last_layer, filter);
 
     This->dirty_mip = FALSE;
-
-    NineDevice9_RestoreNonCSOState(This->base.base.device, ~0x3);
 }
 
 HRESULT