[Mesa-dev] [PATCH] svga: remove pointless assert on unsigned >= 0

Dave Airlie airlied at gmail.com
Fri Nov 30 02:05:04 PST 2012


all unsigneds are >= 0 :-)

There may be an argument for leaving this in, in case someone
changes min_lod to an integer, so feel free to apply or drop.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/svga/svga_sampler_view.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/svga/svga_sampler_view.c b/src/gallium/drivers/svga/svga_sampler_view.c
index 281a44f..efbc138 100644
--- a/src/gallium/drivers/svga/svga_sampler_view.c
+++ b/src/gallium/drivers/svga/svga_sampler_view.c
@@ -65,7 +65,6 @@ svga_get_tex_sampler_view(struct pipe_context *pipe,
    boolean view = TRUE;
 
    assert(pt);
-   assert(min_lod >= 0);
    assert(min_lod <= max_lod);
    assert(max_lod <= pt->last_level);
 
-- 
1.7.11.7



More information about the mesa-dev mailing list