Mesa (master): swrast: add missing state validation calls for Blit, Clear

Brian Paul brianp at kemper.freedesktop.org
Tue Dec 13 13:50:30 UTC 2011


Module: Mesa
Branch: master
Commit: 22e806f57013b2c116b5bfab228e0f28e25198f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22e806f57013b2c116b5bfab228e0f28e25198f4

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Dec 10 11:44:43 2011 -0700

swrast: add missing state validation calls for Blit, Clear

---

 src/mesa/swrast/s_blit.c  |    3 +++
 src/mesa/swrast/s_clear.c |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c
index f094be8..2817ec1 100644
--- a/src/mesa/swrast/s_blit.c
+++ b/src/mesa/swrast/s_blit.c
@@ -573,6 +573,9 @@ _swrast_BlitFramebuffer(struct gl_context *ctx,
       return;
    }
 
+   if (SWRAST_CONTEXT(ctx)->NewState)
+      _swrast_validate_derived(ctx);
+
    swrast_render_start(ctx);
 
    if (srcX1 - srcX0 == dstX1 - dstX0 &&
diff --git a/src/mesa/swrast/s_clear.c b/src/mesa/swrast/s_clear.c
index 615747d..851f6d1 100644
--- a/src/mesa/swrast/s_clear.c
+++ b/src/mesa/swrast/s_clear.c
@@ -213,6 +213,9 @@ _swrast_Clear(struct gl_context *ctx, GLbitfield buffers)
    if (!_mesa_check_conditional_render(ctx))
       return; /* don't clear */
 
+   if (SWRAST_CONTEXT(ctx)->NewState)
+      _swrast_validate_derived(ctx);
+
    swrast_render_start(ctx);
 
    /* do software clearing here */




More information about the mesa-commit mailing list