i965/fs: Change the type of booleans to UD and emit correct immediates
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Oct 2014 19:16:08 +0000 (12:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Oct 2014 20:36:48 +0000 (13:36 -0700)
commit4656c14e57cf31333c1db30ee58268e9f8ef9b92
tree3168f22c99cbf396857be56eeeefd581472d0373
parentffe582aa2076bc06f9d06e36287bdded45ab5b98
i965/fs: Change the type of booleans to UD and emit correct immediates

Before, we used the a signed d-word for booleans and the immedates we
emitted varried between signed and unsigned.  This commit changes the type
to unsigned (I think that makes more sense) and makes immediates more
consistent.  This allows copy propagation to work better cleans up some
instructions.

total instructions in shared programs: 5473519 -> 5465864 (-0.14%)
instructions in affected programs:     432849 -> 425194 (-1.77%)
GAINED:                                27
LOST:                                  0

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp