Put all the clearing related functions in svga_init_clear_functions()
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
svga->pipe.screen = screen;
svga->pipe.priv = priv;
svga->pipe.destroy = svga_destroy;
- svga->pipe.clear = svga_clear;
svga->swc = svgascreen->sws->context_create(svgascreen->sws);
if (!svga->swc)
-/***********************************************************************
- * svga_clear.c:
- */
-void svga_clear(struct pipe_context *pipe,
- unsigned buffers,
- const union pipe_color_union *color,
- double depth,
- unsigned stencil);
-
/***********************************************************************
* svga_screen_texture.c:
* Clear the given surface to the specified value.
* No masking, no scissor (clear entire buffer).
*/
-void
+static void
svga_clear(struct pipe_context *pipe, unsigned buffers,
const union pipe_color_union *color,
double depth, unsigned stencil)
void svga_init_clear_functions(struct svga_context *svga)
{
svga->pipe.clear_texture = svga_clear_texture;
+ svga->pipe.clear = svga_clear;
}