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

D3D: More debug information and break on error #2026

Merged
merged 4 commits into from May 8, 2015

Conversation

mrgreywater
Copy link
Contributor

This change only affects the debug build and should give a little more information when debugging the DirectX backend. It also adds a breakpoint when otherwise the graphics driver is likely to crash. The function GetDebugObjectName is added but not used, it's helpful when trying to figure out which objects actually cause a failure.

The commits will be squashed with an appropriate message if you think this is worth adding. It certainly helped me when debugging.

D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS
};

D3D11_INFO_QUEUE_FILTER filter;

This comment was marked as off-topic.

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Feb 14, 2015

@dolphin-emu-bot rebuild

That looks pretty cool. Granted, I don't know a lot about DX...

@Armada651 care to review this? :)

@mrgreywater
Copy link
Contributor Author

@Armada651 The memset change was done since lioncash wanted it, the comment was changed because of neobrain (see above).
Fixing the D3D11 warning of the XFBEncoder is not directly related, I can split it in another PR if it's required (or rearrange the commits, so it's easily distinguishable).

@CrossVR
Copy link
Contributor

CrossVR commented Feb 14, 2015

I think it's alright, just wanted to confirm it was intentional.

g_renderer->RestoreAPIState();
D3D::stateman->Apply(); // force unbind efb texture as shader resource

This comment was marked as off-topic.

shuffle2 added a commit that referenced this pull request May 8, 2015
D3D: More debug information and break on error
@shuffle2 shuffle2 merged commit 268b8fd into dolphin-emu:master May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants