From 34723c0861f9fa955dab4902c80afb6a6e1153c3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 27 Jan 2015 14:06:44 -0800 Subject: [PATCH] i965/gen8: Include the buffer offset when emitting renderbuffer relocs Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88792 Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2