glsl: Fix DIV_TO_MUL_RCP lowering for uint result types.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2011 05:47:04 +0000 (22:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jun 2011 23:07:13 +0000 (16:07 -0700)
commited92b912120394f3b19958effaa819d29bc6d059
tree08b8feed0458eb2b5d3d3b584f652bed5d7f9087
parent8eb975394478a5c1ebd2bd8a12b5eb61cef808a7
glsl: Fix DIV_TO_MUL_RCP lowering for uint result types.

f2i results in an int/ivec; we need i2u to get a uint/uvec.

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/lower_instructions.cpp