i915: Fix offsets not being used for surface targets
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 13 Jun 2008 17:07:29 +0000 (19:07 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 13 Jun 2008 17:07:29 +0000 (19:07 +0200)
src/gallium/drivers/i915simple/i915_state_emit.c

index de0c1a787ab598b72de21c6ad1d9cc246fcb6184..480b0b54c4dfbf4b5467b51f993bb0e589c7a437 100644 (file)
@@ -222,7 +222,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
 
         OUT_RELOC(cbuf_surface->buffer,
                   I915_BUFFER_ACCESS_WRITE,
-                  0);
+                  cbuf_surface->offset);
       }
 
       /* What happens if no zbuf??
@@ -238,7 +238,7 @@ i915_emit_hardware_state(struct i915_context *i915 )
 
         OUT_RELOC(depth_surface->buffer,
                   I915_BUFFER_ACCESS_WRITE,
-                  0);
+                  depth_surface->offset);
       }
    
       {