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

Fix the null pointer issue for State Object for trim capture. #1405

Merged

Conversation

feimao-gfxr
Copy link
Contributor

Problem
It has been found that the AddRef and Release calls are missing for State Objects, for trim capture only. During the replay, some State Objects may end up being released before they are used again by SetPipelineState1. If this happens, the replay will crash.

Solution
Add WriteAddRefAndReleaseCommands in Dx12StateWriter::WriteStateObjectsState.

Result
The potential crash will be avoided.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 118690.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3679 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3679 passed.

@davidd-lunarg davidd-lunarg merged commit 1af83f0 into LunarG:dev Jan 23, 2024
6 checks passed
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.

4 participants