summaryrefslogtreecommitdiffstats
path: root/src/mapi/shared-glapi
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-07-01 15:33:36 -0700
committerPaul Berry <[email protected]>2011-07-08 09:59:30 -0700
commite71b4ab8a64bf978b2036976a41e30996eebb0c8 (patch)
tree254824b4211a390f847757cbae9d9f41d65d9f48 /src/mapi/shared-glapi
parent382cee91a4bbbee45897239e6802ccaa5a5ad9c3 (diff)
glsl: In lower_jumps.cpp, lower both branches of a conditional.
Previously, lower_jumps.cpp would break out of its loop after lowering a jump instruction in just the then- or else-branch of a conditional, and it would fail to lower a jump instruction occurring in the other branch. Without this patch, lower_jumps.cpp may require multiple passes in order to lower all jumps. This results in sub-optimal output because lower_jumps.cpp produces a brand new set of temporary variables each time it is run, and the redundant temporary variables are not guaranteed to be eliminated by later optimization passes. Fixes unit test test_lower_returns_4.
Diffstat (limited to 'src/mapi/shared-glapi')
0 files changed, 0 insertions, 0 deletions