diff options
author | Kenneth Graunke <[email protected]> | 2015-02-23 23:12:39 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-02-24 15:24:52 -0800 |
commit | d77b186871389be10a68546da0e3ada8134ae539 (patch) | |
tree | 84877adfb0fc85564cff1b1074472dad39582ed2 /src/glsl/nir/glsl_to_nir.cpp | |
parent | 44b45da994c5d827eb123fb18b501d712822baae (diff) |
glsl: Handle conditional discards in lower_discard_flow().
This pass wasn't prepared to handle conditional discards.
Instead of initializing the "discarded" temporary to "true", set it to
the condition. Then, refer to the variable for the condition, to avoid
duplicating the expression tree.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
0 files changed, 0 insertions, 0 deletions