i965: Giant pile of flushing to track down SNB bringup issues.
authorEric Anholt <eric@anholt.net>
Fri, 29 Jan 2010 18:42:17 +0000 (10:42 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 25 Feb 2010 18:53:07 +0000 (10:53 -0800)
This should go away before we push the code.

src/mesa/drivers/dri/i965/gen6_cc.c
src/mesa/drivers/dri/i965/gen6_clip_state.c
src/mesa/drivers/dri/i965/gen6_gs_state.c
src/mesa/drivers/dri/i965/gen6_urb.c
src/mesa/drivers/dri/i965/gen6_vs_state.c

index b1b6dc7db3b3b9194f59dffbbd583996d39b5480..ba1e3abe83ec206c35958ee7d7dc2963973ad099 100644 (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);
 }
 
 
index f34e5f32ccc8c7f835db3c27407e97f399acfbfd..5ddfa9aad249852fa8bbed63a032d53e5151d895 100644 (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 = {
index 31da0dc088d0a5c693f07c6e0ba006bf82d37e69..47702f7f3029ca2db6924d2439a89bd0900e054a 100644 (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 = {
index dea0aa710075bf5a1200decdc4a23e38ea9fe7f7..55f7ac7727ecd8e4c116db388de60f6d1b34d399 100644 (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 = {
index 02028713998d9bf15575356054a5a29f33d36d9e..ba00e4e1fb6e00dc0a0566320500b97cab768469 100644 (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 = {