r300g: Compiler warning cleanup.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 14 Oct 2009 08:58:18 +0000 (01:58 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 14 Oct 2009 08:58:18 +0000 (01:58 -0700)
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_surface.c

index 7a9c098e30f10e249dab67ee153e3624c2e4d29a..b243f88bb5bdd256c8ffc34f02cc88df582a0724 100644 (file)
@@ -152,7 +152,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
     r300->winsys = r300_winsys;
 
     r300->context.winsys = (struct pipe_winsys*)r300_winsys;
-    r300->context.screen = r300_screen(screen);
+    r300->context.screen = screen;
 
     r300_init_debug(r300);
 
index ca44e0f66157d123606ed8d8dfa651ee0a6d8413..b56f7a3d1e6633ae65db8ca6d2f5558f7613c155 100644 (file)
@@ -127,7 +127,6 @@ static void r300_render_unmap_vertices(struct vbuf_render* render,
 static void r300_render_release_vertices(struct vbuf_render* render)
 {
     struct r300_render* r300render = r300_render(render);
-    struct r300_context* r300 = r300render->r300;
 
     r300render->vbo_offset += r300render->vbo_max_used;
     r300render->vbo_max_used = 0;
@@ -182,8 +181,6 @@ static void r300_prepare_render(struct r300_render* render, unsigned count)
 {
     struct r300_context* r300 = render->r300;
 
-    CS_LOCALS(r300);
-
     r300_emit_dirty_state(r300);
 }
 
@@ -213,11 +210,7 @@ static void r300_render_draw(struct vbuf_render* render,
 {
     struct r300_render* r300render = r300_render(render);
     struct r300_context* r300 = r300render->r300;
-    struct pipe_screen* screen = r300->context.screen;
-    struct pipe_buffer* index_buffer;
-    void* index_map;
     int i;
-    uint32_t index;
 
     CS_LOCALS(r300);
 
index 02b7ab91076ad6217b760d2ccfa22442b22ddb98..335b54820aaf34b176be3fe6901466d2bc6189aa 100644 (file)
@@ -193,7 +193,7 @@ static void r300_vertex_psc(struct r300_context* r300,
     struct vertex_info* vinfo = &vformat->vinfo;
     int* tab = vformat->vs_tab;
     uint32_t temp;
-    int i, attrib_count;
+    unsigned i, attrib_count;
 
     /* Vertex shaders have no semantics on their inputs,
      * so PSC should just route stuff based on their info,
index d72e734ff0c0fa724d2c6774e272cfe43a30d6a6..5cf49d20aa4985eaf612f9883e64babd5ecbfb01 100644 (file)
@@ -95,8 +95,7 @@ static void r300_surface_fill(struct pipe_context* pipe,
                               unsigned w, unsigned h,
                               unsigned color)
 {
-    int i;
-    float r, g, b, a, depth;
+    float r, g, b, a;
     struct r300_context* r300 = r300_context(pipe);
     struct r300_capabilities* caps = r300_screen(pipe->screen)->caps;
     struct r300_texture* tex = (struct r300_texture*)dest->texture;