On Thursday, January 29, 2015 01:40:19 PM Jason Ekstrand wrote:
> Now that we can scalarize with NIR, there's no need for all this code
> anymore.  Let's get rid of it and just do scalar operations.
> 
> v2: run copy prop before lowering phi nodes
> 
> v3: Get rid of the "emit(...)->saturate = foo" pattern
> 
> total instructions in shared programs: 5998321 -> 5974070 (-0.40%)
> instructions in affected programs:     732075 -> 707824 (-3.31%)
> helped:                                3137
> HURT:                                  191
> GAINED:                                18
> LOST:                                  0
> ---
>  src/mesa/drivers/dri/i965/brw_fs.h       |  15 -
>  src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 476 
> ++++++++++---------------------
>  2 files changed, 153 insertions(+), 338 deletions(-)
> 

It looks like you have two separate case...case runs that result in:

   unreachable("Lowered by nir_lower_alu_reductions");

It might make sense to combine them into one big group.  (Not worth
sending a v4, just do that before pushing, if you like the suggestion.)

As is, this is:
Reviewed-by: Kenneth Graunke <kenn...@whitecape.org>

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to