From 7dcba1af9d0139ead8a0288ad272ea1116aaf3b3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 13 Jun 2010 00:41:01 -0700 Subject: i965: Fix surface state dumping with INTEL_DEBUG=batch. I broke this with the state streaming changes. --- src/mesa/drivers/dri/i965/brw_state_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index cb66806ebf3..d410861bdf6 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -111,8 +111,8 @@ static void dump_wm_surface_state(struct brw_context *brw) continue; } drm_intel_bo_map(surf_bo, GL_FALSE); - surfoff = surf_bo->offset; - surf = (struct brw_surface_state *)(surf_bo->virtual); + surfoff = surf_bo->offset + brw->wm.surf_offset[i]; + surf = (struct brw_surface_state *)(surf_bo->virtual + brw->wm.surf_offset[i]); sprintf(name, "WM SS%d", i); state_out(name, surf, surfoff, 0, "%s %s\n", -- cgit v1.2.3