[SPIR-V] Implement WaveMultiPrefixCountBits code generation
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start by reading PR #6608 and the SPIR-V code generation for the other WaveMultiPrefix* operations; the issue does not name source files or tests. Reproduce with the provided HLSL shader and DXC command, then compare the generated output for the implemented operations. Done means this shader compiles with -spirv and produces valid SPIR-V for WaveMultiPrefixCountBits.
Written by the indexing model from the issue text.
Description
DXC reports WaveMultiPrefixCountBits as unimplemented when compiling to
SPIR-V. The same shader compiles to DXIL.
PR #6608 adds the other WaveMultiPrefix* operations but explicitly leaves
WaveMultiPrefixCountBits unimplemented.
Reproduction
Save this shader as repro.hlsl:
RWStructuredBuffer<uint> Output : register(u0);
[numthreads(1, 1, 1)]
void main() {
Output[0] = WaveMultiPrefixCountBits(true, uint4(1, 0, 0, 0));
}
Compile with:
dxc -spirv "-fspv-target-env=vulkan1.3" -T cs_6_5 -E main repro.hlsl
Actual result
error: WaveMultiPrefixCountBits intrinsic function unimplemented
Expected result
DXC generates valid SPIR-V for WaveMultiPrefixCountBits.
The shader compiles successfully without -spirv and -fspv-target-env.
- 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
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
telefonicaid/fiware-orion#4836 ·
Maintainers usually reply within 1 day
-
refactor topic-ui topic-weather
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Command-Install Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microsoft/winget-cli#6718 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
leanprover/lean4#16810 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day