[Mesa-dev] [PATCH 09/36] st/nine: Remove useless check in surface9 ctor

Axel Davy axel.davy at ens.fr
Wed Dec 7 22:30:32 UTC 2016


Textures already have the check in BaseTexture9.
Non-Textures cannot be in the MANAGED Pool.

Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
 src/gallium/state_trackers/nine/surface9.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium/state_trackers/nine/surface9.c
index 2efdfd1..a172a10 100644
--- a/src/gallium/state_trackers/nine/surface9.c
+++ b/src/gallium/state_trackers/nine/surface9.c
@@ -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));
-- 
2.10.2



More information about the mesa-dev mailing list