summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-06-13 11:41:03 -0600
committerBrian Paul <[email protected]>2012-06-14 08:20:40 -0600
commit92b65637aba1bbe34e2b4b2ff10c81e5a2449de4 (patch)
treeb5861d32212cdfc8dfce759dcd36b799e7df6f9d /src/gallium/drivers/svga
parentbffb3997c3f58c24a6049461b33b59f022e73b46 (diff)
svga: add svga_surface_const() cast wrapper
Diffstat (limited to 'src/gallium/drivers/svga')
-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