mesa/src
Kenneth Graunke 0bd956b34b i965: Don't force a header for texture offsets of 0.
Calling textureOffset() with an offset of <0, 0, 0> is equivalent to
calliing texture().  We don't actually need to set up an offset,
which causes a message header to be created.

A fairly common pattern is to sample at a point with a bunch of
offsets, and average them.  It's natural to write all the lookups
as textureOffset, but use <0, 0> for the center sample.

shader-db results on Skylake:

total instructions in shared programs: 9092095 -> 9092087 (-0.00%)
instructions in affected programs: 2826 -> 2818 (-0.28%)
helped: 12
HURT: 2

total cycles in shared programs: 70870166 -> 70870144 (-0.00%)
cycles in affected programs: 15924 -> 15902 (-0.14%)
helped: 2
HURT: 0

This also helps prevent code quality regressions in a future patch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by Jason Ekstrand <jason@jlekstrand.net>
2016-04-26 19:55:04 -07:00
..
compiler glsl: removing double semi-colons 2016-04-26 14:36:29 -07:00
egl egl: Remove every double semi-colon 2016-04-26 14:36:29 -07:00
gallium r600g: fix and optimize tgsi_cmp when using ABS and NEG modifier 2016-04-27 12:48:50 +10:00
gbm gbm: add GBM_FORMAT_XBGR8888 format support 2016-04-21 14:45:56 +01:00
getopt
glx glx: Remove every double semi-colon 2016-04-26 14:36:29 -07:00
gtest
hgl
intel anv: honor DESTDIR when installing icd file 2016-04-26 14:57:54 -07:00
loader loader: add a libdrm case for loader_get_device_name_for_fd 2016-04-21 14:41:41 +01:00
mapi scons: Whenever possible decide what to do based on platform and not compiler. 2016-04-26 17:17:00 +01:00
mesa i965: Don't force a header for texture offsets of 0. 2016-04-26 19:55:04 -07:00
util scons: Move fallback HAVE_* definitions to headers. 2016-04-26 17:17:00 +01:00
Makefile.am i965: Add a dependency on libisl 2016-04-21 20:44:27 -07:00
SConscript glsl: move to compiler/ 2016-01-26 16:08:33 +00:00