Re: [Mesa-dev] [RFC] nir: Use an instruction for the condition on if statements

2015-02-28 Thread Jason Ekstrand
On Sat, Feb 28, 2015 at 10:33 AM, Connor Abbott wrote: > On Fri, Feb 27, 2015 at 8:13 PM, Jason Ekstrand > wrote: > > Previously, the nir_if control-flow node had a source built straight into > > it that was the if condition. This has been the source of a lot of > > edge-case headaches due to,

Re: [Mesa-dev] [RFC] nir: Use an instruction for the condition on if statements

2015-02-28 Thread Connor Abbott
On Fri, Feb 27, 2015 at 8:13 PM, Jason Ekstrand wrote: > Previously, the nir_if control-flow node had a source built straight into > it that was the if condition. This has been the source of a lot of > edge-case headaches due to, in particular, the two different use sets that > we were carrying a

[Mesa-dev] [RFC] nir: Use an instruction for the condition on if statements

2015-02-27 Thread Jason Ekstrand
Previously, the nir_if control-flow node had a source built straight into it that was the if condition. This has been the source of a lot of edge-case headaches due to, in particular, the two different use sets that we were carrying around. This patch changes it to have a special jump instruction