summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program_parse_extra.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-05 10:13:10 -0700
committerEric Anholt <[email protected]>2010-08-05 10:18:45 -0700
commite995f0e10c9ee51f7c8f8fa2193ff99e1b49e40d (patch)
treebc5711a39791fa71e641625bf79fc9194b6780d8 /src/mesa/program/program_parse_extra.c
parent2e853ca23c8670246dd4efcee0706f68097652f7 (diff)
ir_to_mesa: Don't do function inlining until linking.
Optimizations at compile time should generally be done with the goal of reducing instruction count so that other work, particularly linking, is less time-consuming if the shader is used multiple times. However, function inlining increases instruction count for the inlined function bodies without removing the original function body, since we don't know if it will be used at link time or not. Reduces the runtime of linking and executing a Yo Frankie fragment shader from 0.9 seconds to 0.5 seconds (-45.9%, +/- 2.2%, n=5).
Diffstat (limited to 'src/mesa/program/program_parse_extra.c')
0 files changed, 0 insertions, 0 deletions