[SPIR-V] early return with ROV will generate spirv that hung the gpu (or at least weird spirv)
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp
- Domain
- compilers, computer-graphics
Research direction
Start by reproducing with the linked godbolt snippet and dumping the SPIR-V for the early-return path. Look at the block labelled %36, where an OpEndInvocationInterlockEXT and an OpBeginInvocationInterlockEXT appear just before OpBranch %30, and find where the compiler emits the interlock begin/end pairs for early returns. Done means the emitted SPIR-V no longer leaves an unmatched begin interlock before the branch, with a regression test for ROV plus early return.
Written by the indexing model from the issue text.
Description
Hi everyone ! Miss me ?
Description
While using ROVs and having early return, SpirV will generate extra OpEndInvocationInterlockEXT and OpBeginInvocationInterlockEXT that hung the GPU.
Steps to Reproduce
https://godbolt.org/z/YnYqdbjre
Actual Behavior
the early return will produce an extra
%36 = OpLabel
OpEndInvocationInterlockEXT
OpBeginInvocationInterlockEXT
OpBranch %30
It seems the last OpBeginInvocationInterlockEXT is not closed and the GPU will hung.
Environment
DXC trunk on godbolt
Reproduce also on windows 11 and custom fork of 1.10.2605.24.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 926
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 45
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/DirectXShaderCompiler
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/DirectXShaderCompiler#9173 ·
Maintainers usually reply within 2 days
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/DirectXShaderCompiler#9155 · 4 comments ·
Maintainers usually reply within 2 days
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/DirectXShaderCompiler#9135 ·
Maintainers usually reply within 2 days
-
DXC emits DW_LANG_C_plus_plus instead of DW_LANG_HLSL for HLSLPossibly taken @rj123-nv claimed this 18 days ago. Openbug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/DirectXShaderCompiler#9087 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
microsoft/DirectXShaderCompiler#9086 ·
Maintainers usually reply within 2 days
All issues in microsoft/DirectXShaderCompiler
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
table_translator 当一个 Prism 键映射到多个原码时,首个候选未按权重排序Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
feature:config kind:docs os:windows toolchain:cmake triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
arch-based bug niri
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
noctalia-dev/noctalia#5552 ·
Maintainers usually reply within 1 day