From: Brian Paul Date: Wed, 13 Jun 2012 17:41:03 +0000 (-0600) Subject: svga: add svga_surface_const() cast wrapper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92b65637aba1bbe34e2b4b2ff10c81e5a2449de4;p=mesa.git svga: add svga_surface_const() cast wrapper --- diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h index bffc8c22c60..7fb060c5097 100644 --- a/src/gallium/drivers/svga/svga_surface.h +++ b/src/gallium/drivers/svga/svga_surface.h @@ -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