glsl: add lowering for double divide to rcp/mul
authorDave Airlie <airlied@redhat.com>
Mon, 9 Feb 2015 06:53:10 +0000 (16:53 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Feb 2015 22:58:06 +0000 (08:58 +1000)
commit2e9f4eadfbe8e1eae657c268cb31515a872eceb4
tree42923d71577fd4248d2e85f6d887b90c5530eba3
parent0e82817247810d2aff29d8e3e9c633520924fd4a
glsl: add lowering for double divide to rcp/mul

It looks like no hw does div anyways, so we should just
lower at the GLSL level.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/lower_instructions.cpp