Re: [Mesa-dev] nir/radv: workaround broken kilp support

2016-11-02 Thread Tom Stellard
On Wed, Nov 02, 2016 at 11:26:08AM +1000, Dave Airlie wrote: > So it appears at least the LLVM 3.9 backend can get confused > when it gets hit with if (cond) discard type constructs, and we > have a GLSL optimisation to convert this to discard_if, so I've > ported that to NIR, and enabled it for ra

[Mesa-dev] nir/radv: workaround broken kilp support

2016-11-01 Thread Dave Airlie
So it appears at least the LLVM 3.9 backend can get confused when it gets hit with if (cond) discard type constructs, and we have a GLSL optimisation to convert this to discard_if, so I've ported that to NIR, and enabled it for radv. It fixes the hangs and the tests here. Dave. __