Mesa (master): mesa/st: remove redundant call to st_finish in CopyTexSubImage

Keith Whitwell keithw at kemper.freedesktop.org
Fri May 8 09:04:22 UTC 2009


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Thu May  7 19:27:30 2009 +0100

mesa/st: remove redundant call to st_finish in CopyTexSubImage

Rendering should already have been flushed, any synchronization will
be done by the driver or memory manager.

---

 src/mesa/state_tracker/st_cb_texture.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index b7b791d..98f109f 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1315,9 +1315,6 @@ st_copy_texsubimage(GLcontext *ctx,
    GLboolean use_fallback = GL_TRUE;
    GLboolean matching_base_formats;
 
-   /* any rendering in progress must complete before we grab the fb image */
-   st_finish(ctx->st);
-
    /* make sure finalize_textures has been called? 
     */
    if (0) st_validate_state(ctx->st);




More information about the mesa-commit mailing list