mesa/src
Matt Turner 189ac07764 i965/vec4: Call opt_algebraic after opt_cse.
The next patch adds an algebraic optimization for the pattern

   sqrt a, b
   rcp  c, a

and turns it into

   sqrt a, b
   rsq  c, b

but many vertex shaders do

   a = sqrt(b);
   var1 /= a;
   var2 /= a;

which generates

   sqrt a, b
   rcp  c, a
   rcp  d, a

If we apply the algebraic optimization before CSE, we'll end up with

   sqrt a, b
   rsq  c, b
   rcp  d, a

Applying CSE combines the RCP instructions, preventing this from
happening.

No shader-db changes.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2014-09-30 17:09:34 -07:00
..
egl egl: setup screen iterator before using it 2014-09-29 15:12:11 +03:00
gallium gallivm: Fix build for LLVM 3.2 2014-10-01 00:29:31 +02:00
gbm gbm: Log at least one dlerror() when we fail to open any drivers. 2014-07-30 22:31:30 -07:00
getopt
glsl glsl: Don't make a name for the function return variable 2014-09-30 13:34:43 -07:00
glx include: move sarea.h next to it's only user 2014-08-21 21:47:37 +01:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl gallium/targets: Break haiku state_tracker out to own directory 2014-08-28 21:27:29 -04:00
loader loader: Check dlsym() did not fail in libudev_get_device_name_for_fd() 2014-09-23 10:25:02 +03:00
mapi mesa: remove last DJGPP remains 2014-09-27 15:20:49 +01:00
mesa i965/vec4: Call opt_algebraic after opt_cse. 2014-09-30 17:09:34 -07:00
util ralloc: Mark ralloc functions with gcc's malloc attribute. 2014-09-25 13:52:55 -07:00
Makefile.am automake: handle gallium SUBDIRs in gallium/Makefile 2014-08-13 00:46:54 +01:00
SConscript util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00