diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-02-27 11:12:01 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-03-11 10:13:11 -0700 |
commit | b9f3331e3bef27250470e5931a09ec97e6cf35e9 (patch) | |
tree | e1750ca7805138933525fbbc8b6932553a7fee4d /src/gtest | |
parent | 82c52de544a82d725348a0f4ddbbbc0a08941af4 (diff) |
glsl: Rewrite mix(constant_bool, constant_bool, condition) as condition or !condition
An expression like 'mix(false, true, condition)' is the same as just
'condition'. Similarly, an expression like 'mix(true, false,
condition)' is the same as just '!condition'.
Expressions like 'mix(true, true, condition)' should already be handled
elsewhere.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/gtest')
0 files changed, 0 insertions, 0 deletions