Merge branch 'llvm-cliptest-viewport'
[mesa.git] / src / mesa / drivers / dri / i965 / gen6_clip_state.c
index acc4b7f1019130814826b166c3ee5ac50d15822b..cd2ac9d92fe66eda1aecad6958643d185db5d5aa 100644 (file)
@@ -34,7 +34,7 @@ static void
 upload_clip_state(struct brw_context *brw)
 {
    struct intel_context *intel = &brw->intel;
-   GLcontext *ctx = &intel->ctx;
+   struct gl_context *ctx = &intel->ctx;
    uint32_t depth_clamp = 0;
    uint32_t provoking;
 
@@ -59,10 +59,8 @@ upload_clip_state(struct brw_context *brw)
             GEN6_CLIP_XY_TEST |
             depth_clamp |
             provoking);
-   OUT_BATCH(0);
+   OUT_BATCH(GEN6_CLIP_FORCE_ZERO_RTAINDEX);
    ADVANCE_BATCH();
-
-   intel_batchbuffer_emit_mi_flush(intel->batch);
 }
 
 const struct brw_tracked_state gen6_clip_state = {