i915: Fixed some warnings
authorJakob Bornecrantz <jakob@aurora.(none)>
Mon, 2 Jun 2008 10:55:35 +0000 (12:55 +0200)
committerJakob Bornecrantz <jakob@aurora.(none)>
Mon, 2 Jun 2008 11:00:32 +0000 (13:00 +0200)
src/gallium/drivers/i915simple/i915_prim_vbuf.c
src/gallium/drivers/i915simple/i915_state_emit.c

index f9297e29fcfb787698c7bb55482c161aceff2e64..adfb16fbc5ffc5452f8d61597b953f4e504ede7d 100644 (file)
@@ -253,7 +253,6 @@ draw_arrays_fallback( struct vbuf_render *render,
 {
    struct i915_vbuf_render *i915_render = i915_vbuf_render(render);
    struct i915_context *i915 = i915_render->i915;
-   struct pipe_winsys *winsys = i915->pipe.winsys;
    unsigned nr_indices;
 
    if (i915->dirty)
@@ -372,7 +371,6 @@ i915_vbuf_render_draw( struct vbuf_render *render,
 {
    struct i915_vbuf_render *i915_render = i915_vbuf_render(render);
    struct i915_context *i915 = i915_render->i915;
-   struct pipe_winsys *winsys = i915->pipe.winsys;
    unsigned save_nr_indices;
 
    save_nr_indices = nr_indices;
@@ -424,7 +422,6 @@ i915_vbuf_render_release_vertices( struct vbuf_render *render,
 {
    struct i915_vbuf_render *i915_render = i915_vbuf_render(render);
    struct i915_context *i915 = i915_render->i915;
-   struct pipe_winsys *winsys = i915->pipe.winsys;
    size_t size = (size_t)vertex_size * (size_t)vertices_used;
 
    assert(i915->vbo);
@@ -502,6 +499,7 @@ struct draw_stage *i915_draw_vbuf_stage( struct i915_context *i915 )
       render->destroy(render);
       return NULL;
    }
+   /** TODO JB: this shouldn't be here */
    draw_set_render(i915->draw, render);
 
    return stage;
index 8bcc26ad3561613338b32520627d4e6c8958b963..de0c1a787ab598b72de21c6ad1d9cc246fcb6184 100644 (file)
@@ -377,6 +377,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
    {
       uint w, h;
       boolean k = framebuffer_size(&i915->framebuffer, &w, &h);
+      (void)k;
       assert(k);
 
       OUT_BATCH(_3DSTATE_DRAW_RECT_CMD);