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

Fallback layer avoid calling SetComputeRoot32BitConstants with no data #800

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

HaydnTrigg
Copy link
Contributor

If AccelerationStructuresEntries is empty, don't call SetComputeRoot32BitConstants

Fixes a crash on Intel Iris Xe graphics when using the Fallback Layer without using any bound acceleration structures due to the call SetComputeRoot32BitConstants crashing due to not checking if pSrcData was null. Spec indicates this parameter is required, so a branch is added to avoid the call.

If AccelerationStructuresEntries is empty, don't call SetComputeRoot32BitConstants
@stanard stanard merged commit b6031f6 into microsoft:master Oct 12, 2022
@stanard
Copy link
Member

stanard commented Oct 12, 2022

Thank you for the fix!

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.

2 participants