Skip to content

Add mesh-compute output slot layout - #27

Closed
Personed wants to merge 1 commit into
mainfrom
compat/mesh-compute-layout
Closed

Personed wants to merge 1 commit into
mainfrom
compat/mesh-compute-layout

Conversation

@Personed

@Personed Personed commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a public, pure Rust layout calculator for fixed-size per-workgroup mesh-compute output slots.
  • Preserve vertex position, clip/cull distances, vertex parameters, primitive indices/cull flags, and per-primitive parameters in the layout.
  • Sort and deduplicate signature locations for deterministic offsets; use checked 64-bit size arithmetic.
  • Leave existing native mesh translation and dispatch unchanged. This is the tested data-layout foundation for the capability-gated fallback, not yet a rendering/FPS change.

Validation

  • cargo fmt --all -- --check and staged git diff --check pass.
  • The Rust test harness compiled to an MSVC object with Rust 1.98.1; local execution is unavailable because link.exe is not installed. CI will execute the unit tests on Windows.
  • The staged source files pass the repository asset-policy checks.

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 its own output layout and dispatch integration. This standalone layout 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