[Mesa-dev] [PATCH 09/14] svga: remove assertions in svga_surface cast wrappers

Brian Paul brianp at vmware.com
Fri Aug 26 15:27:13 UTC 2016


We don't do this for other cast wrappers.  And this will simplify some
code at call sites.
---
 src/gallium/drivers/svga/svga_surface.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h
index 0e5794b..c166791 100644
--- a/src/gallium/drivers/svga/svga_surface.h
+++ b/src/gallium/drivers/svga/svga_surface.h
@@ -93,7 +93,6 @@ svga_texture_copy_handle(struct svga_context *svga,
 static inline struct svga_surface *
 svga_surface(struct pipe_surface *surface)
 {
-   assert(surface);
    return (struct svga_surface *)surface;
 }
 
@@ -101,7 +100,6 @@ svga_surface(struct pipe_surface *surface)
 static inline const struct svga_surface *
 svga_surface_const(const struct pipe_surface *surface)
 {
-   assert(surface);
    return (const struct svga_surface *)surface;
 }
 
-- 
1.9.1



More information about the mesa-dev mailing list