mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 13:30:31 +01:00
svga: add svga_surface_const() cast wrapper
This commit is contained in:
parent
bffb3997c3
commit
92b65637ab
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue