mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 06:18:10 +02:00
tu: use nir_op_ffma_weak in lowering
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41165>
This commit is contained in:
parent
c473a76e1e
commit
0082745b0a
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ tu_get_subsampled_coordinates(nir_builder *b,
|
|||
nir_def *hdr_scale = nir_channels(b, hdr0, 0x3);
|
||||
nir_def *hdr_offset = nir_channels(b, hdr0, 0xc);
|
||||
|
||||
nir_def *bin = nir_f2u16(b, nir_ffma_old(b, coords, hdr_scale, hdr_offset));
|
||||
nir_def *bin = nir_f2u16(b, nir_ffma_weak(b, coords, hdr_scale, hdr_offset));
|
||||
nir_def *bin_idx = nir_iadd(b, nir_imul(b, nir_channel(b, bin, 1),
|
||||
nir_u2u16(b, bin_stride)),
|
||||
nir_channel(b, bin, 0));
|
||||
|
|
@ -166,7 +166,7 @@ tu_get_subsampled_coordinates(nir_builder *b,
|
|||
nir_def *bin_scale = nir_channels(b, bin_data, 0x3);
|
||||
nir_def *bin_offset = nir_channels(b, bin_data, 0xc);
|
||||
|
||||
return nir_ffma_old(b, coords, bin_scale, bin_offset);
|
||||
return nir_ffma_weak(b, coords, bin_scale, bin_offset);
|
||||
}
|
||||
|
||||
/* Calculate the y coordinate in subsampled space of a given number of tiles
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue