OSDN Git Service

glsl: Define bit_logic_result_type() in ast_to_hir.cpp
authorChad Versace <chad.versace@intel.com>
Fri, 15 Oct 2010 18:28:05 +0000 (11:28 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Oct 2010 20:17:33 +0000 (13:17 -0700)
commitcfdbf8bc8497b29fbdd9fa7bd00da554aecb5962
tree75405cb84380ee7d45545f2f9d455722e119c89a
parent338ed6ec297d76746b6466c26c307722af965e60
glsl: Define bit_logic_result_type() in ast_to_hir.cpp

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