summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_tex_sample.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-22 16:59:28 -0600
committerBrian Paul <brianp@vmware.com>2009-09-22 16:59:28 -0600
commit5dbedf3d7e99efe35fad308d382670e44cd60e25 (patch)
tree3ea197448740177714f26ed684bd35df136518a0 /src/gallium/drivers/softpipe/sp_tex_sample.c
parent0670df5cb20c0b6630ab29511d9b2cbe18b47f65 (diff)
softpipe: additional assertions
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_sample.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 50460df7cd..be210d5671 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -938,6 +938,7 @@ img_filter_2d_nearest(struct tgsi_sampler *tgsi_sampler,
height = texture->height[level0];
assert(width > 0);
+ assert(height > 0);
addr.value = 0;
addr.bits.level = samp->level;
@@ -983,6 +984,7 @@ img_filter_cube_nearest(struct tgsi_sampler *tgsi_sampler,
height = texture->height[level0];
assert(width > 0);
+ assert(height > 0);
addr.value = 0;
addr.bits.level = samp->level;
@@ -1104,6 +1106,7 @@ img_filter_2d_linear(struct tgsi_sampler *tgsi_sampler,
height = texture->height[level0];
assert(width > 0);
+ assert(height > 0);
addr.value = 0;
addr.bits.level = samp->level;
@@ -1151,6 +1154,7 @@ img_filter_cube_linear(struct tgsi_sampler *tgsi_sampler,
height = texture->height[level0];
assert(width > 0);
+ assert(height > 0);
addr.value = 0;
addr.bits.level = samp->level;