Skip to content

Conversation

@erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

⚠️ Branched off feature-hgi-vulkan.

The staged copy of HgiVulkanBlitCmds has incorrect source and destination offset,

Source offset of a cpu-to-gpu-copy defines the offset of the source cpu memory, and the destination offset of a cpu-to-gpu-copy defines the offset of the destination gpu buffer.

The memcpy from the cpu memory to the staging buffer should use the source offset and the destination offset respectively. But the copy from the staging buffer to the gpu buffer should use the destination offset to define VkBufferCopy.srcOffset.

Link to proposal (if applicable)

N/A

Fixes Issue(s)

N/A

Checklist

[ ] I have created this PR based on the dev branch

[X] I have followed the coding conventions

[ ] I have added unit tests that exercise this functionality (Reference:
testing guidelines)

[X] I have verified that all unit tests pass with the proposed changes

[X] I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)

…tion offset

Source offset of a cpu-to-gpu-copy defines the offset of the source cpu memory,
and the destination offset of a cpu-to-gpu-copy defines the offset of the
destination gpu buffer.

The `memcpy`` from the cpu memory to the staging buffer should use the source offset
and the destination offset respectively. But the copy from the staging buffer
to the gpu buffer should use the destination offset to define `VkBufferCopy.srcOffset`.
@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10365

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clach clach merged commit b3303a2 into PixarAnimationStudios:feature-hgi-vulkan Nov 14, 2024
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.

4 participants