aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_builtins.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Inline builtins in a separate passNeil Roberts2020-03-241-0/+64
Previously, the ir_call functions for builtin functions were replaced with the inline implementation immediately after being added to the instruction list. This patch replaces that with a separate pass that lowers them after the conversion from AST to IR is complete. This will be useful to be able to insert some handling for the precision lowering pass before the inlining. This needs to happen because the precision of the operations in the inlined implementation depends on the highest precision of all of the arguments to the call. Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3885>