diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-17 10:40:28 -0800 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-11-17 11:58:56 -0800 |
commit | e16c9d5d03a4606b37cbeb84358925913086d6eb (patch) | |
tree | 8d5c7dc1f41f1adc90687f07b1184b253c7b0430 /configs/linux | |
parent | fb7ae06f59f534f4a266dc4b85a5f7b8ae04b3a3 (diff) |
glsl: Fix constant expression handling for <, >, <=, >= on vectors.
ir_binop_less, ir_binop_greater, ir_binop_lequal, and ir_binop_gequal
are defined to work on vectors as well as scalars, as long as the two
operands have the same type.
This is evident from both ir_validate.cpp and our use of these opcodes
in the GLSL lessThan, greaterThan, lessThanEqual, greaterThanEqual
built-in functions.
Found by code inspection. Not known to fix any bugs. Presumably, our
tests for the built-in comparison functions must pass because C.E.
handling is done on the ir_call of "greaterThan" rather than the inlined
opcode. The C.E. handling of the built-in function calls is correct.
NOTE: This is a candidate for the 7.9 branch.
Diffstat (limited to 'configs/linux')
0 files changed, 0 insertions, 0 deletions