Mesa (mesa_7_5_branch): intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.

Eric Anholt anholt at kemper.freedesktop.org
Wed Jun 17 12:06:13 PDT 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 61a2c9668fd59dc301c2b61d46b48c974d0f0109
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=61a2c9668fd59dc301c2b61d46b48c974d0f0109

Author: Eric Anholt <eric at anholt.net>
Date:   Sun May 10 10:08:32 2009 -0700

intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
(cherry picked from commit d4a42b0ce6455d03be70aa56aacd779be193aca4)

---

 src/mesa/drivers/dri/intel/intel_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 5dc3df3..bff0b05 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -394,7 +394,7 @@ intel_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h)
     if (!driContext->driScreenPriv->dri2.enabled)
 	return;
 
-    if (!intel->internal_viewport_call) {
+    if (!intel->internal_viewport_call && ctx->DrawBuffer->Name == 0) {
        intel_update_renderbuffers(driContext, driContext->driDrawablePriv);
        if (driContext->driDrawablePriv != driContext->driReadablePriv)
 	  intel_update_renderbuffers(driContext, driContext->driReadablePriv);



More information about the mesa-commit mailing list