i965: Fix up state dumping for SF state.
authorEric Anholt <eric@anholt.net>
Mon, 25 Apr 2011 02:57:33 +0000 (19:57 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 22:26:50 +0000 (15:26 -0700)
It was moved to state streaming a while back and this was left over.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_state_dump.c

index 4313b2aaa9896b913e0bb589fca5dcef46ae0787..ce3ca39cffec63ed970fd0952fc3227c7833824e 100644 (file)
@@ -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);