Skip to content

PIX: Fix instrumentation of libraries; instruction numbering reports#4817

Merged
jeffnn merged 2 commits intomicrosoft:mainfrom
jeffnn:PIX_RaygenLibFixes
Nov 28, 2022
Merged

PIX: Fix instrumentation of libraries; instruction numbering reports#4817
jeffnn merged 2 commits intomicrosoft:mainfrom
jeffnn:PIX_RaygenLibFixes

Conversation

@jeffnn
Copy link
Copy Markdown
Collaborator

@jeffnn jeffnn commented Nov 23, 2022

This PR does a few things to fix PIX's operation on lib targets:
-Remove the check for "use_empty" on a function. Lib entry functions have no uses! This was done by centralizing the discovery of interesting (to PIX) functions in a new helper in PixPassHelpers.cpp
-In DxilDebugInstrumentation.cpp, remove the early "return" inside runOnModule. There are more functions left to instrument!
-Add reporting from the virtual register pass that reveals the start and end instruction ordinal for interesting functions. PIX can use these values to disambiguate different functions within a module for e.g. shader debugging output.

@jeffnn jeffnn self-assigned this Nov 23, 2022
Copy link
Copy Markdown
Contributor

@adam-yang adam-yang left a comment

Choose a reason for hiding this comment

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

LGTM!

@AppVeyorBot
Copy link
Copy Markdown

@AppVeyorBot
Copy link
Copy Markdown

@jeffnn jeffnn merged commit ccea7c2 into microsoft:main Nov 28, 2022
@jeffnn jeffnn deleted the PIX_RaygenLibFixes branch November 28, 2022 17:31
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