summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-06-02 12:42:48 -0700
committerIan Romanick <[email protected]>2011-06-27 14:00:14 -0700
commitd2c6cef18aa37d197eb323a0795969d271d02819 (patch)
treead23380797bed3c7c589d7e89a7d4db1b55425d6 /src/gallium
parentc191c87c81deafd3c8e2ea48251c8e0a1cc65253 (diff)
glsl: Fix depth unbalancing problem in if-statement flattening
Previously, if max_depth were 1, the following code would see the first if-statement (correctly) not get flattened, but the second if-statement would (incorrectly) get flattened: void main() { if (a) gl_Position = vec4(0); if (b) gl_Position = vec4(1); } This is because the visit_leave(ir_if*) method would not decrement the depth before returning on the first if-statement. NOTE: This is a candidate for the 7.10 and 7.11 branches. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions