diff options
author | Brian Paul <[email protected]> | 2009-11-02 12:40:04 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-11-03 09:52:25 -0700 |
commit | bcbfda71b03303d3f008a6f3cf8cb7d9667bf8d2 (patch) | |
tree | bdbdb244d65ece593811a25c861087d7a526ffc2 /src/mesa/drivers/dri/i915 | |
parent | 644d8fd363ca7d8f40f4fa319919985cc002df9e (diff) |
intel: avoid unnecessary front buffer flushing/updating
Before, if we just called glXMakeCurrent() and didn't render anything we'd
still trigger a flushFrontBuffer() call.
Now only set the intel->front_buffer_dirty field at state validation time
just before we draw something.
NOTE: additional calls to intel_check_front_buffer_rendering() might be
needed if I missed some rendering paths.
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_tris.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_tris.c b/src/mesa/drivers/dri/i915/intel_tris.c index c3cbba8404d..bc527aae47a 100644 --- a/src/mesa/drivers/dri/i915/intel_tris.c +++ b/src/mesa/drivers/dri/i915/intel_tris.c @@ -1088,6 +1088,7 @@ intelRenderStart(GLcontext * ctx) { struct intel_context *intel = intel_context(ctx); + intel_check_front_buffer_rendering(intel); intel->vtbl.render_start(intel_context(ctx)); intel->vtbl.emit_state(intel); } |