i915: Fix some warnings
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 24 Feb 2009 22:58:11 +0000 (23:58 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 25 Feb 2009 01:00:29 +0000 (02:00 +0100)
src/gallium/drivers/i915simple/i915_state_emit.c

index 26e03f5..1e1fb96 100644 (file)
@@ -214,7 +214,6 @@ i915_emit_hardware_state(struct i915_context *i915 )
         unsigned ctile = BUF_3D_USE_FENCE;
          struct i915_texture *tex = (struct i915_texture *)
                                     cbuf_surface->texture;
-         struct pipe_buffer *buffer = tex->buffer;
          assert(tex);
 
         if (tex && tex->tiled) {
@@ -238,7 +237,6 @@ i915_emit_hardware_state(struct i915_context *i915 )
         unsigned ztile = BUF_3D_USE_FENCE;
          struct i915_texture *tex = (struct i915_texture *)
                                     depth_surface->texture;
-         struct pipe_buffer *buffer = tex->buffer;
          assert(tex);
 
         if (tex && tex->tiled) {