mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 10:08:05 +02:00
nir/lower_tex: revert "optimize LOD bias lower for txl"
This reverts commit f853d285ef.
Failing a GL CTS test
https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/5866 .. apparently I ran
VK CTS but not GL CTS on that MR. Oops.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35949>
This commit is contained in:
parent
9385ea1bf0
commit
329413992e
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue