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 <bhenden@vmware.com>
This commit is contained in:
parent
c6e89fa215
commit
d3d20d650d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue