From: Eric Anholt Date: Mon, 25 Apr 2011 02:57:33 +0000 (-0700) Subject: i965: Fix up state dumping for SF state. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb7ff01deb5c1eb813b90da6f40d987a67e2793b;p=mesa.git i965: Fix up state dumping for SF state. It was moved to state streaming a while back and this was left over. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index 4313b2aaa98..ce3ca39cffe 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -397,8 +397,9 @@ void brw_debug_batch(struct intel_context *intel) brw_debug_prog("GS prog", brw->gs.prog_bo); if (intel->gen < 6) { - state_struct_out("SF", brw->sf.state_bo, 0, sizeof(struct brw_sf_unit_state)); - brw_debug_prog("SF prog", brw->sf.prog_bo); + state_struct_out("SF", intel->batch.bo, brw->sf.state_offset, + sizeof(struct brw_sf_unit_state)); + brw_debug_prog("SF prog", brw->sf.prog_bo); } dump_sf_viewport_state(brw);