nir: use nir_fsub_imm
authorErik Faye-Lund <kusmabite@gmail.com>
Mon, 8 May 2023 07:54:46 +0000 (09:54 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 25 May 2023 06:59:25 +0000 (06:59 +0000)
commitc87e491107f18f4338d12a366a827522cf12af81
treeb9161c9332985cd1d65a116635bfc14d06972c29
parent0ef104b057504a67bccca518b44c03021a10e528
nir: use nir_fsub_imm

Now that we have nir_fsub_imm, let's use it to save some typing!

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23179>
12 files changed:
src/broadcom/compiler/v3d_nir_lower_io.c
src/compiler/nir/nir_lower_texcoord_replace.c
src/compiler/spirv/vtn_glsl450.c
src/freedreno/ir3/ir3_nir_lower_tess.c
src/gallium/drivers/r600/sfn/sfn_nir_lower_tess_io.cpp
src/gallium/drivers/radeonsi/si_nir_lower_resource.c
src/gallium/drivers/v3d/v3d_blit.c
src/gallium/drivers/vc4/vc4_nir_lower_blend.c
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/zink/zink_compiler.c
src/mesa/main/ff_fragment_shader.c
src/mesa/state_tracker/st_atifs_to_nir.c