svga: add svga_surface_const() cast wrapper

This commit is contained in:
Brian Paul 2012-06-13 11:41:03 -06:00
parent bffb3997c3
commit 92b65637ab

View file

@ -91,4 +91,12 @@ svga_surface(struct pipe_surface *surface)
return (struct svga_surface *)surface;
}
static INLINE const struct svga_surface *
svga_surface_const(const struct pipe_surface *surface)
{
assert(surface);
return (const struct svga_surface *)surface;
}
#endif