Skip to content

[d3d12] Fix bug with committed resource allocation #7519

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

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

cwfitzgerald
Copy link
Member

Fixes a bug.

@cwfitzgerald cwfitzgerald requested a review from a team as a code owner April 11, 2025 18:08
@cwfitzgerald cwfitzgerald requested review from Copilot and removed request for a team April 11, 2025 18:09
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Apr 11, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

wgpu-hal/src/dx12/suballocation.rs:372

  • The change updates the mapping to using D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE for GPU-only memory. Please confirm that this change aligns with the intended Direct3D12 API behavior for GPU-only heaps.
MemoryLocation::GpuOnly => Direct3D12::D3D12_CPU_PAGE_PROPERTY_NOT_AVAILABLE,

@ErichDonGubler ErichDonGubler self-assigned this Apr 11, 2025
@ErichDonGubler
Copy link
Member

ErichDonGubler commented Apr 11, 2025

This issue was missed in my review of #7490, where CPU_PAGE_PROPERTY_NOT_AVAILABLE was accidentally replaced with CPU_PAGE_PROPERTY_UNKNOWN (sorry!). We in Firefox believe we've observed it in CI, i.e., https://treeherder.mozilla.org/jobs?repo=autoland&revision=862a8504a89853fb5e49e2ff8e00e327846f4e7b&selectedTaskRun=CqCDULu8Rsq-HI98UjmGSg.0, which caused bug 1959868.

@ErichDonGubler
Copy link
Member

☝🏻 CC @jimblandy.

@ErichDonGubler ErichDonGubler enabled auto-merge (squash) April 11, 2025 18:13
@ErichDonGubler ErichDonGubler merged commit f1c4965 into gfx-rs:trunk Apr 11, 2025
37 checks passed
@cwfitzgerald cwfitzgerald deleted the cw/fix-mobug-moproblems branch April 11, 2025 18:25
cwfitzgerald added a commit to cwfitzgerald/wgpu that referenced this pull request Apr 11, 2025
@cwfitzgerald cwfitzgerald mentioned this pull request Apr 11, 2025
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Apr 11, 2025
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