Mesa (master): st/egl: Do not force validate when update_buffer is called.

Chia-I Wu olv at kemper.freedesktop.org
Sun Feb 21 02:22:29 UTC 2010


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

Author: Chia-I Wu <olv at lunarg.com>
Date:   Sat Feb 20 12:41:30 2010 +0800

st/egl: Do not force validate when update_buffer is called.

st/mesa was changed to call pipe_screen::update_buffer in
st_validate_state.  In most cases there is no need to validate.

---

 src/gallium/state_trackers/egl/common/egl_g3d.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c
index 80dd126..7ab2cd4 100644
--- a/src/gallium/state_trackers/egl/common/egl_g3d.c
+++ b/src/gallium/state_trackers/egl/common/egl_g3d.c
@@ -528,12 +528,6 @@ static void
 egl_g3d_update_buffer(struct pipe_screen *screen, void *context_private)
 {
    struct egl_g3d_context *gctx = egl_g3d_context(context_private);
-
-   /**
-    * It is likely that the surface has changed when this function is called.
-    * Set force_validate to skip an unnecessary check.
-    */
-   gctx->force_validate = EGL_TRUE;
    egl_g3d_validate_context(gctx->base.Resource.Display, &gctx->base);
 }
 




More information about the mesa-commit mailing list