Skip to content

GPU: mirror descriptor heaps copied as bytes - #305

Open
Flyander wants to merge 2 commits into
fxceless:mainfrom
Flyander:fix/mirror-title-heap-byte-copies
Open

Flyander wants to merge 2 commits into
fxceless:mainfrom
Flyander:fix/mirror-title-heap-byte-copies

Conversation

@Flyander

Copy link
Copy Markdown

Summary

The host descriptor heap is updated when descriptor APIs call mirror(). A title can also copy the runtime's descriptor record directly into a placed shader-visible heap as bytes; that bypasses mirror() and leaves the corresponding host slot null or stale.

  • Track placed shader-visible heaps in runtime GPU memory using the existing write-watch and guarded-page paths.
  • Before each host submission, mirror slots covered by changed pages, including raw byte copies.
  • Add a D3D12-backed regression test that copies a sampler record into a placed heap without calling CreateSampler for the destination.

Verification

  • cargo test --locked --workspace — passed; includes 111 GPU tests and 210 shader tests.
  • cargo clippy --locked --workspace --all-targets --all-features -- -D warnings — passed.
  • cargo xtask policy — 169 files passed.
  • Focused D3D12 regression test — passed on the local host GPU.

Scope

This closes the raw-copy synchronization path. It has not been shown to resolve the nondeterministic missing walls or roof reported in #62; this PR does not include a full title run.

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.

1 participant