Skip to content

Shaders: fewer allocations in the GFX10 decoder, dense opcode index tables - #273

Open
fffluffy-dev wants to merge 1 commit into
fxceless:mainfrom
fffluffy-dev:shader/gfx10-decoder-allocations
Open

fffluffy-dev wants to merge 1 commit into
fxceless:mainfrom
fffluffy-dev:shader/gfx10-decoder-allocations

Conversation

@fffluffy-dev

Copy link
Copy Markdown

Adapts Marvisak/VIctory#1623 to this fork's wave64 rewrite (instruction words without a per-instruction Vec; a five-word MIMG and truncated input are checked), and adds dense index tables for instruction names without growing Instruction (32 bytes) or changing the API. Synthetic: 12,289 instructions 18,433 → 2,048 allocator calls; IR build 5.4-10.6 % faster at 257-16,385 instructions; DXIL byte-identical on four sizes of a synthetic compute shader.

Validation: cargo test -p victory-shader (Linux) 172 passed, 2 ignored; under Wine the same 22 GPU tests fail without an SM 6.6 device as on main; clippy --workspace -D warnings clean both ways; policy ok.

AI use: written with Codex and Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.

…ables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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