summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915simple
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-13 19:07:29 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-13 19:07:29 +0200
commitd1397fd779ce63416bb59662a3c96f9c0a6ef7f5 (patch)
tree493d3b07e40d15e69e05db1de010e279fa6cf20d /src/gallium/drivers/i915simple
parentc341094921da7c4ff30f81706279ead39cb3b812 (diff)
i915: Fix offsets not being used for surface targets
Diffstat (limited to 'src/gallium/drivers/i915simple')
-rw-r--r--src/gallium/drivers/i915simple/i915_state_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_state_emit.c b/src/gallium/drivers/i915simple/i915_state_emit.c
index de0c1a787a..480b0b54c4 100644
--- a/src/gallium/drivers/i915simple/i915_state_emit.c
+++ b/src/gallium/drivers/i915simple/i915_state_emit.c
@@ -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);
}
{