mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
llvmpipe: clamp texcoords in lp_build_sample_compare()
See previous commit for more info. NOTE: This is a candidate for the 7.10 branch.
This commit is contained in:
parent
0eef561a5b
commit
2c1ef65a04
1 changed files with 5 additions and 0 deletions
|
|
@ -1108,6 +1108,11 @@ lp_build_sample_compare(struct lp_build_sample_context *bld,
|
|||
coord, tex);
|
||||
}
|
||||
|
||||
/* Clamp p coords to [0,1] */
|
||||
p = lp_build_clamp(&bld->coord_bld, p,
|
||||
bld->coord_bld.zero,
|
||||
bld->coord_bld.one);
|
||||
|
||||
/* result = (p FUNC texel) ? 1 : 0 */
|
||||
res = lp_build_cmp(texel_bld, bld->static_state->compare_func,
|
||||
p, texel[chan]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue