Skip to content

[SPIR-V] Implement WaveMultiPrefixCountBits code generation #9127

Open

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.

Activity

  1. added
    bug
    spirv
    needs-triage
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triagespirv

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions