summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_constant_propagation.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-06-14 23:13:27 -0700
committerKenneth Graunke <[email protected]>2011-06-29 16:07:13 -0700
commit578f6a9534ec6ea1ffc6638b98f0b5570a85a19d (patch)
tree1db15f9d850971be8588993ef8b60d2df0e1af79 /src/glsl/opt_constant_propagation.cpp
parented92b912120394f3b19958effaa819d29bc6d059 (diff)
glsl: Don't use MOD_TO_FRACT lowering on GLSL 1.30's % operator.
MOD_TO_FRACT was designed to lower the GLSL 1.20 mod() function, which operates on floating point values. However, we also use ir_binop_mod for GLSL 1.30's % operator, which operates on integers. For now, make MOD_TO_FRACT only apply to floating-point mod operations. In the future, we may want to add a lowering pass for integer-based mod. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/opt_constant_propagation.cpp')
0 files changed, 0 insertions, 0 deletions