From: Neha Bhende Date: Thu, 11 Aug 2016 23:43:03 +0000 (-0700) Subject: svga: add svga_init_clear_functions() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40557ae07c34bedba083ad142601c4cf8691a5a3;p=mesa.git svga: add svga_init_clear_functions() define svga_init_clear_functions() and svga_clear_texture as svga->pipe.clear_texture. This is part of ARB_clear_texture extension Reviewed-by: Brian Paul Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index cbc312edbde..04acc0022bf 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -164,6 +164,7 @@ struct pipe_context *svga_context_create(struct pipe_screen *screen, svga_init_query_functions(svga); svga_init_surface_functions(svga); svga_init_stream_output_functions(svga); + svga_init_clear_functions(svga); /* init misc state */ svga->curr.sample_mask = ~0; diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index 4316c44ae29..300c74143e5 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -645,6 +645,7 @@ void svga_init_draw_functions( struct svga_context *svga ); void svga_init_query_functions( struct svga_context *svga ); void svga_init_surface_functions(struct svga_context *svga); void svga_init_stream_output_functions( struct svga_context *svga ); +void svga_init_clear_functions( struct svga_context *svga ); void svga_cleanup_vertex_state( struct svga_context *svga ); void svga_cleanup_tss_binding( struct svga_context *svga ); diff --git a/src/gallium/drivers/svga/svga_pipe_clear.c b/src/gallium/drivers/svga/svga_pipe_clear.c index abf110c6ce8..174d02c152a 100644 --- a/src/gallium/drivers/svga/svga_pipe_clear.c +++ b/src/gallium/drivers/svga/svga_pipe_clear.c @@ -452,3 +452,7 @@ svga_clear_texture(struct pipe_context *pipe, } +void svga_init_clear_functions(struct svga_context *svga) +{ + svga->pipe.clear_texture = svga_clear_texture; +}