nir: replace .lower_sub with .has_fsub and .has_isub
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 4 Sep 2020 10:24:26 +0000 (11:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 Jan 2021 19:13:51 +0000 (19:13 +0000)
commitbd8e84eb8d505b755522680f478234eb0e067562
tree9a73ff0d27245725a3c7ac78674a24129fa10910
parentb3ce55b4452d120c36063c2265f9fe4c7c07975a
nir: replace .lower_sub with .has_fsub and .has_isub

This allows a more fine-grained control about whether
a backend supports one of these instructions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6597>
22 files changed:
src/amd/vulkan/radv_shader.c
src/broadcom/compiler/nir_to_vir.c
src/broadcom/vulkan/v3dv_pipeline.c
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py
src/freedreno/ir3/ir3_nir.c
src/gallium/auxiliary/nir/nir_to_tgsi.c
src/gallium/drivers/etnaviv/etnaviv_screen.c
src/gallium/drivers/freedreno/a2xx/ir2_nir.c
src/gallium/drivers/lima/lima_program.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/r600/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_get.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/zink/zink_compiler.c
src/intel/compiler/brw_compiler.c
src/microsoft/compiler/nir_to_dxil.c
src/panfrost/bifrost/bifrost_compile.h
src/panfrost/midgard/midgard_compile.h