mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 08:50:24 +01:00
softpipe: additional assertions
This commit is contained in:
parent
0670df5cb2
commit
5dbedf3d7e
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue