-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DX12: Align copies b/w textures and buffers when D3D12_FEATURE_DATA_D3D12_OPTIONS13.UnrestrictedBufferTextureCopyPitchSupported
is false
#7721
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
base: trunk
Are you sure you want to change the base?
Conversation
612dc54
to
60d2d96
Compare
I'm...honestly not sure why this is failing on the |
… `!UnrestrictedBufferTextureCopyPitchSupported` TODO: resolve `TODO` comments
for cmd_buf in command_buffers { | ||
temp_lists.push(Some(cmd_buf.raw.clone().into())); | ||
intermediate_copy_bufs.push(Arc::clone(&cmd_buf.intermediate_copy_bufs)); | ||
// TODO: When to clean accumulated copy buffers up? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking that the best time to clean these up might be during a Poll
, where we can guarantee that temporary buffers are no longer necessary. Validation, please? 🥺
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can store them in the CommandEncoder
and they will be cleaned up on CommandEncoder::Drop
, wgpu-core
holds HAL command encoders alive until the end of the submission.
60d2d96
to
505438d
Compare
The test is failing because of:
I'd run the test locally with the validation layers enabled to see if there is more info. I've seen the error come up in cases where we didn't uphold some D3D12 invariant while encoding. |
Connections
rows_per_image
for 3D texture writes #4150.Testing
Squash or Rebase?
rebase plz
Checklist
CHANGELOG.md
entry.