Re: [Mesa-dev] [PATCH 1/4] nir: add option to lower slt/sge/seq/sne

2015-03-31 Thread Rob Clark
On Tue, Mar 31, 2015 at 8:54 PM, Kenneth Graunke wrote: > On Tuesday, March 31, 2015 06:57:30 PM Rob Clark wrote: >> From: Rob Clark >> >> In freedreno these get implemented as the matching f* instruction plus a >> u2f to convert the result to float 1.0/0.0. But less lines of code to >> just let

Re: [Mesa-dev] [PATCH 1/4] nir: add option to lower slt/sge/seq/sne

2015-03-31 Thread Kenneth Graunke
On Tuesday, March 31, 2015 06:57:30 PM Rob Clark wrote: > From: Rob Clark > > In freedreno these get implemented as the matching f* instruction plus a > u2f to convert the result to float 1.0/0.0. But less lines of code to > just let nir_opt_algebraic handle this for us, plus opens up some small

[Mesa-dev] [PATCH 1/4] nir: add option to lower slt/sge/seq/sne

2015-03-31 Thread Rob Clark
From: Rob Clark In freedreno these get implemented as the matching f* instruction plus a u2f to convert the result to float 1.0/0.0. But less lines of code to just let nir_opt_algebraic handle this for us, plus opens up some small window for other opt passes to improve (ie. if some shader ended