diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c index d55e499621f..cce82c3b754 100644 --- a/src/compiler/nir/nir_lower_tex.c +++ b/src/compiler/nir/nir_lower_tex.c @@ -1509,11 +1509,7 @@ lower_sampler_lod_bias(nir_builder *b, nir_tex_instr *tex) nir_def *orig = nir_steal_tex_src(tex, src); if (orig) { - /* If bias is 16-bit but orig is 32-bit, we do a 32-bit add so the - * float conversions can fold away (which could not happen with a - * 16-bit add.) - */ - bias = nir_f2f16(b, nir_fadd(b, nir_f2fN(b, bias, orig->bit_size), orig)); + bias = nir_fadd(b, bias, nir_f2f16(b, orig)); } nir_tex_instr_add_src(tex, src, bias);