Skip to content

Shader: add mesh emulation translation and cache metadata - #26

Merged
devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/1795585291-mesh-shader-cache
Nov 25, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/1795585291-mesh-shader-cache

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Ports the shader/cache stage of Marvisak/VIctory#1648, without enabling runtime mesh dispatch yet.

  • Adds MeshMode::Emulate, lowering a mesh program into cs_6_6 compute plus generated vertex-unpack shader metadata. Scratch bindings use MESH_EMU_SPACE = 4 because spaces 2 and 3 are already used by this fork's address map and descriptor words.
  • Extends the shader cache format (VSH3) with mesh-emulation metadata and separates cache entries by converter id (shader.dxil vs shader.dxil.mesh-emu) so native and emulated translations of the same container cannot collide.
  • Adds host-side validation/pipeline helpers and synthetic Windows-only tests for emulated mesh pipelines; the local-file/debug tests and extra dependency from upstream are intentionally omitted.
  • victory translate can now select emulation through VICTORY_MESH_EMULATION=1, or automatically when host pipeline probing reports no mesh-shader support.

Runtime GPU submission still uses native mesh pipelines; wiring host_shader_with(..., MeshMode::Emulate), scratch buffers, and dispatch preparation is the next #1648 stage.

Validated locally: asset policy, fmt, Linux victory-shader tests, Windows-target workspace check and all-features clippy.

Link to Devin session: https://app.devin.ai/sessions/75bbf6b4192940fea34014b13a016bee
Open in Devin Desktop: https://app.devin.ai/desktop/session/75bbf6b4192940fea34014b13a016bee?variant=devin
Requested by: @Personed

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot merged commit 756eab9 into main Nov 25, 2026
4 checks passed
devin-ai-integration Bot added a commit that referenced this pull request Nov 25, 2026
main moved meanwhile: the other sessions' rx580 work — mesh shader
emulation (#25/#26), barrier coalescing (#23), parallel refreshes
(#22), repeated-close tolerance, streaming BCPack (#17). Resolved in
favour of the fxceless tree as before: those features are main-only
and depend on this fork's old emit architecture, so each is a
re-port follow-up on the new base. Mesh emulation is the top
priority of those — it is the RX 580 unblocker.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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