glsl: Define shift_result_type() in ast_to_hir.cpp
authorChad Versace <chad.versace@intel.com>
Fri, 15 Oct 2010 16:49:46 +0000 (09:49 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Oct 2010 20:17:33 +0000 (13:17 -0700)
commitc0197ab0af94ed0f3b2d453fb1ee6589f15d8e9c
tree065cbd0c53e0279feb359eb7194637fc1c5153bf
parentf30de6964018619658439216cd8bf9371ee6256d
glsl: Define shift_result_type() in ast_to_hir.cpp

This function type checks the operands of and returns the result type of
bit-shift operations. It replaces the type checking performed in the following
cases of ast_expression::hir() :
    - ast_lshift
    - ast_rshift
src/glsl/ast_to_hir.cpp