intel: Add a batch flush between front-buffer downsample and X protocol.
[mesa.git] / src / mesa / drivers / dri / i965 / gen7_viewport_state.c
index ecd7922e75792c52377fe45f2b1af7c7f89abc28..8c5fcac2b22e3954b12f8f7c3458aa3ed4d76c89 100644 (file)
@@ -30,8 +30,7 @@
 static void
 gen7_upload_sf_clip_viewport(struct brw_context *brw)
 {
-   struct intel_context *intel = &brw->intel;
-   struct gl_context *ctx = &intel->ctx;
+   struct gl_context *ctx = &brw->ctx;
    const GLfloat depth_scale = 1.0F / ctx->DrawBuffer->_DepthMaxF;
    GLfloat y_scale, y_bias;
    const bool render_to_fbo = _mesa_is_user_fbo(ctx->DrawBuffer);