summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_context.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-10 17:42:43 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-10 17:48:11 -0400
commitc4775a27e3aaa2006b98f225387499b79bc609ef (patch)
tree48f9f35afff8c326dd5b7df9d7c51d7c22e367a0 /src/mesa/drivers/dri/intel/intel_context.c
parenta86e4852f463c289eba019a4d231fbd6cae82f27 (diff)
intel: Drop intelFlush()
Now that intel_flush() deosn't use the needs_mi_flush argument, we can finally drop one of the two flush functions.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_context.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index c34ebb0d91..4612a3a087 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -228,7 +228,7 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
* buffer.
*/
if (intel->is_front_buffer_rendering) {
- intel_flush(&intel->ctx, GL_FALSE);
+ intel_flush(&intel->ctx);
intel_flush_front(&intel->ctx);
}
@@ -502,7 +502,7 @@ intelInvalidateState(GLcontext * ctx, GLuint new_state)
}
void
-intel_flush(GLcontext *ctx, GLboolean needs_mi_flush)
+intel_flush(GLcontext *ctx)
{
struct intel_context *intel = intel_context(ctx);
@@ -516,18 +516,12 @@ intel_flush(GLcontext *ctx, GLboolean needs_mi_flush)
intel_batchbuffer_flush(intel->batch);
}
-void
-intelFlush(GLcontext * ctx)
-{
- intel_flush(ctx, GL_FALSE);
-}
-
static void
intel_glFlush(GLcontext *ctx)
{
struct intel_context *intel = intel_context(ctx);
- intel_flush(ctx, GL_TRUE);
+ intel_flush(ctx);
intel_flush_front(ctx);
@@ -557,7 +551,7 @@ intelFinish(GLcontext * ctx)
struct gl_framebuffer *fb = ctx->DrawBuffer;
int i;
- intelFlush(ctx);
+ intel_flush(ctx);
for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
struct intel_renderbuffer *irb;