i965: Switch to NIR for ldexp lowering.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Apr 2016 09:30:25 +0000 (02:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Apr 2016 22:44:33 +0000 (15:44 -0700)
commit505a8fbdf8f2b6d2aaab5a04244cd3329f9dbe97
treeea3ca7bca8159b3a50a887620488af5605293466
parent4455bfa9a0cc53a3c7e3c171b022cbe6d6dcdff8
i965: Switch to NIR for ldexp lowering.

The old GLSL IR based lowering doesn't quite work right in all cases,
and fails several dEQP-GLES31 and Vulkan CTS tests.  Jason's new
approach in NIR passes all the tests.  There's not likely to be a ton
of advantage to lowering early in GLSL IR anyway, so...switch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_link.cpp