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

Update Slang-RHI and enable any debug layers up-front #6226

Merged
merged 4 commits into from
Feb 1, 2025

Conversation

aleino-nv
Copy link
Collaborator

As [1] shows, creating a D3D12 device and then enabling debug layers causes future device creation to fail.
That means enabling debug layers is a process-wide decision that should be done at startup, and not just before creating an individual device. Previously, Slang-RHI enabled debug layers as part of device creation. The new Slang-RHI revision doesn't do that anymore, but instead allows the user to enable debug layers earlier, with a separate API.
This change calls the mentioned API before creating any device.

This closes #6172.

@aleino-nv aleino-nv force-pushed the aleino/debuglayer-fix branch 2 times, most recently from 4ba45a0 to b76501c Compare January 31, 2025 11:22
@aleino-nv aleino-nv added the pr: non-breaking PRs without breaking changes label Jan 31, 2025
As [1] shows, creating a D3D12 device and then enabling debug layers causes future device
creation to fail.
That means enabling debug layers is a process-wide decision that should be done at
startup, and not just before creating an individual device.
Previously, Slang-RHI enabled debug layers as part of device creation.
The new Slang-RHI revision doesn't do that anymore, but instead allows the user to enable
debug layers earlier, with a separate API.
This change calls the mentioned API before creating any device.

This closes shader-slang#6172.
@aleino-nv aleino-nv force-pushed the aleino/debuglayer-fix branch from b76501c to 42e4007 Compare January 31, 2025 12:13
@aleino-nv aleino-nv marked this pull request as ready for review January 31, 2025 13:30
@aleino-nv aleino-nv requested a review from a team as a code owner January 31, 2025 13:30
@aleino-nv aleino-nv requested a review from expipiplus1 January 31, 2025 13:30
@csyonghe csyonghe merged commit 2949b78 into shader-slang:master Feb 1, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slang-test failures in Debug mode
3 participants