Re: [Mesa-dev] [PATCH] i965: Move PSCDEPTH calculations from draw time to compile time.

2014-12-04 Thread Matt Turner
On Wed, Dec 3, 2014 at 5:58 PM, Kenneth Graunke wrote: > On Tuesday, December 02, 2014 10:34:49 AM Matt Turner wrote: >> On Tue, Dec 2, 2014 at 3:50 AM, Kenneth Graunke >> wrote: >> > The "Pixel Shader Computed Depth Mode" value is entirely based on the >> > shader program, so we can easily do i

Re: [Mesa-dev] [PATCH] i965: Move PSCDEPTH calculations from draw time to compile time.

2014-12-03 Thread Kenneth Graunke
On Tuesday, December 02, 2014 10:34:49 AM Matt Turner wrote: > On Tue, Dec 2, 2014 at 3:50 AM, Kenneth Graunke wrote: > > The "Pixel Shader Computed Depth Mode" value is entirely based on the > > shader program, so we can easily do it at compile time. This avoids the > > if+switch on every 3DSTAT

Re: [Mesa-dev] [PATCH] i965: Move PSCDEPTH calculations from draw time to compile time.

2014-12-02 Thread Matt Turner
On Tue, Dec 2, 2014 at 3:50 AM, Kenneth Graunke wrote: > The "Pixel Shader Computed Depth Mode" value is entirely based on the > shader program, so we can easily do it at compile time. This avoids the > if+switch on every 3DSTATE_WM (Gen7)/3DSTATE_PS_EXTRA (Gen8+) upload, > and shares a bit more

[Mesa-dev] [PATCH] i965: Move PSCDEPTH calculations from draw time to compile time.

2014-12-02 Thread Kenneth Graunke
The "Pixel Shader Computed Depth Mode" value is entirely based on the shader program, so we can easily do it at compile time. This avoids the if+switch on every 3DSTATE_WM (Gen7)/3DSTATE_PS_EXTRA (Gen8+) upload, and shares a bit more code. This also simplifies the PMA stall code, making it match