projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e85c9a4
)
svga: remove pointless assert on unsigned >= 0
author
Dave Airlie
<airlied@gmail.com>
Fri, 30 Nov 2012 10:02:39 +0000
(20:02 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_sampler_view.c
b/src/gallium/drivers/svga/svga_sampler_view.c
index
281a44f
..
efbc138
100644
(file)
--- 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);