[Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-15 Thread Kenneth Graunke
16-wide programs use roughly twice as many registers as 8-wide, and we don't support spilling in 16-wide. So if an 8-wide program uses more than half the available GRFs, the 16-wide one almost certainly will fail to compile during register allocation. Not only that, but attempting to compiling su

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-16 Thread Paul Berry
On 15 August 2012 16:37, Kenneth Graunke wrote: > 16-wide programs use roughly twice as many registers as 8-wide, and we > don't support spilling in 16-wide. So if an 8-wide program uses more > than half the available GRFs, the 16-wide one almost certainly will fail > to compile during register

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-21 Thread Eric Anholt
Kenneth Graunke writes: > 16-wide programs use roughly twice as many registers as 8-wide, and we > don't support spilling in 16-wide. So if an 8-wide program uses more > than half the available GRFs, the 16-wide one almost certainly will fail > to compile during register allocation. > > Not only

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-22 Thread Ian Romanick
On 08/21/2012 10:49 PM, Eric Anholt wrote: Kenneth Graunke writes: 16-wide programs use roughly twice as many registers as 8-wide, and we don't support spilling in 16-wide. So if an 8-wide program uses more than half the available GRFs, the 16-wide one almost certainly will fail to compile du

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-22 Thread Matt Turner
On Wed, Aug 22, 2012 at 5:32 PM, Ian Romanick wrote: > On 08/21/2012 10:49 PM, Eric Anholt wrote: >> I don't like the idea of losing 16-wide on apps where it might have >> succeeded if we just tried. Note that a chunk of register space gets >> eaten by things that don't scale with number of pixel

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-25 Thread Kenneth Graunke
On 08/21/2012 10:49 PM, Eric Anholt wrote: > I don't like the idea of losing 16-wide on apps where it might have > succeeded if we just tried. Note that a chunk of register space gets > eaten by things that don't scale with number of pixels, like attribute > setup, push constants, and the MRF hack

Re: [Mesa-dev] [PATCH] i965/fs: Don't try 16-wide if 8-wide uses more than half the registers.

2012-08-26 Thread Eric Anholt
Kenneth Graunke writes: > On 08/21/2012 10:49 PM, Eric Anholt wrote: >> I don't like the idea of losing 16-wide on apps where it might have >> succeeded if we just tried. Note that a chunk of register space gets >> eaten by things that don't scale with number of pixels, like attribute >> setup,