st/nine: Remove useless check in surface9 ctor
authorAxel Davy <axel.davy@ens.fr>
Fri, 21 Oct 2016 15:14:14 +0000 (17:14 +0200)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:44:20 +0000 (23:44 +0100)
Textures already have the check in BaseTexture9.
Non-Textures cannot be in the MANAGED Pool.

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

index 2efdfd1b878ffd046e0a89a161b8222ba91840ae..a172a10d42d99d94e171a901a59bbf94d9c85948 100644 (file)
@@ -68,10 +68,6 @@ NineSurface9_ctor( struct NineSurface9 *This,
     /* Make sure there's a Desc */
     assert(pDesc);
 
-    /* D3DUSAGE_DYNAMIC isn't allowed on managed buffers */
-    user_assert(!(pDesc->Usage & D3DUSAGE_DYNAMIC) ||
-                (pDesc->Pool != D3DPOOL_MANAGED), D3DERR_INVALIDCALL);
-
     assert(allocate || pResource || user_buffer ||
            pDesc->Format == D3DFMT_NULL);
     assert(!allocate || (!pResource && !user_buffer));