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

Matt Turner mattst88 at gmail.com
Thu Oct 16 16:21:21 PDT 2014


On Thu, Oct 16, 2014 at 3:40 PM, Jason Ekstrand <jason at jlekstrand.net> 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

I'm pretty surprised by the shader-db results.

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the mesa-dev mailing list