glsl: Fix constant evaluation of the rcp op.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 24 Jan 2017 19:41:46 +0000 (11:41 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 31 Jan 2017 18:32:43 +0000 (10:32 -0800)
commit6643a97de308bc100a497f18fed8819f6f6f570b
tree2e891412faa11739cf22854287e3def1ea107b27
parente81130d7a146fe6a750bf903e910dc2c7c90d513
glsl: Fix constant evaluation of the rcp op.

Will avoid a regression in a future commit that introduces some
additional rcp operations.  According to the GLSL 4.10 specification:

"Dividing by 0 results in the appropriately signed IEEE Inf."

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
src/compiler/glsl/ir_expression_operation.py