From: Jakob Bornecrantz Date: Fri, 13 Jun 2008 17:07:29 +0000 (+0200) Subject: i915: Fix offsets not being used for surface targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1397fd779ce63416bb59662a3c96f9c0a6ef7f5;p=mesa.git i915: Fix offsets not being used for surface targets --- diff --git a/src/gallium/drivers/i915simple/i915_state_emit.c b/src/gallium/drivers/i915simple/i915_state_emit.c index de0c1a787ab..480b0b54c4d 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); } {