nir: Stop passing an options arg to nir_lower_int64()
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 13 Jul 2020 18:28:16 +0000 (20:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 16:54:24 +0000 (16:54 +0000)
commitbfee35b45cc9fdf84ac7a613cf180d3c681cbb46
tree79ba0a575d4d086f9e8a351e76f907faedde652e
parent9e23925991a90a7fed48976aa52d175c95f21318
nir: Stop passing an options arg to nir_lower_int64()

This information is exposed through shader->options->lower_int64_options.
Removing the extra arg forces drivers to initialize this field correctly.

This also allows us to check the int64 lowering options from each int64
lowering helper and decide if we should lower the instructions we
introduce.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5588>
src/amd/compiler/aco_instruction_selection_setup.cpp
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_int64.c
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/frontends/clover/nir/invocation.cpp
src/intel/compiler/brw_nir.c
src/mesa/state_tracker/st_glsl_to_nir.cpp