mesa/src
Jason Ekstrand 24d023b9fe i965/fs: Add a concept of a width to fs_reg
Every register in i965 assembly implicitly has a concept of a "width".
Usually, this is derived from the execution size of the instruction.
However, when writing a compiler it turns out that it is frequently a
useful to have the width explicitly in the register and derive the
execution size of the instruction from the widths of the registers used in
it.

This commit adds a width field to fs_reg along with an effective_width()
helper function.  The effective_width() function tells you how wide the
register effectively is when used in an instruction.  For example, uniform
values have width 1 since the data is not actually repeated, but when used
in an instruction they take on the width of the instruction.  However, for
some instructions (LOAD_PAYLOAD being the notable exception), the width is
not the same.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
2014-09-30 10:29:14 -07:00
..
egl egl: setup screen iterator before using it 2014-09-29 15:12:11 +03:00
gallium radeonsi: Pass the slice size to si_dma_copy_buffer 2014-09-30 18:55:48 +09: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: Allow texture2DProjLod and textureCubeLod in GL ES 2014-09-29 11:10:38 +03: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/fs: Add a concept of a width to fs_reg 2014-09-30 10:29:14 -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