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 memory exception during memcpy in ApplyBatchedResourceInitInfo #1394

Merged

Conversation

xooiamd
Copy link
Contributor

@xooiamd xooiamd commented Dec 18, 2023

The memory exception happen due to the subresource_sizes.size() is not equal to layout_sizes.size(). This is because subresource_size has been set twice in Dx12ReplayConsumerBase::ProcessInitSubresourceCommand .
Thus, this PR removes the line resource_init_info.subresource_sizes = subresource_sizes; The subresource size will be set only by SetResourceInitInfoState .

Remove the line that assign value to
resource_init_info.subresource_sizes,
this is because the subresource size will be
assigned by ApplyFillMemoryResourceValueCommand
@ci-tester-lunarg
Copy link

Author xooiamd not on autobuild list. Waiting for curator authorization before starting CI build.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 103029.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3628 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3628 passed.

@davidd-lunarg davidd-lunarg merged commit be2d204 into LunarG:dev Dec 18, 2023
5 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.

3 participants