Re: [Mesa-dev] [PATCH v3 6/8] nir: Add a simple int64 lowering pass

2017-02-24 Thread Jason Ekstrand
On Fri, Feb 24, 2017 at 3:58 PM, Matt Turner wrote: > On Fri, Feb 24, 2017 at 3:48 PM, Jason Ekstrand > wrote: > > The algorithms used by this pass, especially for division, are heavily > > based on the work Ian Romanick did for the similar int64 lowering pass > > in the GLSL compiler. > > > > v

Re: [Mesa-dev] [PATCH v3 6/8] nir: Add a simple int64 lowering pass

2017-02-24 Thread Matt Turner
On Fri, Feb 24, 2017 at 3:48 PM, Jason Ekstrand wrote: > The algorithms used by this pass, especially for division, are heavily > based on the work Ian Romanick did for the similar int64 lowering pass > in the GLSL compiler. > > v2: Properly handle vectors > > v3: Get rid of log2_denom stuff. Sin

[Mesa-dev] [PATCH v3 6/8] nir: Add a simple int64 lowering pass

2017-02-24 Thread Jason Ekstrand
The algorithms used by this pass, especially for division, are heavily based on the work Ian Romanick did for the similar int64 lowering pass in the GLSL compiler. v2: Properly handle vectors v3: Get rid of log2_denom stuff. Since we're using bcsel, we do all the calculations anyway and this