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

Author: Brian Paul <[email protected]>
Date:   Wed Feb 24 13:23:10 2010 -0700

llvmpipe: added some assertions

---

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

diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c 
b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 0334705..bbc95c3 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@ -130,6 +130,9 @@ do_block_4( struct lp_rasterizer_task *rast_task,
            int c2,
            int c3 )
 {
+   assert(x >= 0);
+   assert(y >= 0);
+
    lp_rast_shade_quads(rast_task->rast,
                        rast_task->thread_index,
                        &tri->inputs, 
@@ -155,6 +158,8 @@ do_block_16( struct lp_rasterizer_task *rast_task,
    int c[3];
    int i, j;
 
+   assert(x >= 0);
+   assert(y >= 0);
    assert(x % 16 == 0);
    assert(y % 16 == 0);
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to