Mesa (master): svga: add svga_init_clear_functions()

Brian Paul brianp at kemper.freedesktop.org
Fri Aug 26 13:39:02 UTC 2016


Module: Mesa
Branch: master
Commit: 40557ae07c34bedba083ad142601c4cf8691a5a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=40557ae07c34bedba083ad142601c4cf8691a5a3

Author: Neha Bhende <bhenden at vmware.com>
Date:   Thu Aug 11 16:43:03 2016 -0700

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 <brianp at vmware.com>
Reviewed-by: Charmaine Lee <charmainel at vmware.com>

---

 src/gallium/drivers/svga/svga_context.c    | 1 +
 src/gallium/drivers/svga/svga_context.h    | 1 +
 src/gallium/drivers/svga/svga_pipe_clear.c | 4 ++++
 3 files changed, 6 insertions(+)

diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index cbc312e..04acc00 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 4316c44..300c741 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 abf110c..174d02c 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;
+}




More information about the mesa-commit mailing list