From 92b65637aba1bbe34e2b4b2ff10c81e5a2449de4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 13 Jun 2012 11:41:03 -0600 Subject: [PATCH] svga: add svga_surface_const() cast wrapper --- src/gallium/drivers/svga/svga_surface.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.11.0