Skip to content

PIX: Educate type system about samplers and resources, base classes#4937

Merged
jeffnn merged 8 commits intomicrosoft:mainfrom
jeffnn:PIX_TreatPointersAsFundamentalForSplitValue
Jan 13, 2023
Merged

PIX: Educate type system about samplers and resources, base classes#4937
jeffnn merged 8 commits intomicrosoft:mainfrom
jeffnn:PIX_TreatPointersAsFundamentalForSplitValue

Conversation

@jeffnn
Copy link
Copy Markdown
Collaborator

@jeffnn jeffnn commented Jan 12, 2023

These fixes were the result of a single shader from a well-known game engine, all of which resulted in mismatched offsets between PIX's offsets-into-fake-allocas and the offsets into aggregates for dbg.value statements.
-Base class sizes weren't being added to derived classes
-Samplers+Resources weren't being given any size at all
-Raygen payloads (referred to by pointer) were triggering an assert
Added a new set of tests for the type system to exercise these.

@jeffnn jeffnn self-assigned this Jan 12, 2023
@AppVeyorBot
Copy link
Copy Markdown

Comment thread lib/DxilDia/DxilDiaSymbolManager.cpp Outdated
Comment thread lib/DxilDia/DxilDiaSymbolManager.cpp Outdated
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

@jeffnn jeffnn merged commit 5751215 into microsoft:main Jan 13, 2023
@jeffnn jeffnn deleted the PIX_TreatPointersAsFundamentalForSplitValue branch January 13, 2023 18:30
jeffnn added a commit to jeffnn/DirectXShaderCompiler that referenced this pull request Jan 13, 2023
…icrosoft#4937)

These fixes were the result of a single shader from a well-known game engine, all of which resulted in mismatched offsets between PIX's offsets-into-fake-allocas and the offsets into aggregates for dbg.value statements.
-Base class sizes weren't being added to derived classes
-Samplers+Resources weren't being given any size at all
-Raygen payloads (referred to by pointer) were triggering an assert
Added a new set of tests for the type system to exercise these.
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