OSDN Git Service

svga: remove pointless assert on unsigned >= 0
authorDave Airlie <airlied@gmail.com>
Fri, 30 Nov 2012 10:02:39 +0000 (20:02 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 1 Dec 2012 01:25:15 +0000 (11:25 +1000)
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@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/svga/svga_sampler_view.c

index 281a44f..efbc138 100644 (file)
@@ -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);