Re: [Mesa-dev] [PATCH v2] nir/spirv: handle if's with same label in both branches

2017-09-11 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, Sep 11, 2017 at 2:41 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > From: "Juan A. Suarez Romero" > > When a conditional branch has the same labels in the "if" part and in the > "else" part, then we

[Mesa-dev] [PATCH v2] nir/spirv: handle if's with same label in both branches

2017-09-11 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" When a conditional branch has the same labels in the "if" part and in the "else" part, then we have the same cfg block, and it must be handled once. v2: handle it the same way as OpBranch (Jason). Fixes: