Skip to content

Generate descriptions for resources with no names#3598

Merged
tex3d merged 1 commit intomicrosoft:masterfrom
tex3d:val-res-name
Mar 21, 2021
Merged

Generate descriptions for resources with no names#3598
tex3d merged 1 commit intomicrosoft:masterfrom
tex3d:val-res-name

Conversation

@tex3d
Copy link
Copy Markdown
Contributor

@tex3d tex3d commented Mar 18, 2021

Module with stripped reflection will have no name for error messages.
Try to get the name from the debug module.
Failing that, use ID, type and binding info.

Module with stripped reflection will have no name for error messages.
Try to get the name from the debug module.
Failing that, use ID, type and binding info.
@tex3d tex3d requested a review from pow2clk March 18, 2021 00:36
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been through validation on a resource with no name . . .

Looks good! Is a test possible?

@AppVeyorBot
Copy link
Copy Markdown

@tex3d tex3d merged commit 2791c51 into microsoft:master Mar 21, 2021
@tex3d tex3d deleted the val-res-name branch March 21, 2021 22:04
@tex3d
Copy link
Copy Markdown
Contributor Author

tex3d commented Mar 21, 2021

Is a test possible?

I’ll try to add an IR based test after. HLSL based one may be complicated by recent changes to always enable line number debug info.

tex3d added a commit to tex3d/DirectXShaderCompiler that referenced this pull request Mar 22, 2021
Module with stripped reflection will have no name for error messages.
Try to get the name from the debug module.
Failing that, use ID, type and binding info.

(cherry picked from commit 2791c51)
tex3d added a commit that referenced this pull request Mar 23, 2021
Cherry-pick changes to release branch:
cd3ef21 Roll back llvm::ArrayRef dependency in ExecutionTest (#3613)
2791c51 Generate descriptions for resources with no names (#3598)
22fa209 Fix LifetimeIntrinsicTest issues (#3609)
2039610 Fix Dxil validator compat and test issues (#3610)
220e884 Rename payload qualifier field to not match type (#3607)
0e89206 Correct exception handler sprintf for 32-bit (#3608)
9b475a7 Add dxc exception handler (#3604)
e8372b9 Fixed arg pairs not correct for old source in module pdbs (#3599)
2bda44f Add constant evaluation for clamp() (#3581)
640c9af Added way for caller to replace args in PDB utils (#3595)
de00b01 Fix const error check for object subscript operator (#3580)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants