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 de0c1a7..480b0b5 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);
       }
    
       {