OSDN Git Service

glsl: Add constant evaluation of bit built-ins.
authorMatt Turner <mattst88@gmail.com>
Sun, 21 Apr 2013 19:33:59 +0000 (12:33 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 6 May 2013 17:17:13 +0000 (10:17 -0700)
commit9c04b8c28c3a8b60e896492fd1bccc923916c1c4
treec3b4c3cd78da8dace5270ab80b405abd8dfe8c4e
parent499d8c65457620c4879f6da302f0a9859ceaa2ee
glsl: Add constant evaluation of bit built-ins.

v2: Order bits from LSB end (31 - count) for ir_unop_find_msb.
v3: Add ir_triop_bitfield_extract as an exception to the op[0]->type ==
    op[1]->type assertion in ir_constant_expression.cpp.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> [v2]
src/glsl/ir_constant_expression.cpp