Mesa (master): svga: remove pointless assert on unsigned >= 0

Dave Airlie airlied at kemper.freedesktop.org
Sat Dec 1 01:27:44 UTC 2012


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

Author: Dave Airlie <airlied at gmail.com>
Date:   Fri Nov 30 20:02:39 2012 +1000

svga: remove pointless assert on unsigned >= 0

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.

Reviewed-by: Brian Paul <brianp at vmware.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/svga/svga_sampler_view.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

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);
 




More information about the mesa-commit mailing list