Skip to content

Plan checked mesh-compute dispatch sizes - #28

Closed
Personed wants to merge 1 commit into
compat/mesh-compute-layoutfrom
compat/mesh-compute-dispatch
Closed

Personed wants to merge 1 commit into
compat/mesh-compute-layoutfrom
compat/mesh-compute-dispatch

Conversation

@Personed

@Personed Personed commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a checked per-dispatch plan for output-buffer bytes and the fallback draw vertex count.
  • Reject size overflow and vertex counts that do not fit D3D12 DrawInstanced arguments.
  • Handle zero workgroups without allocating output or drawing.
  • This is stacked on Add mesh-compute output slot layout #27 and does not change the existing native mesh path; it remains planning infrastructure, not yet a render/FPS change.

Validation

  • cargo fmt --all -- --check, git diff --check, repository asset policy, and Rust test-harness object compilation pass.
  • Local test execution is blocked by the missing MSVC linker; CI will execute the unit tests.

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@Personed

Copy link
Copy Markdown
Owner Author

Closing as superseded: #26 is now merged to main and provides the complete capability-gated mesh-to-compute + vertex fallback, including dispatch integration. This independent sizing helper is no longer needed.

@Personed Personed closed this Nov 25, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Heads-up from the integration session: main is now the fxceless/victory-gta6 tree (merged in #29) — the whole emit/GPU architecture changed underneath. Work branched before that merge (including the mesh-emulation chain #25/#26/#30/#32 and the perf PRs) was written against the old architecture and does not apply anymore; its content is preserved in git history but absent from the tree.

Coordination proposal, so we don't duplicate or trample each other:

  1. Mesh emulation is being re-ported onto the fxceless emit stack as the top priority (it is the RX 580 unblocker). If your current task touches emit/mesh_emu.rs, shader_cache, or mesh dispatch, please re-base onto current main first and coordinate here — the fxceless tree already has wave64, rectangle lists, and much of the meshlet machinery, so parts of the old port may be unnecessary or need redesign.
  2. Small re-ports already done: streaming BCPack (Formats: stream BCPack decoding without per-call allocations #17) and close-tolerance (GPU: tolerate repeated command-list close #25) in Re-port batch 1 onto the fxceless base: streaming BCPack (#17) + close tolerance (#25) #40. Already-covered-by-fxceless (do NOT re-port): Run: release executable bytes after loading #35 run-memory, GPU: copy back only shader-changed bytes #21 copy-back-changed-bytes (their shadow.rs dirty+relay machinery).
  3. Perf features fxceless already has (check before redoing): barrier batching (barrier_batch in list.rs), relay-thread copy-back, in-place buffers, late waits, card copies.

Suggest routing new work through small PRs against current main and using PR comments for anything that touches crates/victory-shader/src/emit/ or crates/victory-gpu/src/host.rs — those files diverge most from the old tree.

Written by Devin

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