Re: [Mesa-dev] [PATCH 05/10] nir: Lower flrp with Boolean interpolator to bcsel

2016-03-10 Thread Matt Turner
On Thu, Mar 10, 2016 at 10:25 AM, Ian Romanick wrote: > From: Ian Romanick > > On Intel platforms that don't set lower_flrp, using bcsel instead of > flrp seems to be a small amount worse. Yep, that's my experience too. It's because bcsel turns into CMP+SEL, and because of the flag register we c

[Mesa-dev] [PATCH 05/10] nir: Lower flrp with Boolean interpolator to bcsel

2016-03-10 Thread Ian Romanick
From: Ian Romanick On Intel platforms that don't set lower_flrp, using bcsel instead of flrp seems to be a small amount worse. On those platforms, the use of flrp, bcsel, and multiply of b2f is still an active area of research. shader-db results: G4X / Ironlake total instructions in shared pro