summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/svga/svga_surface.h8
1 files changed, 8 insertions, 0 deletions
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