Mesa (lp-binning): llvmpipe: remove tile clipping code

Brian Paul brianp at kemper.freedesktop.org
Thu Jan 21 16:08:21 UTC 2010


Module: Mesa
Branch: lp-binning
Commit: 7319ae0954980196822a09d914e8b7d9cad07d16
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7319ae0954980196822a09d914e8b7d9cad07d16

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jan 20 17:47:22 2010 -0700

llvmpipe: remove tile clipping code

The surface is always a multiple of the tile size now.

---

 src/gallium/drivers/llvmpipe/lp_rast.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 05901d0..e27b652 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -261,13 +261,6 @@ void lp_rast_load_color( struct lp_rasterizer *rast,
 
       if (y >= transfer->height)
 	 continue;
-      /* XXX: require tile-size aligned render target dimensions:
-       */
-      if (x + w > transfer->width)
-	 w -= x + w - transfer->width;
-
-      if (y + h > transfer->height)
-	 h -= y + h - transfer->height;
 
       assert(w >= 0);
       assert(h >= 0);
@@ -539,19 +532,6 @@ static void lp_rast_store_color( struct lp_rasterizer *rast,
       if (y >= transfer->height)
 	 continue;
 
-      /* XXX: require tile-size aligned render target dimensions:
-       */
-      if (x + w > transfer->width)
-	 w -= x + w - transfer->width;
-
-      if (y + h > transfer->height)
-	 h -= y + h - transfer->height;
-
-      assert(w >= 0);
-      assert(h >= 0);
-      assert(w <= TILE_SIZE);
-      assert(h <= TILE_SIZE);
-
       LP_DBG(DEBUG_RAST, "%s [%u] %d,%d %dx%d\n", __FUNCTION__,
 	     thread_index, x, y, w, h);
 




More information about the mesa-commit mailing list