Pārlūkot izejas kodu

gallivm: use trunc, not round in lp_build_nearest_mip_level()

Fixes fd.o bug 28036 (piglit fbo-cubemap.c regression)
tags/mesa-7.9-rc1
Brian Paul pirms 15 gadiem
vecāks
revīzija
e503af4baa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c

+ 1
- 1
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c Parādīt failu

@@ -961,7 +961,7 @@ lp_build_nearest_mip_level(struct lp_build_sample_context *bld,
bld->builder, unit);

/* convert float lod to integer */
level = lp_build_iround(float_bld, lod);
level = lp_build_itrunc(float_bld, lod);

/* clamp level to legal range of levels */
*level_out = lp_build_clamp(int_bld, level, zero, last_level);

Notiek ielāde…
Atcelt
Saglabāt