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

Add support for debugging aliasing problems in GPU hangs #1150

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

HansKristian-Work
Copy link
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 <[email protected]>
To be used for inline UBO replacement.

Signed-off-by: Hans-Kristian Arntzen <[email protected]>
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 <[email protected]>
@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 <[email protected]>
Report resource cookies so that it's easier to track down aliasing
issues.

Signed-off-by: Hans-Kristian Arntzen <[email protected]>
Signed-off-by: Hans-Kristian Arntzen <[email protected]>
Replays relevant commands in submission order.

Signed-off-by: Hans-Kristian Arntzen <[email protected]>
Useful mostly for debug so we acknowledge there was a discard command
(except we cannot transition).

Signed-off-by: Hans-Kristian Arntzen <[email protected]>
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.

None yet

1 participant