Skip to content

Translate native F2I instructions with immediate operands - #827

Closed
monsterlag wants to merge 3 commits into
NotRexed:mainfrom
monsterlag:fix/native-f2i-immediate
Closed

monsterlag wants to merge 3 commits into
NotRexed:mainfrom
monsterlag:fix/native-f2i-immediate

Conversation

@monsterlag

@monsterlag monsterlag commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Translate native F2I 0x905 immediate operands by materializing the complete 32-bit literal with the existing MOV32I helper, then using the checked register-conversion path. Predicate and literal bits 62/63 are preserved; unsupported widths and modes still fail.

Updated on main b2765ba6 through a normal merge, preserving its allocator, depth, mesh and cache changes.

Validation at bcea5bd7: the native F2I fixture, Windows/Linux source checks, SPIR-V checks, Windows renderer/builder and Linux AppImage all pass. Separately, the exact 27 authored cases compiled against the combined private 2.0.6 integration and all emitted modules passed Vulkan1.3 validation; the released lowerer refused905 while existing forms passed.

Coverage is lowering, Maxwell decoding/conversion visitor, IR and SPIR-V emission, not full CFG construction or GPU numerical validation. No claim about an individual visible symptom or all remaining shader failures. No game-derived programs or caches are included.

Encoding reference: pinned Mesa NAK encoder.

Normally merge b2765ba, preserving all upstream allocator, depth, mesh,
cache and workflow changes. Retain this topic's exact authored assertions.

Assisted-by: OpenAI Codex
Co-Authored-By: OpenAI Codex <noreply@openai.com>
NotRexed pushed a commit that referenced this pull request Nov 9, 2026
@NotRexed

NotRexed commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

This is in dev and main now (landed in e30b6d4, "Merge PR #827"; first shipped in v2.0.8-rc.1), so closing. Thanks!

@NotRexed NotRexed closed this Nov 9, 2026
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.

2 participants