glsl: fix ldexp lowering if bitfield insert lowering is also requested
authorRoland Scheidegger <sroland@vmware.com>
Sat, 3 Dec 2016 16:08:05 +0000 (17:08 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 6 Dec 2016 03:10:43 +0000 (04:10 +0100)
commitdf33f11b39abf313a0db7b9fefaf739b88133161
treebaa8bf7b746ce641b1ed39e65ca31feb4bd23101
parent3015a23fe0eab17cde163b1de141f75c2f6410e4
glsl: fix ldexp lowering if bitfield insert lowering is also requested

Trivial, this just resurrects the code which was there once upon a time
(the code can't lower instructions generated in the lowering pass there,
and even if it could it would probably be suboptimal).
This fixes piglit mesa_shader_integer_functions fs-ldexp.shader_test and
vs-ldexp.shader_test with llvmpipe.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/lower_instructions.cpp