Skip to content

Add support for debugging aliasing problems in GPU hangs#1150

Draft
HansKristian-Work wants to merge 8 commits intomasterfrom
placed-alias-debug
Draft

Add support for debugging aliasing problems in GPU hangs#1150
HansKristian-Work wants to merge 8 commits intomasterfrom
placed-alias-debug

Conversation

@HansKristian-Work
Copy link
Copy Markdown
Owner

No description provided.

@HansKristian-Work HansKristian-Work changed the title Hacked up debug harness for weird resource aliasing Add support for debugging aliasing problems in GPU hangs Jun 30, 2022
The old path is completely untested at this point, and I found a bug
with root descriptors since we don't do the proper deref to obtain
proper VA anymore, so that would have crashed GPUs hard ...

Removes a lot of old jank code.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
To be used for inline UBO replacement.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Make push descriptors a required feature. It's widely supported now that
amdvlk enabled it.

The min spec of push descriptors is 32 descriptors which means we never
have to fall back. The D3D12 spec supports 32 root descriptors.
When we have that many root descriptors, we never risk running out of
push constant space, so there won't be a need for fallback UBO.

Tweak the hoisting logic a little bit to make sure we never overflow the 32 push
desc min-spec.

Replace inline UBO (not compatible with push descriptors) with push UBO
for fallback data. This path should basically never be hit anyways.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
@HansKristian-Work HansKristian-Work force-pushed the placed-alias-debug branch 2 times, most recently from 942e707 to a4711d2 Compare September 29, 2022 13:14
Report any placed aliases which could cause issues.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Report resource cookies so that it's easier to track down aliasing
issues.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Replays relevant commands in submission order.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Useful mostly for debug so we acknowledge there was a discard command
(except we cannot transition).

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
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.

1 participant