i915: Fix INTEL_DEBUG=wm segmentation fault

The program should be disassembled after it's uploaded
This commit is contained in:
Shuang He
2010-12-15 11:16:49 +08:00
committed by Eric Anholt
parent 57dcd800ca
commit 2bd11ea119
+5 -5
View File
@@ -1162,11 +1162,6 @@ translate_program(struct i915_fragment_program *p)
fixup_depth_write(p);
i915_fini_program(p);
if (INTEL_DEBUG & DEBUG_WM) {
printf("i915:\n");
i915_disassemble_program(i915->state.Program, i915->state.ProgramSize);
}
p->translated = 1;
}
@@ -1427,6 +1422,11 @@ i915ValidateFragmentProgram(struct i915_context *i915)
if (!p->on_hardware)
i915_upload_program(i915, p);
if (INTEL_DEBUG & DEBUG_WM) {
printf("i915:\n");
i915_disassemble_program(i915->state.Program, i915->state.ProgramSize);
}
}
void