Skip to content

DXC linker debug output isn't a valid PDB (and doesn't work with PIX) #5739

Open

Description

@EricLasotaRSE

Description
Linking a shader with -Fd will dump the raw ILDB part from the DXIL container instead of a valid PDB file.

Steps to Reproduce
Create a file named test.hlsl:

RWTexture2D<uint> rwTexResource[] : register(u0, space2400);
[numthreads(8, 8, 1)]
void main(uint3 dtid : SV_DispatchThreadID, uint3 gtid : SV_GroupThreadID, uint3 gid : SV_GroupID, uint gindex : SV_GroupIndex)
{
    rwTexResource[0][dtid.xy] = texResource.Load(dtid.xyz);
}

Run these commands:

dxc.exe -T lib_6_3 -Zi -Qstrip_reflect -Qembed_debug -Fd testc.pdb -Fo test.lib test.hlsl
dxc.exe -link -T lib_6_3 -Zi -Qstrip_reflect -Fd test.pdb -Fo test.bin test.lib

Actual Behavior
testc.pdb (the compiler output) has a valid PDB header.
test.pdb does not.

"PDBs" output this way will also not load in PIX.

Environment

  • DXC version dxcompiler.dll: 1.7 - 1.7.2207.3 (e9137cd); dxil.dll: 1.7(101.7.2207.10)
  • Host Operating System Windows 10

Activity

  1. added
    bug
    needs-triage
    on Sep 18, 2023
  2. added
    shader-linking
    and removed
    needs-triage
    on Sep 19, 2023
  3. added
    debug info
    on Oct 22, 2024
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

    bugdebug infoshader-linking

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions