[Mesa-dev] [PATCH] i965/fs: Change the type of booleans to UD and emit correct immediates

Kenneth Graunke kenneth at whitecape.org
Thu Oct 16 16:19:37 PDT 2014


On Thursday, October 16, 2014 03:40:31 PM Jason Ekstrand wrote:
> 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 at intel.com>

Surprisingly effective...seems a little too good to be true, but the changes seem reasonable...

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141016/7909ff3b/attachment.sig>


More information about the mesa-dev mailing list