Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EricLasotaRSE opened this issue Sep 18, 2023 · 0 comments · May be fixed by #6834
Open

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

EricLasotaRSE opened this issue Sep 18, 2023 · 0 comments · May be fixed by #6834
Labels
bug Bug, regression, crash debug info Related to debug info generation shader-linking Bugs related to library targets and linking
Milestone

Comments

@EricLasotaRSE
Copy link

EricLasotaRSE commented Sep 18, 2023

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
@EricLasotaRSE EricLasotaRSE added bug Bug, regression, crash needs-triage Awaiting triage labels Sep 18, 2023
@pow2clk pow2clk added shader-linking Bugs related to library targets and linking and removed needs-triage Awaiting triage labels Sep 19, 2023
@pow2clk pow2clk moved this to Done in HLSL Triage Sep 19, 2023
@damyanp damyanp added the debug info Related to debug info generation label Oct 22, 2024
@damyanp damyanp added this to the Dormant milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash debug info Related to debug info generation shader-linking Bugs related to library targets and linking
Projects
Status: Triaged
Development

Successfully merging a pull request may close this issue.

3 participants