Skip to content

FidelityFX pipelines: slot 67 passes the dispatch state on, and compute pipelines answer console slot 11 (RT-99) - #3951

Open
aslan2142 wants to merge 3 commits into
ItsNotRexed:mainfrom
aslan2142:rt-99-pipeline-slot11
Open

aslan2142 wants to merge 3 commits into
ItsNotRexed:mainfrom
aslan2142:rt-99-pipeline-slot11

Conversation

@aslan2142

@aslan2142 aslan2142 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: RT-99, the remainder (#3796 (comment))

What and why

This finishes what #1911 left out of scope.

  • Kind 0 was lost at slot 67. The FidelityFX DLL passes its dispatch state there, but d3d12_xs: route slot 67 compute pipeline from native code to CreateComputePipelineState (RT-99) #1714's mapping forwards only the kind-6 program. Two programs with the same code and different kind 0 could not be told apart at slot 67, only at slot 62.
  • Slot 11 ran past the vtable. After creating a pipeline the DLL calls its slot 11, past the public ID3D12PipelineState (which ends at slot 8). The pipeline object the layer returned had nothing there.

Slot 67 (runtime/shims/d3d12_xs_device.cpp, runtime/src/shader_library.h)

  • With kind 0 in the description, the proxy builds one FSPX payload from the four pointer and size pairs (leonida::fspx_payload_from_parts) and passes it as CS. The device then matches by fspx_code_sha256 and fspx_state_sha256, as it already does for slot 62.
  • The DLL always passes kind 0: its own reader refuses a payload without it.
  • Every pair is checked before anything is read. A pointer without a size, a size without a pointer, a size over 16 MiB, a missing kind 6, a repeated or unknown kind: each refuses the call with E_INVALIDARG.
  • A description without kind 0 still passes the kind-6 bytes alone, as before. d3d12_xs: route slot 67 compute pipeline from native code to CreateComputePipelineState (RT-99) #1714's d3d12_compute_test relies on that.
  • Every failed slot-67 call is logged with its number and the four sizes (slot 67 call N failed). Only the first call of a slot is announced, so a miss on a later pipeline could otherwise read as the first call's.

Slot 11 (runtime/shims/d3d12_vulkan_device.cpp)

  • New XboxPipelineStateStubs declares console slots 9, 10 and 11 between the generated stubs and Object.
    • Declared in PipelineState itself, they would come after Object's virtual destructor, which takes one vtable entry under MSVC and two under GCC, so slot 11 would differ by compiler.
    • The test calls slot 11 through the vtable index, so a layout mistake fails on either compiler.
  • Slot 11 returns a blob holding the dword 0. Slots 9 and 10 return E_NOTIMPL (no caller is known).

The slot-67 description, pinned from the DLL

A test of the first version with the real DLL saw a lookup miss and suggested that the proxy takes one program's kind 6 with another program's kind 0. Checked against the DLL's code and by running its reader; the proxy reads the layout the DLL writes:

  • The reader (0x1a20). It zeroes four (pointer, size) pairs and stores kind 0, 1, 6 and 7 in pairs 0 to 3, each pointing into the payload itself.
  • The container branch (0x5510 to 0x55ea). The pipeline function runs the same loop inline for a DXBC container and fills the same four places.
  • The copy into the description (0x567d to 0x56d5). Pairs 0 to 3 go to +0x08, +0x18, +0x28 (the kind-6 copy, with kind 6's own size at +0x30) and +0x38.
  • One payload per call. Kind 0 and kind 6 always come from the same program.
  • A harness on the real DLL. It maps the DLL without running it (DONT_RESOLVE_DLL_REFERENCES), calls its reader on all 29 payloads, and builds each description that way with kind 6 in a 256-rounded copy. It then calls slot 67 on the Vulkan device with the 26 translated programs.
    • All 26 resolve to their own entry with their own state, and the other 3 are refused.
    • The same on llvmpipe, the integrated GPU and the RX 7900 XTX.
  • What fits the report. That translation had 20 of the 29 programs. With slot 11 answered, the DLL goes on to its next pipeline, and when that program has no translation both slot 67 and slot 62 refuse it. The DLL then faults at 0x65ff with the null pipeline, as on a PC device. This is a hypothesis, since the full dispatch did not run here; the new log line will show which call fails.

What was measured, and what is hypothesis

On my own copy of 1.0.2.1. Code offsets come from reading the DLL's code with objdump; nothing of it is quoted here.

  • Measured: the DLL tolerates a failed slot 11 (0x585c to 0x58b1). The pipeline's value is set to 0 before the call. A failed HRESULT or a null object skips to the function's success return with the value still 0.
  • Measured: 0 means no scratch. At dispatch a value of 0 skips both the scratch buffer and command-list slot 141 (0x64d6).
  • Measured shape, hypothesis about type: the object's slot 3 is called without arguments and its result is read as a pointer to the dword; slot 2 releases it. That is the shape of ID3DBlob::GetBufferPointer and Release.
  • Measured over the 29 programs: no per-program scratch size exists to return.
    • COMPUTE_PGM_RSRC2.SCRATCH_EN is clear in all 29.
    • RSRC1 bit 20 is clear in all 29.
    • No program has a scratch_* or flat_scratch instruction.
    • Kind-0 words 0, 1 and 2 are each one value across all 29.
  • Hypothesis: a translated module keeps any private data in SPIR-V, not in a console scratch buffer. Nothing here needs one.
  • Open: what the console returns at slot 11 for these programs, the unit of the dword (the ×1024 suggests KiB), the meaning of 0xd0, and the leading 2 of list slot 141.

Results

Result
Programs in the DLL, unpacked by the FSPX step 29
Translated and spirv-val-valid at this head 26
Slot 67 driven by the DLL's own reader (harness, Vulkan device) 26 resolve to their own entry with their own state, 0 to another; 3 refused with E_INVALIDARG
Slot 11 on those pipelines answers 0 on all 24 the harness's device could create (2 more need the bindless set 0 its device lacks)
Harness, per device the same counts on llvmpipe, the Ryzen 9 7950X3D's integrated GPU (RDNA2) and the RX 7900 XTX (RDNA3); validation errors: Wine's own only, plus llvmpipe's known missing shaderDenormPreserveFloat16
d3d12_fspx_compute_test (mingw + Wine) passes on all three devices, 0 validation errors of its own

Tested

Linux, Mesa 26.3.1. The branch is on main at aa2988cc; main at 03b09a08 merges into it without conflicts.

  • Linux cmake + Ninja build and ctest: 47 of 47.
  • shader_library_test covers:
  • d3d12_fspx_compute_test, cross-built with mingw-w64 and run under Wine with VK_LAYER_KHRONOS_validation on the host:
    • slot 67 with all four pairs picks by kind 0 (one entry's module is missing on purpose, so the pick shows as E_FAIL);
    • new: dll_slot67 builds the description the way the DLL does, from the container's own directory (reader pair order, pointers into the payload, kind 6 copied into a 256-rounded buffer padded with 0xcc). Each program resolves to its own translation with its own state.
    • a proxy that reads kind 0 from +0x18, or kind 6 with the rounded size, fails the test (both mutations checked);
    • four inconsistent pairs are refused;
    • slot 11 on a slot-67 and a slot-62 pipeline returns an object whose slot 3 points at 0 and slot 4 gives 4 bytes; the object releases to 0 and the pipeline's reference count is unchanged;
    • the device proxy's reference count is 1 at teardown, as the test already checked.
  • d3d12_set0_compute_test passes on all three devices.
  • compileall, tests/test_fspx_shaders_stage.py, tests/test_fspx_unpack.py, tests/test_ctest_registration.py and the seven tests/test_docs_*.py checks: OK.
  • d3d12_compute_test fails under Wine at line 391 (host == layer), and fails the same way on plain main at aa2988cc built the same way. D3D-286, the ref-count failure at line 515, was not touched: test(d3d12): reset slot 67 PSOs before device refcount check in d3d12_compute_test #1919 was closed, and a comment on D3D12 → Vulkan layer: critical path, who builds what, open methods #313 reports it passing on Windows main.
  • device_proxy_test does not link with mingw here (a symbol from another shim), on main too.

Out of scope

  • Using kind 0 at run time beyond what the translated module carries (thread-group size and RSRC2).
  • Kinds 1 and 7: they are passed on in the payload, and nothing reads them.
  • A non-zero slot-11 value and the console scratch buffer: nothing measured asks for one.
  • Translating the 3 programs still left out: the DLL's dispatch needs every pipeline it uses.

Not tested

  • No MSVC build. No MSVC here, and the slot layout is exactly where MSVC and GCC differ; CI's Windows build will show it.
    • Locally, two #if guards were forced to the MSVC branch in a scratch copy: the mingw headers here take MSVC's struct-return form.
    • A local uuid header gained ID3D10Blob.
  • No Windows run of my own.
  • The DLL's own dispatch (fsr_dispatch_test) still did not run here.
    • It uses MSVC structured exception handling, which mingw-w64 GCC does not compile; clang for the mingw target accepts it but installs no handler.
    • A copy built without the handlers stops under Wine during ffxCreateContext, in the device's CreateShaderResourceView, with a resource whose vtable is null, before any pipeline is created. It is the GCC/MSVC ABI mismatch these mingw builds already show in d3d12_vulkan_device_test.
    • The harness above drives the DLL's reader and slot 67 instead.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. Offsets, counts and field meanings only; the tests build their inputs by hand.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2).

aslan2142 and others added 2 commits November 22, 2026 17:23
…ine answers console slot 11 (RT-99)

After slot 67 (or 62) creates a pipeline, amd_fidelityfx_upscaler_xbox.dll calls the pipeline's slot 11, past the
public ID3D12PipelineState, and the slot-67 mapping dropped the dispatch state, so two programs with the same code and
different kind 0 could not be told apart there.

- d3d12_xs_device.cpp: with kind 0 present (the DLL always passes it), slot 67 builds one FSPX payload from the four
  pointer and size pairs (leonida::fspx_payload_from_parts) and passes it as CS, so the device uses the code and
  state keys. Every pair is checked before it is read; an inconsistent one refuses the call. Without kind 0 the
  kind-6 bytes go on alone, as before.
- d3d12_vulkan_device.cpp: XboxPipelineStateStubs puts console slots 9, 10 and 11 into the pipeline's vtable ahead
  of Object's virtual destructor (one slot under MSVC, two under GCC), so they are slots 9 to 11 on both. Slot 11
  returns a blob holding 0; 9 and 10 return E_NOTIMPL.
- Why 0, measured on 1.0.2.1: the DLL zeroes the value before the call, keeps it at 0 when slot 11 fails or returns
  no object, and with 0 skips the scratch buffer and list slot 141 at dispatch. None of the 29 programs sets
  COMPUTE_PGM_RSRC2.SCRATCH_EN or has a scratch instruction, and kind-0 words 0 to 2 are the same in all 29, so no
  per-program scratch size is there.
- Tests: shader_library_test (payload building, refused pairs, the ItsNotRexed#1911 review case through slot-67 parts) and
  d3d12_fspx_compute_test (slot 67 with four pairs picks the right one of two programs sharing their code, bad pairs
  refused, slot 11 and its object's slot 3 and 4, reference counts unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s with 0, measured (RT-99)

- d3d12_command_objects.md section 3.5a: slot 67 now passes all four pairs; for slot 11, what the DLL does on failure
  and with 0 (measured in its code), the object's shape, why no program needs a scratch size (measured over the 29),
  what is implemented and what stays open.
- fspx.md: the slot-67 payload and its checks, and slot 11.
- d3d12_vulkan.md and runtime/README.md: the new parts of d3d12_fspx_compute_test; the DLL's own dispatch was not run
  here (fsr_dispatch_test needs MSVC structured exception handling).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vonsek

Vonsek commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Tested 34c130c natively on Windows 11 (MSVC, VS 2022 Build Tools, RelWithDebInfo; not mingw/Wine), AMD Radeon iGPU gfx1036 (RDNA2, driver 26.10.1) and RTX 5080 (driver 616.92): ctest -R "^(d3d12_fspx_compute|shader_library|d3d12_compute|d3d12_vulkan_device|device_proxy)$" (LEONIDA_VK_DEVICE set per run, device line confirmed, VK_LOADER_LAYERS_DISABLE=~implicit~, no validation layer installed) — pass on both, 5/5 each.

  • d3d12_compute, which fails under Wine at line 391 in the description, passes natively here on both GPUs (cached PSO: 2 host adapter(s) gave the same 11 answers).
  • device_proxy links and passes with MSVC.
  • tests/test_fspx_shaders_stage.py, tests/test_fspx_unpack.py, tests/test_ctest_registration.py: OK.

No negative control run.

AI-assisted.

@whattheflop

Copy link
Copy Markdown
Contributor

Independent native MSVC x64 result at 34c130c3: both synthetic slot-67 states produced their distinct expected dispatch output with identical program code, and slot 62 matched the wide control. All 192 dwords matched. Slot 11 returned the expected 4-byte zero blob on all three PSOs, with balanced object releases. Zero Vulkan validation errors on RTX 3080. Both stock targets built in MSVC Debug with /bigobj; execution used valid-only wrappers. Full GPU and ABI results in #166. AI-assisted (Codex).

@rafaelpssz

Copy link
Copy Markdown
Contributor

Tested 34c130c3 on Windows 11, RTX 3060 (driver 616.64), Vulkan SDK 1.4.363.1, built with clang-cl + xwin (RelWithDebInfo). No game files.

  • d3d12_fspx_compute_test: exit 0, also with LEONIDA_VK_VALIDATION=1.
  • shader_library_test and d3d12_compute_test: exit 0.
  • Red: with runtime/shims/d3d12_xs_device.cpp, runtime/shims/d3d12_vulkan_device.cpp and runtime/src/shader_library.h from the base aa2988cc (tests at head), d3d12_fspx_compute_test exits 1 at line 311: SUCCEEDED(slot67(device.p, &native, &pso_iid, ...)) && pso67.p, after the proxy logs the slot-67 kind-0/1/7 metadata. So the new slot-67 case exercises the change. shader_library_test doesn't build against the base, because it uses the new FspxPart API; that's expected for a new function.

@requiemsnkrp

Copy link
Copy Markdown

Tested 34c130c3 (merged onto main aa2988cc) on NVIDIA GeForce RTX 3060, driver 32.0.16.1714, Windows 11, MSVC 19.51, Vulkan SDK 1.4.363.0: pass.

  • With LEONIDA_VK_VALIDATION=1 (device: NVIDIA GeForce RTX 3060 (validation on)):
    • d3d12_fspx_compute ... Passed 0.44 sec. Its summary line reads fspx compute: PSOs from an ACCC container (slot 62) and a bare kind-6 program found their translated modules by fspx_code_sha256; each dispatch read its kind-6 program as its code base; malformed and untranslated inputs refused.
    • shader_library ... Passed (... FSPX programs and index lookup OK).
    • d3d12_compute ... Passed 0.70 sec: the kind-6-only path d3d12_xs: route slot 67 compute pipeline from native code to CreateComputePipelineState (RT-99) #1714 relies on still works.
  • Full ctest (-E "present|swapchain|frame_pacer", llvm-mc build): 100% tests passed, 0 tests failed out of 148 (9 skipped/disabled, same set as main: shader_library_corpus, bink_decode, bink_play_headless, fsr_dispatch, bvh_builder, bink_audio, gameinput, d3d12_rgb9e5_rtv, d3d12_first_light).
  • Built with MSVC only, so the GCC vtable-layout point in the description was not checked here.

AI-assisted (Claude). No game files.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 34c130c merged with main aa2988c (already its base, so a fast-forward) on Windows 11 with two GPUs (MSVC 14.51, RelWithDebInfo, Ninja): full runtime build and full ctest (153 tests; the submodule clone failed offline, which these tests don't use).

  • NVIDIA RTX 4080 SUPER: 153 of 153 passed or skipped (shader_library_corpus skips, needs game data). shader_library and d3d12_fspx_compute pass. This is MSVC, so the slot 11 vtable index is checked on the MSVC layout, not only mingw/GCC.
  • Intel UHD 770 (driver 32.0.101.6129, VK_LOADER_DRIVERS_DISABLE=*nv*): 152 of 153. shader_library and d3d12_fspx_compute pass. d3d12_present fails (present failed (VkResult -1000001004), then the pixel check at line 490). It fails the same way with this PR's three runtime files put back to main, and it passes on NVIDIA, so it is an existing Intel failure and not from this PR (the PR does not touch the present path).
  • Negative control: with d3d12_vulkan_device.cpp, d3d12_xs_device.cpp and shader_library.h put back to main, shader_library_test no longer compiles (FspxPart, fspx_payload_from_parts, kFspxPartLimit undeclared; compile-only). d3d12_fspx_compute_test still builds and fails on both GPUs at its first new check, line 311 (the slot 67 call with all four pairs).

No concerns.

@ricardotanaka

Copy link
Copy Markdown

Also tested 34c130c3 (merged onto main aa2988cc) on AMD Radeon RX 7600 (RDNA3), AMD driver 26.11.2, Windows 11 26200.9457, MSVC 19.44 RelWithDebInfo: pass, same as the checks above. d3d12_fspx_compute and shader_library pass, also with LEONIDA_VK_VALIDATION=1; full ctest 153/153.

No game files. AI-assisted (Claude Code).

@AirKyzzZ

Copy link
Copy Markdown

Tested 34c130c3 on RTX 2060, NVIDIA 566.14, Windows 10 22H2 (19045), clang-cl 23.1.6 + SDK 10.0.26100: pass.

Since you had no MSVC-ABI build: clang-cl lays vtables out the MSVC way, and d3d12_fspx_compute passes here, so the slot-11 call through the vtable index lands on xbox_slot11 (blob holding 0, size 4, releases to 0, E_POINTER on null) and the slot-67 block passes, including the slot 67 refused: a pointer/size pair is inconsistent or too large path. This box has no glslangValidator, so I fed a glslang 16.6.0 build of cs_user_data.comp (same -V --target-env vulkan1.3) through a copy wrapper to get d3d12_compute and d3d12_fspx_compute configured: both pass at this head and on main aa2988cc. device_proxy and shader_library pass. Full ctest (without the GLSL-gated tests): 129 passed / 10 skipped / 1 failed, identical to main aa2988cc: the one failure is d3d12_vulkan_device at line 5124, the known Windows 10 host comparison #3557 fixes. Not run: fsr_dispatch (needs the game's DLL). AI-assisted.

@VeTkN

VeTkN commented Nov 23, 2026

Copy link
Copy Markdown

Tested 34c130c on Windows 11 Pro (26200), RTX 5070, NVIDIA 621.24, MSVC 19.51 (VS 2026 Build Tools) via scripts/build_runtime.ps1, with my own 1.0.2.1 package and translated corpus. This includes the run the description lists as not done: fsr_dispatch with the package's own FidelityFX DLL. Offsets, counts and outcomes only.

  • ctest -R "^(shader_library|d3d12_fspx_compute)$": 2/2 passed.
  • shader_library_corpus with LEONIDA_SHADERS: the same counts on this PR and on its base aa2988c (26,503 containers, all 26,501 RPF entries reached, 20 FSPX entries, 0 failures; it exits 1 on both only because my older translation left 2 modules out).
  • fsr_dispatch, PC device: the same outcome on both, stopping at slot 62 with E_FAIL as documented.
  • fsr_dispatch with LEONIDA_FSR_DEVICE=vulkan and LEONIDA_SHADERS:
    • Base aa2988c: after the first slot-67 call, no lookup miss is logged and slot 62 is never called; the DLL then calls address 0, consistent with the missing slot 11 this PR adds. (The test prints "E_NOTIMPL for CreateRootSignature" there, its fixed label for any fault on the Vulkan device.)
    • This PR: no call to address 0, but that first slot-67 call now logs no translated compute shader for FSPX kind-6 and kind-0 sha256 .... Slot 62 then returns E_INVALIDARG, and ffxDispatch faults at DLL RVA 0x65ff reading address 0x10.
  • Why it misses, checked against tools/fspx_unpack.py's output for the same DLL (29 programs, no two with the same kind-6 bytes):
    • The hash in that message is the kind-6 SHA-256 of one of the 29 programs, and that program is not among the 20 in my spirv/fspx/index.json. Base logs a miss too (no translated compute shader for FSPX kind-6 ...) and logged none for this call, so the kind-6 bytes hashed here look different from the ones base looks up.
    • The 28-byte kind-0 at the address the base build logs for this call lies in a different program's container, and one entry of my spirv/fspx/index.json has its SHA-256 as the state key.
    • Logging the four pointer/size pairs, and what the device takes as kind 6 from the payload, on an MSVC build with the real DLL should show where they part.

AI-assisted (Claude).

… DLL's way, every failed call logged

A tester on ItsNotRexed#3951 saw a slot-67 lookup miss with the real FidelityFX DLL where the base build had none, and read it as
the proxy taking one program's kind 6 with another program's kind 0.

Pinned from the DLL's code and run on all 29 payloads: its FSPX reader (0x1a20) and the same loop inline for a
container store kinds 0, 1, 6 and 7 in four pairs from one payload, and the pipeline function copies them to +0x08,
+0x18, +0x28 (the kind-6 copy, with kind 6's own size at +0x30) and +0x38 of the description. That is the layout the
proxy reads, and code and state of one call always come from the same program. A harness that maps the DLL without
running it, calls its reader on each payload and builds the description that way resolves every translated program
to its own entry through slot 67 on the Vulkan device (26 of 29 on main aa2988c; the other 3 are refused), on
llvmpipe, the integrated GPU and the RX 7900 XTX.

So the proxy does not mix programs. What fits the report: with slot 11 answered, the DLL goes on to its next pipeline,
which that translation (20 of 29) does not have; only the first call of a slot is announced, so the miss read as the
first call's.

- d3d12_xs_device.cpp: every failed slot-67 call is logged with its number and the four sizes.
- d3d12_fspx_compute_test: dll_slot67 builds the description from a container's own directory the way the DLL does
  (reader pair order, pointers into the payload, kind 6 copied into a 256-rounded buffer padded with 0xcc); each
  program resolves to its own translation with its own state. A proxy that read kind 0 from +0x18 or kind 6 with
  the rounded size fails the test.
- docs/fspx.md, d3d12_command_objects.md, d3d12_vulkan.md: how the layout was pinned, and what happens when a later
  program is not translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aslan2142

Copy link
Copy Markdown
Contributor Author

@VeTkN, thank you for running this with the real DLL; it was the run I could not do. I checked the layout against the DLL itself. The proxy hands the device the right program, and the miss you saw is most likely a later pipeline that your translation does not have.

What I checked

  • The layout. The DLL's FSPX reader (0x1a20), its inline loop for a container and its copy into the description put kind 0, 1, 6 and 7 at +0x08, +0x18, +0x28 (the kind-6 copy, its own size at +0x30) and +0x38. That is what the proxy reads, and kind 0 and kind 6 of one call always come from the same payload.
  • A harness on the real DLL. It maps the DLL without running it, calls its reader on all 29 payloads and builds each slot-67 description the way the DLL does. With the 26 programs main translates now, all 26 resolve to their own entry with their own state on the Vulkan device, and the other 3 are refused. The same on llvmpipe, a Ryzen 9 7950X3D's integrated GPU and an RX 7900 XTX (Mesa 26.3.1, Wine).

What fits your run (a hypothesis: the full dispatch did not run here)

  • The proxy announces only the first call of a slot. With slot 11 answered, the DLL goes on to create its next pipeline.
  • If that program is one of the 9 your 20-entry translation leaves out, slot 67 misses and slot 62 refuses the same container. The DLL then faults at 0x65ff with the null pipeline.
  • That fits all three of your observations:
    • the hash in the miss belongs to an untranslated program;
    • base logged no miss, because it never got past slot 11;
    • the kind 0 the base build logged belongs to the first program, whose entry has that state key.

What changed on the branch (a6f9bc4b)

  • Every failed slot-67 call is now logged with its number and the four sizes (slot 67 call N failed), so it shows which call misses.
  • d3d12_fspx_compute_test now also builds the description the way the DLL does, from a container's own directory, and checks that each program resolves to its own translation with its own state.
  • docs/fspx.md states how the layout was pinned.

What you could re-run

  • fsr_dispatch with LEONIDA_FSR_DEVICE=vulkan on a6f9bc4b, and the number in the slot 67 call N failed line.
  • With a translation from current main (26 of 29). If the dispatch needs one of the 3 still left out, it will stop there; that is a translator gap, not the proxy.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2).

@VeTkN

VeTkN commented Nov 23, 2026

Copy link
Copy Markdown

Re-ran on a6f9bc4 as you asked, on the same machine (Windows 11 Pro 26200, RTX 5070, NVIDIA 621.24, MSVC 19.51): fsr_dispatch with the package's DLL and LEONIDA_FSR_DEVICE=vulkan. You're right, and my reading of the first run was wrong: the miss is not the first call.

  • d3d12_fspx_compute: passed.
  • With my older FSPX translation (20 of 29): slot 67 call 5 failed with 0x80070057 (kind 0 28 B, kind 1 20 B, kind 6 10432 B, kind 7 216 B). Calls 1 to 4 resolve; slot 62 then refuses the same program and the dispatch faults at 0x65ff as before.
  • With the FSPX programs translated again by current main (03b09a0), with --wave64-emulate as in my original translation: 22 of 29 translate here, not the 26 you mention, and the 7 others stop at reachable instruction with normalized encoding. Same result: call 5 fails, with the same kind-6 hash as the run above.

So with emulation on, the 5th program is one of the 7 that main can't translate yet: a translator gap, not the proxy.

AI-assisted (Claude).

@aslan2142

Copy link
Copy Markdown
Contributor Author

@VeTkN, thank you, that settles it for this pull request: call 5, a program the translation lacks.

AI-assisted (Claude Code, Claude Fable 5.2).

@VeTkN

VeTkN commented Nov 23, 2026

Copy link
Copy Markdown

llvm-mc 21.1.8 here (the one the shaders stage records). My 7 are 03, 05, 06, 08, 09, 18 and 28: 03 and 18 stop at v_dot4_i32_i8 like yours, and 05, 06, 08, 09 and 28 at one exp each; 27 translates with this llvm-mc. Details are in a finding in #4421. The 5th slot-67 call is program 03, so with your llvm-mc it would stop at the same call.

AI-assisted (Claude).

@Exopus-0x65f7ad0

Copy link
Copy Markdown

Tested a6f9bc4b on Windows 11 (26300), RTX 5060 Ti / 621.14, MSVC 14.51 (VS 2026), Vulkan SDK 1.4.363.0, RelWithDebInfo, clean build with -DLEONIDA_LLVM_MC (translated-shader D3D12 gate tests included), full LEONIDA_VK_VALIDATION=1 ctest -j4: 144/144 passed, 0 VUIDs, 0 build errors. AI-assisted (Claude Code).

@Vonsek

Vonsek commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested a6f9bc4 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran ctest -R "^(d3d12_fspx_compute|shader_library)$" (the tests this PR changes): pass on both GPUs, 2/2 each. No game files.

AI-assisted.

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.

10 participants