From: Jason Ekstrand Date: Tue, 27 Jan 2015 22:06:44 +0000 (-0800) Subject: i965/gen8: Include the buffer offset when emitting renderbuffer relocs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34723c0861f9fa955dab4902c80afb6a6e1153c3;p=mesa.git i965/gen8: Include the buffer offset when emitting renderbuffer relocs Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88792 Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index 45c35db0a4d..639382f4209 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -450,7 +450,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw, drm_intel_bo_emit_reloc(brw->batch.bo, brw->wm.base.surf_offset[surf_index] + 8 * 4, mt->bo, - 0, + mt->offset, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER); }