Mesa (master): st/mesa: get rid of redundant clipping code in st_copy_texsubimage()

Brian Paul brianp at kemper.freedesktop.org
Thu Jul 21 15:12:11 UTC 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jul 19 20:03:05 2011 -0600

st/mesa: get rid of redundant clipping code in st_copy_texsubimage()

---

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

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 83e8369..25f08aa 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -1466,34 +1466,6 @@ st_copy_texsubimage(struct gl_context *ctx,
       depth/stencil samples per pixel? Need some transfer clarifications. */
    assert(sample_count < 2);
 
-   if (srcX < 0) {
-      width -= -srcX;
-      destX += -srcX;
-      srcX = 0;
-   }
-
-   if (srcY < 0) {
-      height -= -srcY;
-      destY += -srcY;
-      srcY = 0;
-   }
-
-   if (destX < 0) {
-      width -= -destX;
-      srcX += -destX;
-      destX = 0;
-   }
-
-   if (destY < 0) {
-      height -= -destY;
-      srcY += -destY;
-      destY = 0;
-   }
-
-   if (width < 0 || height < 0)
-      return;
-
-
    assert(strb);
    assert(strb->surface);
    assert(stImage->pt);




More information about the mesa-commit mailing list