summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_expression_flattening.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-07-12 18:48:50 -0700
committerIan Romanick <[email protected]>2010-07-12 19:12:28 -0700
commit31a97868fc14d4c57681c35021571b4b61f29e20 (patch)
treec5e2bc2839b5248080b4db8b2485f209a93b5014 /src/glsl/ir_expression_flattening.cpp
parent15ce87e9f2d4f66ef87af693a284b3cc9fd870c1 (diff)
linker: Merge global-scope instructions into main
Find instructions in all shaders that are not contained in a function (i.e., initializers for global variables). "Move" these instructions to the top of the main function in the linked shader. As a side-effect, many global variables will also be copied into the linked shader.
Diffstat (limited to 'src/glsl/ir_expression_flattening.cpp')
0 files changed, 0 insertions, 0 deletions