mesa/src
Francisco Jerez 5f8d9ae5a5 i965/fs: Fix stride for immediate registers.
When the width field was removed from fs_reg the BROADCAST handling
code in opt_algebraic() started to miss a number of trivial
optimization cases resulting in the ugly indirect-addressing sequence
to be emitted unnecessarily for some variable-indexed texturing and
UBO loads regardless of one of the sources of BROADCAST being
immediate.  Apparently the reason was that we were setting the stride
field to one for immediates even though they are typically uniform.
Width used to be set to one too which is why this optimization used to
work previously until the "reg.width == 1" check was removed.

The stride field of vector immediates is intentionally left equal to
one, because they are strictly speaking not uniform.  The assertion in
fs_generator makes sure that immediates have the expected stride as
consistency check.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
2015-07-21 17:54:00 +03:00
..
egl egl/dri2: load libglapi.0.dylib on osx 2015-07-08 13:19:33 +01:00
gallium nouveau: use bool instead of boolean 2015-07-21 00:42:53 +02:00
gbm mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
getopt
glsl nir: add nir_foreach_instr_safe_reverse() 2015-07-17 09:49:53 -07:00
glx dri3_open: don't leak the reply 2015-07-11 20:48:53 +01:00
gtest mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
hgl glapi/hgl: Drop extern "C" as it was added to glapi 2015-05-13 15:26:29 -04:00
loader loader: don't leak udev_enumerate 2015-07-11 20:49:25 +01:00
mapi mesa: Rename _mesa_lookup_enum_by_nr() to _mesa_enum_to_string(). 2015-07-20 16:45:37 -07:00
mesa i965/fs: Fix stride for immediate registers. 2015-07-21 17:54:00 +03:00
util mesa: Detect and provide macros for function attributes pure and const. 2015-07-17 12:25:54 -07:00
Makefile.am mesa: Enable subdir-objects globally. 2015-06-26 12:55:25 +01:00
SConscript scons: Don't build loader on Windows. 2015-03-25 10:42:35 +00:00