Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Erik Faye-Lund
On Tue, Sep 15, 2015 at 6:49 PM, Rob Clark wrote: > On Tue, Sep 15, 2015 at 12:39 PM, Erik Faye-Lund wrote: >> On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: >>> On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Erik Faye-Lund
On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: > On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark wrote: >> From: Rob Clark >> >> The vertex shader lowering adds calculation for CLIPDIST, if needed >> (ie. user-clip-planes),

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Ilia Mirkin
On Tue, Sep 15, 2015 at 12:39 PM, Erik Faye-Lund wrote: > On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: >> On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> The vertex

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Rob Clark
On Tue, Sep 15, 2015 at 12:39 PM, Erik Faye-Lund wrote: > On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: >> On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> The vertex

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Erik Faye-Lund
On Tue, Sep 15, 2015 at 6:49 PM, Ilia Mirkin wrote: > However having a piglit test that covers this would be neat... I guess > you could clip a pixel in half and make sure that the resolved result > is some in-between color? Lots of implementation-dependent stuff going > on

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Ilia Mirkin
On Tue, Sep 15, 2015 at 1:09 PM, Erik Faye-Lund wrote: > On Tue, Sep 15, 2015 at 6:49 PM, Ilia Mirkin wrote: >> However having a piglit test that covers this would be neat... I guess >> you could clip a pixel in half and make sure that the resolved

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Erik Faye-Lund
On Tue, Sep 15, 2015 at 6:49 PM, Ilia Mirkin wrote: > On Tue, Sep 15, 2015 at 12:39 PM, Erik Faye-Lund wrote: >> On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: >>> On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Rob Clark
On Tue, Sep 15, 2015 at 12:49 PM, Rob Clark wrote: > On Tue, Sep 15, 2015 at 12:39 PM, Erik Faye-Lund wrote: >> On Mon, Sep 14, 2015 at 11:53 AM, Erik Faye-Lund wrote: >>> On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Erik Faye-Lund
On Tue, Sep 15, 2015 at 7:12 PM, Ilia Mirkin wrote: > On Tue, Sep 15, 2015 at 1:09 PM, Erik Faye-Lund wrote: >> On Tue, Sep 15, 2015 at 6:49 PM, Ilia Mirkin wrote: >>> However having a piglit test that covers this would be neat...

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-15 Thread Rob Clark
On Tue, Sep 15, 2015 at 1:10 PM, Erik Faye-Lund wrote: >> I guess I'd care about it more once I supported MSAA ;-) >> >> (and tbh, all this effort was mostly just to get neverball to render >> correctly :-P) > > Oh, I just meant that it might be neat to add to the commit

Re: [Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-14 Thread Erik Faye-Lund
On Sun, Sep 13, 2015 at 5:51 PM, Rob Clark wrote: > From: Rob Clark > > The vertex shader lowering adds calculation for CLIPDIST, if needed > (ie. user-clip-planes), and the frag shader lowering adds conditional > kills based on CLIPDIST value

[Mesa-dev] [PATCH 09/11] nir: add lowering stage for user-clip-planes / clipdist

2015-09-13 Thread Rob Clark
From: Rob Clark The vertex shader lowering adds calculation for CLIPDIST, if needed (ie. user-clip-planes), and the frag shader lowering adds conditional kills based on CLIPDIST value (which should be treated as a normal interpolated varying by the driver).