From 0082745b0aabbf83d072e712fe8dd0dfe55db960 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Fri, 24 Apr 2026 17:50:48 +0200 Subject: [PATCH] tu: use nir_op_ffma_weak in lowering Reviewed-by: Georg Lehmann Part-of: --- src/freedreno/vulkan/tu_subsampled_image.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_subsampled_image.cc b/src/freedreno/vulkan/tu_subsampled_image.cc index a55f6bbe585..421e1843d9f 100644 --- a/src/freedreno/vulkan/tu_subsampled_image.cc +++ b/src/freedreno/vulkan/tu_subsampled_image.cc @@ -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