mesa/src
Kenneth Graunke 43b05b8fac i965: Only emit interpolation setup if there are actual FS inputs.
Dead code elimination would get rid of the extra instructions, but
skipping this saves iterations through the optimization loop.

From shader-db:

      N     Min     Max        Median           Avg        Stddev
x 14672       3      16             3     3.1334515    0.59904168
+ 14672       1      16             3     2.8955153    0.77732963
Difference at 95.0% confidence
        -0.237936 +/- 0.0158798
        -7.59342% +/- 0.506783%
        (Student's t, pooled s = 0.693935)

Embarassingly, the classic shadow mapping shader:

   void main() { }

used to require three iterations through the optimization loop.
With this patch, it only requires one (which makes no progress).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2013-10-21 23:31:15 -07:00
..
egl egl_dri2: Set NativeVisualID to the matching GBM config for the gbm platform 2013-10-15 22:07:52 -07:00
gallium clover: Improve region and pitch argument handling in memory transfer APIs. 2013-10-21 10:47:04 -07:00
gbm gbm-dri: Support importing RGB565 buffers 2013-10-21 20:56:17 -07:00
getopt
glsl glsl: Optimize -(-expr) into expr. 2013-10-21 22:53:36 -07:00
glx glx: Generate fewer errors in MakeContextCurrent 2013-10-08 13:24:20 -04:00
gtest
mapi glapi: Add missing XML files to Makefile dependencies. 2013-10-16 20:49:43 -07:00
mesa i965: Only emit interpolation setup if there are actual FS inputs. 2013-10-21 23:31:15 -07:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-12 15:16:22 -07:00
SConscript