spirv: fix OpBranchConditional when both branches are the same
authorAlexey Bozhenko <oleksii.bozhenko@globallogic.com>
Wed, 13 Apr 2022 12:16:16 +0000 (15:16 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Apr 2022 13:41:24 +0000 (13:41 +0000)
commit25acf1d8697ae62a2eead1bca9e5f8ca6eb2b372
treec1b8b34815c5c8e06dd870e0ca4d74786267a017
parent4b7ba3869be3f706efc717d40535c61d5c7a20c7
spirv: fix OpBranchConditional when both branches are the same

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6246

Signed-off-by: Bozhenko Alexey <oleksii.bozhenko@globallogic.com>
Fixes: 64cb143b922 ("spirv: Fix handling of OpBranchConditional with same THEN and ELSE")
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15929>
src/compiler/spirv/vtn_cfg.c