glsl: Distinguish "type mismatch" error messages for modulus operator.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2011 05:21:41 +0000 (22:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jun 2011 23:07:13 +0000 (16:07 -0700)
commit8eb975394478a5c1ebd2bd8a12b5eb61cef808a7
tree06db74c2ce9b9356e00f276a64a39831d48ba8e1
parent60eb63a855cb89962f2d5bb91e238ff2d1ab8702
glsl: Distinguish "type mismatch" error messages for modulus operator.

Previously, it would simply say "type error" in three different cases:
- The LHS is not an integer
- The RHS is not an integer
- The LHS and RHS have different base types (int vs. uint)

Now the error messages state the specific problem.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ast_to_hir.cpp