X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fsvga%2Fsvga_surface.h;h=7b8f6f018d2d85fb8e4695f65b157ad2921e94ce;hb=25409c6da8163d9acb386511aef0c11577c7aadb;hp=afb8326e1f38703de365dc9c32d951daf2b7d332;hpb=9032d2a13ecd019206a48767d9205c0aafa7cca2;p=mesa.git diff --git a/src/gallium/drivers/svga/svga_surface.h b/src/gallium/drivers/svga/svga_surface.h index afb8326e1f3..7b8f6f018d2 100644 --- a/src/gallium/drivers/svga/svga_surface.h +++ b/src/gallium/drivers/svga/svga_surface.h @@ -56,14 +56,15 @@ struct svga_surface extern void -svga_propagate_surface(struct pipe_context *pipe, struct pipe_surface *surf); +svga_propagate_surface(struct svga_context *svga, struct pipe_surface *surf); extern boolean -svga_surface_needs_propagation(struct pipe_surface *surf); +svga_surface_needs_propagation(const struct pipe_surface *surf); struct svga_winsys_surface * -svga_texture_view_surface(struct pipe_context *pipe, +svga_texture_view_surface(struct svga_context *svga, struct svga_texture *tex, + SVGA3dSurfaceFlags flags, SVGA3dSurfaceFormat format, unsigned start_mip, unsigned num_mip, @@ -90,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