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

Author: Marek Olšák <mar...@gmail.com>
Date:   Sat May 29 15:40:51 2010 +0200

r600g: remove unused struct r600_state

What was the purpose of it?

---

 src/gallium/drivers/r600/r600_context.h |   18 ------------------
 src/gallium/drivers/r600/r600_shader.h  |    2 --
 2 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_context.h 
b/src/gallium/drivers/r600/r600_context.h
index cfaca6d..8e996b7 100644
--- a/src/gallium/drivers/r600/r600_context.h
+++ b/src/gallium/drivers/r600/r600_context.h
@@ -32,9 +32,6 @@
 #include "radeon.h"
 #include "r600_shader.h"
 
-struct r600_state;
-typedef void (*r600_state_destroy_t)(struct r600_state *rstate);
-
 /* XXX move this to a more appropriate place */
 struct r600_vertex_elements_state
 {
@@ -42,17 +39,6 @@ struct r600_vertex_elements_state
        struct pipe_vertex_element elements[32];
 };
 
-struct r600_state {
-       unsigned                type;
-       struct r600_atom        *atom;
-       void                    *state;
-       unsigned                nbuffers;
-       struct pipe_buffer      *buffer[256];
-       unsigned                nsurfaces;
-       struct pipe_surface     *surface[256];
-       r600_state_destroy_t    destroy;
-};
-
 struct r600_pipe_shader {
        unsigned                                type;
        struct r600_shader                      shader;
@@ -91,10 +77,6 @@ void r600_draw_range_elements(struct pipe_context *ctx,
                unsigned max_index, unsigned mode,
                unsigned start, unsigned count);
 
-void r600_state_destroy_common(struct r600_state *state);
-struct r600_state *r600_state_new(r600_state_destroy_t destroy);
-struct r600_state *r600_state_destroy(struct r600_state *state);
-
 void r600_init_state_functions(struct r600_context *rctx);
 void r600_init_query_functions(struct r600_context* rctx);
 struct pipe_context *r600_create_context(struct pipe_screen *screen, void 
*priv);
diff --git a/src/gallium/drivers/r600/r600_shader.h 
b/src/gallium/drivers/r600/r600_shader.h
index 6262575..3b65b29 100644
--- a/src/gallium/drivers/r600/r600_shader.h
+++ b/src/gallium/drivers/r600/r600_shader.h
@@ -26,8 +26,6 @@
 #include "r600_compiler.h"
 #include "radeon.h"
 
-struct r600_state;
-
 struct r600_shader_operand {
        struct c_vector                 *vector;
        unsigned                        sel;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to