i965: Giant pile of flushing to track down SNB bringup issues.

This should go away before we push the code.
This commit is contained in:
Eric Anholt 2010-01-29 10:42:17 -08:00
parent d512aa3d6d
commit d971375bc1
5 changed files with 12 additions and 0 deletions

View file

@ -273,6 +273,8 @@ static void upload_cc_state_pointers(struct brw_context *brw)
OUT_RELOC(brw->cc.blend_state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
OUT_RELOC(brw->cc.depth_stencil_state_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
ADVANCE_BATCH();
intel_batchbuffer_emit_mi_flush(intel->batch);
}

View file

@ -64,6 +64,8 @@ upload_clip_state(struct brw_context *brw)
provoking);
OUT_BATCH(0);
ADVANCE_BATCH();
intel_batchbuffer_emit_mi_flush(intel->batch);
}
const struct brw_tracked_state gen6_clip_state = {

View file

@ -74,6 +74,8 @@ upload_gs_state(struct brw_context *brw)
OUT_BATCH(0);
OUT_BATCH(0);
ADVANCE_BATCH();
intel_batchbuffer_emit_mi_flush(intel->batch);
}
const struct brw_tracked_state gen6_gs_state = {

View file

@ -68,6 +68,8 @@ upload_urb(struct brw_context *brw)
OUT_BATCH(((brw->urb.vs_size - 1) << GEN6_URB_GS_SIZE_SHIFT) |
((brw->urb.nr_gs_entries) << GEN6_URB_GS_SIZE_SHIFT));
ADVANCE_BATCH();
intel_batchbuffer_emit_mi_flush(intel->batch);
}
const struct brw_tracked_state gen6_urb = {

View file

@ -59,6 +59,8 @@ upload_vs_state(struct brw_context *brw)
GEN6_VS_STATISTICS_ENABLE);
ADVANCE_BATCH();
intel_batchbuffer_emit_mi_flush(intel->batch);
if (vp->use_const_buffer || nr_params == 0) {
/* Disable the push constant buffers. */
BEGIN_BATCH(5);
@ -102,6 +104,8 @@ upload_vs_state(struct brw_context *brw)
drm_intel_bo_unreference(constant_bo);
}
intel_batchbuffer_emit_mi_flush(intel->batch);
}
const struct brw_tracked_state gen6_vs_state = {