glsl: Don't support integer types for operations that can't handle them
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 9 Jul 2016 00:39:48 +0000 (17:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 17 Aug 2016 09:52:39 +0000 (10:52 +0100)
commitcd8764737e8b0caedc8500ad0829ebff6d2a3a8f
treebaf6ff30044f3f2139140b7830c14d30971dcd4f
parent437e612bd7c0aadebf3d1dc959de090266ebab67
glsl: Don't support integer types for operations that can't handle them

ir_unop_fract already forbade integer types in ir_validate.  ir_unop_rcp,
ir_unop_rsq, and ir_unop_sqrt should also forbid them in ir_validate.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_constant_expression.cpp
src/compiler/glsl/ir_validate.cpp