nir: add driver_functions option to avoid inlining.
authorDave Airlie <airlied@redhat.com>
Mon, 26 Oct 2020 05:17:30 +0000 (15:17 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 01:57:50 +0000 (01:57 +0000)
commitf5bf4657fbc3943cf132a949766ac5c01a386278
tree4a86d032d0d982ceb780307b6099a96727669aa2
parent8a95b438806b8f1521de6934287da667c47aa695
nir: add driver_functions option to avoid inlining.

This adds a driver control to instruct NIR to not inline
all functions.

It adds a very simple inlining heuristic that works for
what I've played with, but will probably need to grow some
better ideas.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24687>
src/compiler/nir/nir.h
src/compiler/nir/nir_functions.c
src/compiler/spirv/spirv_to_nir.c