mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallivm: fix incorrect clamp in lp_build_linear_mip_levels()
This commit is contained in:
parent
f9d753787e
commit
e0f7c3cbf0
1 changed files with 1 additions and 1 deletions
|
|
@ -986,7 +986,7 @@ lp_build_linear_mip_levels(struct lp_build_sample_context *bld,
|
|||
last_level);
|
||||
/* compute level 1 and clamp to legal range of levels */
|
||||
*level1_out = lp_build_add(int_bld, *level0_out, int_bld->one);
|
||||
*level1_out = lp_build_min(int_bld, *level1_out, int_bld->zero);
|
||||
*level1_out = lp_build_min(int_bld, *level1_out, last_level);
|
||||
|
||||
*weight_out = lp_build_fract(float_bld, lod);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue