Skip to content

missing textual information (comments section) about WaveSize range syntax / kDxilRangedWaveSizeTag in SM6.8 shaders #6813

Open

Description

@didito

Description
DXC outputs textual information about the WaveSize / kDxilWaveSizeTag in the comments section in the beginning, when present in SM6.6+ shaders. This does not happen when using the WaveSize range syntax / kDxilRangedWaveSizeTag in SM6.8+ shaders.

Steps to Reproduce

// -T cs_6_8 -E main

Buffer<float4> input : register(t0);
RWBuffer<float4> output : register(u0);

#if 0
    // output as expected
    // ; Compute Shader
    // ; NumThreads=(8,1,1)
    // ; WaveSize=32
    [WaveSize(32)]
#else
    // no output, just
    // ; Compute Shader
    // ; NumThreads=(8,1,1)
    [WaveSize(16, 32, 16)]
#endif

[numthreads(8, 1, 1)]
void main(
	in uint3 Gid : SV_GroupID,
	in uint3 DTid : SV_DispatchThreadID,
	in uint3 GTid : SV_GroupThreadID,
	in uint GIdx : SV_GroupIndex)
{
	const uint address = DTid.x;
	const float4 val = input[address];
	output[address] = val;
}

https://hlsl.godbolt.org/z/ceW89b8T9

Environment

  • DXC version: tested every compiler release since SM6.8 support was integrated (v1.8.2403), including trunk
  • Host Operating System: 10.0.19045.4651

Activity

  1. added
    bug
    needs-triage
    on Jul 22, 2024
  2. added
    sm6.8
    and removed
    needs-triage
    on Jul 22, 2024
  3. damyanp commented on Jan 8, 2025

    @damyanp
    Member

    6_8 style shows:

    ; MinimumExpectedWaveLaneCount: 16
    ; MaximumExpectedWaveLaneCount: 32
    

    6_6 style shows:

    ; WaveSize=32
    

    The preferred wavesize value is not there in the 6_8 version. This is because the PSV0 data doesn't actually store the preferred size value.

    The request here is to really include a pretty printer for the entry point metadata.

    Given this, reprioritizing to "dormant" as we're unlikely to address this in DXC.

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

    bugdxilsm6.8

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions