diff options
author | Brian Paul <[email protected]> | 2016-08-25 17:43:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-26 14:20:19 -0600 |
commit | d3d20d650dcf9916691e5e8bc4ef8bca3b2ce2ed (patch) | |
tree | 629cb07d35e8dee1cc23ad7b13b4ae1f4b9840c4 /src | |
parent | c6e89fa2153fcd32dd606fee3c5c812e12daa694 (diff) |
svga: remove assertions in svga_surface cast wrappers
We don't do this for other cast wrappers. And this will simplify some
code at call sites.
Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h index 0e5794b0b38..c166791e1e7 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; } |