summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2011-05-26 10:47:31 -0700
committerBen Widawsky <ben@bwidawsk.net>2011-05-26 10:47:31 -0700
commit187cb6a86b6baa8934d5b687615971948df79253 (patch)
treefc6286a193fc4f849efca6998a898acefe903ff8
parentc193c032109a265833cff3487443e068741ae77b (diff)
scratched needs to always be allocated for bpsystem_routine_temp
-rw-r--r--src/mesa/drivers/dri/i965/gen6_wm_state.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_wm_state.c b/src/mesa/drivers/dri/i965/gen6_wm_state.c
index 63eec1f6cf..108c613a48 100644
--- a/src/mesa/drivers/dri/i965/gen6_wm_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_wm_state.c
@@ -184,13 +184,13 @@ upload_wm_state(struct brw_context *brw)
OUT_BATCH(_3DSTATE_WM << 16 | (9 - 2));
OUT_RELOC(brw->wm.prog_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
OUT_BATCH(dw2);
- if (brw->wm.prog_data->total_scratch) {
- if (INTEL_DEBUG & DEBUG_BP) {
- OUT_BATCH(brw->wm.scratch_bo->offset | 6);
- } else {
+
+ /* Breakpoint always needs scratch space */
+ if (INTEL_DEBUG & DEBUG_BP) {
+ OUT_BATCH(brw->wm.scratch_bo->offset | 6);
+ } else if (brw->wm.prog_data->total_scratch) {
OUT_RELOC(brw->wm.scratch_bo, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,
ffs(brw->wm.prog_data->total_scratch) - 11);
- }
} else {
OUT_BATCH(0);
}