diff options
author | Brian Paul <[email protected]> | 2012-06-13 11:41:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-06-14 08:20:40 -0600 |
commit | 92b65637aba1bbe34e2b4b2ff10c81e5a2449de4 (patch) | |
tree | b5861d32212cdfc8dfce759dcd36b799e7df6f9d | |
parent | bffb3997c3f58c24a6049461b33b59f022e73b46 (diff) |
svga: add svga_surface_const() cast wrapper
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.h | 8 |
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 |