Re: [Mesa-dev] V3 Loop unrolling in NIR

2016-09-15 Thread Timothy Arceri
On Thu, 2016-09-15 at 12:28 +0300, Eero Tamminen wrote: > Hi, > > Have you any plans for supporting partial unrolling? Not currently no although it shouldn't be too difficult to add this. > > I.e. if the loop count is too large to be completely unrolled, unroll > it  > few times (that still fit

Re: [Mesa-dev] V3 Loop unrolling in NIR

2016-09-15 Thread Eero Tamminen
Hi, Have you any plans for supporting partial unrolling? I.e. if the loop count is too large to be completely unrolled, unroll it few times (that still fits into instruction cache) and then loop that. E.g. for a loop with 51 rounds, Mesa could unroll it 4 rounds, loop that 12 times and unrol

[Mesa-dev] V3 Loop unrolling in NIR

2016-09-15 Thread Timothy Arceri
Big thanks to Connor for his feedback on previous versions, and to Jason for answering my all my nir questions. This series works on ssa defs so for now it's only enabled for the scalar backend on Gen7+. V3: - So called complex loop unrolling has been implemented. - An instruction limit and rules