diff options
author | Samuel Pitoiset <[email protected]> | 2018-05-15 12:00:30 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-05-15 21:38:19 +0200 |
commit | 6bde8c560877512852ff49fafa296eb71a5ec14b (patch) | |
tree | 5e5928172ee9d13892bfbf7fc770dc97661e7f0e /m4 | |
parent | d89f58a6b8436b59dcf3b896c0ccddabed3f78fd (diff) |
spirv: fix visiting inner loops with same break/continue block
We should stop walking through the CFG when the inner loop's
break block ends up as the same block as the outer loop's
continue block because we are already going to visit it.
This fixes the following assertion which ends up by crashing
in RADV or ANV:
SPIR-V parsing FAILED:
In file ../src/compiler/spirv/vtn_cfg.c:381
block->node.link.next == NULL
0 bytes into the SPIR-V binary
This also fixes a crash with a camera shader from SteamVR.
v2: make use of vtn_get_branch_type() and add an assertion
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106090
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106504
CC: 18.0 18.1 <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions