FFX shim: the title's five FidelityFX calls answered by the layer's PC upscaler (part 2) #151

Open
github-bot wants to merge 27 commits from github-bot/gh-151 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:29 UTC · original
ubiquitarianism:old-pr/9883 → main · +2110 −8 · 18 files · 27 commits · draft

Carried over from old PR 9883 by AwkGrep256 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9883, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
AwkGrep256: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Resubmitted unchanged: this was #5171, closed at the repository's move to the organisation (the members-only switch, 22:25–22:49 UTC) with no review comment; reopening it is refused. Same branch and head (a5112a362), which merges cleanly on main 7e39a81ea. The test reports from other contributors are on #5171.

Item: the FFX upscale shim (claim: https://github.com/ItsNotRexed/Leonida/issues/5032#issuecomment-7095090683), part 2 of 2: the shim table that answers the title's five FidelityFX calls with part 1's layer path.

Depends on: #9882 (part 1, the layer's Upscale command), which depends on #9877 (the backend). This branch carries both; this PR's own work is 016df7f2 and the docs commit after it (plus a merge of the chain's wording fix).

Draft until #9882 and #9877 are ready.

What

  • shims/ffx_shim.cpp serves ffxCreateContext, ffxDestroyContext, ffxConfigure, ffxQuery and ffxDispatch for both package modules that export them:

    • amd_fidelityfx_loader_xbox.dll;
    • amd_fidelityfx_upscaler_xbox.dll.

    dumpbin shows exactly these five on each (docs/d3d12_command_objects.md §3.5). Which module the title calls needs its executable.

  • Registration: the table registers before main, and only with LEONIDA_FFX_PC=1 in the process environment. The shims then own both modules: imports and LoadLibrary/GetProcAddress resolve here, and the package's copies are never mapped. Off, nothing is registered and the title loads the package's DLLs exactly as before; d3d12_ffx_shim_off checks this.

  • In gta6rt: the file is a source of gta6rt itself, in its Vulkan block. In the static library nothing would reference the self-registering object, so the linker would drop it.

The calls:

  • ffxCreateContext: takes the upscale description and the device of the console backend descriptor from the chain. That descriptor is type 0x01000002 with the device at +0x10, measured in docs/d3d12_vulkan.md A.3; the code asserts the offset.
    • The console's version and provider-override descriptors aren't passed on.
    • The backend attaches the SDK 2.4.0 FFX_UPSCALER_VERSION (4.1.2) instead. Without it, AMD's loader reported that the newer API functions are unavailable.
    • The handle the title gets is the rt::ffx_upscale context number.
    • No upscale description is UNKNOWN_DESCTYPE; no backend descriptor or device is ERROR_PARAMETER.
  • ffxDispatch: one leonida::Upscale recorded into the title's list (#9882). Other dispatch types (the reactive-mask generator, …) are UNKNOWN_DESCTYPE, logged once per type.
  • ffxQuery / ffxConfigure: pass through to AMD's loader, with these exceptions:
    • a context-less GET_VERSIONS names the title's D3D12 device, which is replaced by that device's Vulkan handles;
    • other context-less queries get the Vulkan backend chained for the call, and the title's chain is restored;
    • a context-less global-debug configure for effect 0 is sent for the upscaler, because AMD's PC loader answers effect 0 with UNKNOWN_DESCTYPE (measured).
  • ffxDestroyContext: rt::ffx_upscale::destroy (part 1: it waits for idle under the submit lock).
  • Tests:
    • test/d3d12_ffx_scene.h holds the scene both layer tests share; the part 1 test now uses it, which removes about 200 duplicated lines.
    • d3d12_ffx_shim_test calls the five functions as the loader binds them (rt::shims::find on the console names), with the console chain.

When the title calls FSR (added in the last commit)

Rockstar's statement on the console versions, as reported by VideoCardz and Alt Char:

  • Series S: 720p → 1080p with FSR Upscaling 4. That's the one configuration the package's DLL builds (#780).
  • Series X and PS5: 1440p → 4K with Rockstar's own TAA, not FSR.

The runtime reports a Series X by default (XSystemGetDeviceType). So the title would take its TAA path, which needs nothing beyond the translated shaders, and never call FSR.

  • LEONIDA_DEVICE_TYPE=6 reports a Series S, the mode that reaches this shim. That suits weaker GPUs: 720p rendering with PC FSR 4.1 or 3.1.
  • This assumes the title picks its mode from the device type, which only the running title will show.
  • Using FSR in the Series X mode would mean replacing the title's TAA pass, a separate later step that needs the title running. This is in docs/d3d12_vulkan.md A.3.

Performance

  • Off: nothing registered, so there's no change to imports, loading or replay.
  • On, per call:
    • ffxDispatch: a field-by-field copy into a 136-byte Upscale and one record_upscale, O(1). Replay cost is part 1's: one barrier each way, then AMD's dispatch.
    • ffxCreateContext / ffxDestroyContext: rare, at resolution changes.
    • Queries and configures: one registry lookup plus AMD's call. The first context-less call loads AMD's loader once.
  • Logging: the "unsupported type" log takes a mutex only on that error path.

Tested

Built with clang-cl 23.1.5 + xwin and run under Wine 11.22 on CachyOS, Mesa 26.3.1 RADV, FidelityFX SDK 2.4.0 DLLs, through ctest (which sets LEONIDA_FFX_PC per test):

GPU providers offered to the title's device context gets d3d12_ffx_shim d3d12_ffx_shim_off d3d12_ffx_upscale ffx_vk_dispatch
RX 9070 XT 4.1.2, 3.1.6, 2.3.4 FSR 4.1.2 PASS (880/880) PASS PASS PASS
Ryzen 7 9800X3D iGPU 3.1.6, 2.3.4 FSR 3.1.6 PASS (880/880) PASS PASS PASS
  • The test can fail: with ffxDispatch returning OK without recording, the shim test reports 440/880 and FAIL.
  • Without LEONIDA_FFX_DIR, d3d12_ffx_shim and d3d12_ffx_upscale skip (77).
  • Validation: with the host's validation layer beneath Wine and synchronization validation, neither the shim nor the layer reports anything. On the 9070 XT the remaining errors are FSR 4.1.2's own shader errors from #9877; on the iGPU there's only Wine's own 01387.
  • Builds and checks: the full Windows build passes. test_ctest_registration.py, test_cmake_vulkan_missing.py, test_runtime_paths.py and the test_docs_* checks pass.
  • Not run:
    • native Windows (Kam471 ran part 1's tests there);
    • the game's own call sequence, which needs its executable.

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

🤖 Generated with Claude Code

**@⁠Andretuta** on GitHub · 2026-11-24 02:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/151) `ubiquitarianism:old-pr/9883` → `main` · +2110 −8 · 18 files · 27 commits · draft > Carried over from **old PR 9883** by `AwkGrep256` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9883`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `AwkGrep256`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Resubmitted unchanged: this was `#5171`, closed at the repository's move to the organisation (the members-only switch, 22:25–22:49 UTC) with no review comment; reopening it is refused. Same branch and head (`a5112a362`), which merges cleanly on `main` `7e39a81ea`. The test reports from other contributors are on `#5171`. Item: the FFX upscale shim (claim: https://github.com/ItsNotRexed/Leonida/issues/5032#issuecomment-7095090683), **part 2 of 2: the shim table** that answers the title's five FidelityFX calls with part 1's layer path. Depends on: `#9882` (part 1, the layer's Upscale command), which depends on `#9877` (the backend). This branch carries both; this PR's own work is `016df7f2` and the docs commit after it (plus a merge of the chain's wording fix). **Draft until `#9882` and `#9877` are ready.** ### What - **`shims/ffx_shim.cpp`** serves `ffxCreateContext`, `ffxDestroyContext`, `ffxConfigure`, `ffxQuery` and `ffxDispatch` for both package modules that export them: - `amd_fidelityfx_loader_xbox.dll`; - `amd_fidelityfx_upscaler_xbox.dll`. `dumpbin` shows exactly these five on each (`docs/d3d12_command_objects.md` §3.5). Which module the title calls needs its executable. - **Registration:** the table registers **before `main`, and only with `LEONIDA_FFX_PC=1`** in the process environment. The shims then own both modules: imports and `LoadLibrary`/`GetProcAddress` resolve here, and the package's copies are never mapped. **Off, nothing is registered** and the title loads the package's DLLs exactly as before; `d3d12_ffx_shim_off` checks this. - **In `gta6rt`:** the file is a source of `gta6rt` itself, in its Vulkan block. In the static library nothing would reference the self-registering object, so the linker would drop it. **The calls:** - **`ffxCreateContext`:** takes the upscale description and the device of the console backend descriptor from the chain. That descriptor is type `0x01000002` with the device at `+0x10`, measured in `docs/d3d12_vulkan.md` A.3; the code asserts the offset. - The console's version and provider-override descriptors aren't passed on. - The backend attaches the SDK 2.4.0 `FFX_UPSCALER_VERSION` (4.1.2) instead. Without it, AMD's loader reported that the newer API functions are unavailable. - The handle the title gets is the `rt::ffx_upscale` context number. - No upscale description is `UNKNOWN_DESCTYPE`; no backend descriptor or device is `ERROR_PARAMETER`. - **`ffxDispatch`:** one `leonida::Upscale` recorded into the title's list (`#9882`). Other dispatch types (the reactive-mask generator, …) are `UNKNOWN_DESCTYPE`, logged once per type. - **`ffxQuery` / `ffxConfigure`:** pass through to AMD's loader, with these exceptions: - a context-less `GET_VERSIONS` names the title's D3D12 device, which is replaced by that device's Vulkan handles; - other context-less queries get the Vulkan backend chained for the call, and the title's chain is restored; - a context-less global-debug configure for effect 0 is sent for the upscaler, because AMD's PC loader answers effect 0 with `UNKNOWN_DESCTYPE` (measured). - **`ffxDestroyContext`:** `rt::ffx_upscale::destroy` (part 1: it waits for idle under the submit lock). - **Tests:** - `test/d3d12_ffx_scene.h` holds the scene both layer tests share; the part 1 test now uses it, which removes about 200 duplicated lines. - `d3d12_ffx_shim_test` calls the five functions as the loader binds them (`rt::shims::find` on the console names), with the console chain. ### When the title calls FSR (added in the last commit) Rockstar's statement on the console versions, as reported by [VideoCardz](https://videocardz.com/newz/gta-vi-uses-amd-fsr-4-on-xbox-series-s-renders-at-720p-with-ray-traced-global-illumination) and [Alt Char](https://www.altchar.com/game-news/gta-vi-uses-amds-fsr-4-on-xbox-series-s-but-not-on-series-x-aOvqJ1G7YxhJ): - **Series S:** 720p → 1080p with **FSR Upscaling 4**. That's the one configuration the package's DLL builds (`#780`). - **Series X and PS5:** 1440p → 4K with **Rockstar's own TAA**, not FSR. The runtime reports a **Series X** by default (`XSystemGetDeviceType`). So the title would take its TAA path, which needs nothing beyond the translated shaders, and never call FSR. - **`LEONIDA_DEVICE_TYPE=6`** reports a Series S, the mode that reaches this shim. That suits weaker GPUs: 720p rendering with PC FSR 4.1 or 3.1. - This assumes the title picks its mode from the device type, which only the running title will show. - Using FSR in the Series X mode would mean replacing the title's TAA pass, a separate later step that needs the title running. This is in `docs/d3d12_vulkan.md` A.3. ### Performance - **Off:** nothing registered, so there's no change to imports, loading or replay. - **On, per call:** - `ffxDispatch`: a field-by-field copy into a 136-byte `Upscale` and one `record_upscale`, O(1). Replay cost is part 1's: one barrier each way, then AMD's dispatch. - `ffxCreateContext` / `ffxDestroyContext`: rare, at resolution changes. - Queries and configures: one registry lookup plus AMD's call. The first context-less call loads AMD's loader once. - **Logging:** the "unsupported type" log takes a mutex only on that error path. ### Tested Built with clang-cl 23.1.5 + xwin and run under Wine 11.22 on CachyOS, Mesa 26.3.1 RADV, FidelityFX SDK 2.4.0 DLLs, through `ctest` (which sets `LEONIDA_FFX_PC` per test): | GPU | providers offered to the title's device | context gets | `d3d12_ffx_shim` | `d3d12_ffx_shim_off` | `d3d12_ffx_upscale` | `ffx_vk_dispatch` | |---|---|---|---|---|---|---| | RX 9070 XT | 4.1.2, 3.1.6, 2.3.4 | FSR 4.1.2 | PASS (880/880) | PASS | PASS | PASS | | Ryzen 7 9800X3D iGPU | 3.1.6, 2.3.4 | FSR 3.1.6 | PASS (880/880) | PASS | PASS | PASS | - **The test can fail:** with `ffxDispatch` returning OK without recording, the shim test reports 440/880 and FAIL. - **Without `LEONIDA_FFX_DIR`**, `d3d12_ffx_shim` and `d3d12_ffx_upscale` skip (77). - **Validation:** with the host's validation layer beneath Wine and **synchronization validation**, neither the shim nor the layer reports anything. On the 9070 XT the remaining errors are FSR 4.1.2's own shader errors from `#9877`; on the iGPU there's only Wine's own `01387`. - **Builds and checks:** the full Windows build passes. `test_ctest_registration.py`, `test_cmake_vulkan_missing.py`, `test_runtime_paths.py` and the `test_docs_*` checks pass. - **Not run:** - native Windows (Kam471 ran part 1's tests there); - the game's own call sequence, which needs its executable. No game files. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The AMD counterpart of #4801's DLSS backend. The game calls the five FFX
functions of the package's amd_fidelityfx_upscaler_xbox.dll, whose 29
INT8 programs would otherwise be translated and which only builds a
1080p Quality table. AMD's public FidelityFX SDK 2.4.0 ships a signed
Vulkan loader (amd_fidelityfx_loader_vk.dll) at feature parity with
DX12, so the same calls can be answered on the layer's own VkDevice
with no D3D12 device. The loader picks the newest upscaler the GPU has.

- src/ffx_vk_backend.{h,cpp}: load the loader from LEONIDA_FFX_DIR or
  next to the program, create the upscale context with the Vulkan
  backend descriptor in place of the console one, report the provider,
  pass dispatches through (VkImage resources, a VkCommandBuffer).
- test/ffx_api_min.h: the Vulkan backend descriptor and the
  provider-version query, from the SDK's MIT headers.
- test/ffx_vk_dispatch_test.cpp: 30 upscales of a procedural
  checkerboard (no game data) with the game's context flags; every
  output value finite and every square right. Skips (77) without a GPU
  or the DLL.
- docs/d3d12_vulkan.md A.3: what was measured.

Under Wine 11.22 on RADV (Mesa 26.3.1), no device extensions: RX 9070
XT gets FSR 4.1.2 (0.64 ms per 1280x720 -> 2560x1440 upscale), the
9800X3D iGPU FSR 3.1.6 (15.7 ms); both pass. Not run on Windows yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
whattheflop's Windows run (AMD driver 32.0.21030.2001, Ryzen 7 9800X3D iGPU)
under Khronos validation found FSR 3.1.6's shader modules using compute-shader
derivatives the fixture device had not enabled (pCode-08740/08742). The same
shows under RADV, and FSR 4.1.2 on the RX 9070 XT also uses 8-bit floats and
cooperative matrices.

- ffx_vk_backend.h: wanted_device_extensions, the three AMD's own sample device
  enables where present (VK_KHR_compute_shader_derivatives,
  VK_KHR_cooperative_matrix, VK_EXT_shader_float8).
- ffx_vk_dispatch_test: enables those the device has with all their features;
  LEONIDA_VK_VALIDATION=1 runs under VK_LAYER_KHRONOS_validation and fails on any
  validation error except the five known_provider_error names by VUID and text,
  which are in AMD's FSR 4.1.2 shaders (SPV_NV_cooperative_matrix2, which RADV
  does not offer on RDNA4; two spirv-val rejections; 3-component writes to
  RGBA16F storage images). Fails if the layer is missing.
- docs/d3d12_vulkan.md A.3: corrects "no device extensions" and lists them.

With the extensions, the iGPU (FSR 3.1.6) is clean under the host validation
layer; the 9070 XT (FSR 4.1.2) reports only the five provider errors. Applied to
the earlier logs, the rules count the iGPU's derivatives errors, so that run
would now fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test ran one 1280x720 -> 2560x1440 case. It now runs two, each on its own
context: 1280x720 -> 1920x1080, the one configuration the console's DLL builds
(docs/d3d12_vulkan.md A.3), and 1920x1080 -> 3840x2160. Under Wine on RADV: RX
9070 XT (FSR 4.1.2) 0.41 ms and 1.22 ms per upscale, 9800X3D iGPU (FSR 3.1.6)
10.1 ms and 35.3 ms; both pass, and both cases fail with the dispatch removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The layer side of the FFX upscale shim behind #4999 (RT-344): what the shim
will record for the game's ffxDispatch, and how replay runs it. Off unless
LEONIDA_FFX_PC=1; with it off the device and replay behave as before.

- command_list.h: leonida::Upscale (FfxDispatchDescUpscale's fields, images as
  resource ids), recorded by CommandList::upscale.
- vulkan_replay.h: two hooks (upscale_ready, upscale). Prepare resolves the
  images and skips a command whose context is gone; emit moves the inputs to
  the NON_PIXEL_SHADER_RESOURCE layout and the output to the UAV layout through
  the layout tracker, records the upscale and moves each back.
- vulkan_backend.h: an Upscale counts as shader work; set_upscaler() sets the
  hooks once, before the device is handed out.
- shims/ffx_upscale.{h,cpp}: the contexts on a device (create, destroy,
  provider), the hooks, and the FfxApiSurfaceFormat of each VkFormat. destroy()
  and device teardown wait for idle under the submit lock first.
- d3d12_vulkan_device.cpp: with the switch on, enables the upscaler's
  extensions and the core features its shaders declare (found under the
  validation layer: 16-bit storage, variable pointers, int8, float16, the
  Vulkan memory model with device scope), each where the GPU has it.
- d3d12_com: rt::d3d12::record_upscale (not in bundles or copy lists).
- ffx_vk_backend: getenv_s, as the layer reads its variables.
- test/d3d12_ffx_upscale_test: end to end through the layer's own objects.

Under Wine on RADV: RX 9070 XT FSR 4.1.2 0.49 ms, iGPU FSR 3.1.6 10.1 ms per
720p -> 1080p execute; 880/880 squares; a destroyed context is skipped; the
test fails with the upscale call removed. Validation with sync validation:
nothing from the layer (iGPU silent; on the 9070 XT only FSR 4.1.2's own
shader errors). Full Linux and Windows builds; Linux ctest 48/50 (2 skipped);
the d3d12_* tests under Wine fail the same 6 as main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two costs of the Upscale command, measured:

- Prepared carried a std::vector for the Upscale images, 24 bytes on every
  command of every list, upscaler on or off (944 -> 968 bytes). The images now
  live in PreparedList::upscale_images, kept between executions like draws, and
  an Upscale names its first through Prepared::draw: Prepared is 944 bytes
  again. replay_cpu_bench's frame (37,888 commands): ~4,620 -> ~4,540 us, about
  0.9 MB less touched per execute.
- Emit issued one vkCmdPipelineBarrier per image piece, up to 14 per upscale.
  It now collects them (and one memory barrier for pieces already in place) into
  one barrier before the upscale and one after, with restrict_to_queue and
  layout_range as detail::image_barrier applies them; fixed-size storage, no heap
  allocation.

Same results: d3d12_ffx_upscale_test PASS on the RX 9070 XT (FSR 4.1.2,
0.49 ms) and the iGPU (FSR 3.1.6); validation with sync validation reports
nothing from the layer and no hazard; replay and command-list unit tests pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
shims/ffx_shim.cpp serves ffxCreateContext, ffxDestroyContext, ffxConfigure,
ffxQuery and ffxDispatch for amd_fidelityfx_loader_xbox.dll and
amd_fidelityfx_upscaler_xbox.dll, the two package modules that export them
(which one the title calls needs its executable). The table registers before
main and only with LEONIDA_FFX_PC=1; off, nothing is registered and the title
loads the package's DLLs as before. It is a source of gta6rt itself: in the
static library nothing would reference it and the linker would drop it.

- create: the upscale description and the device of the console backend
  descriptor (0x01000002, device at +0x10) from the chain; the console's
  version and override descriptors are not passed on. The handle is the
  rt::ffx_upscale context number.
- dispatch: one leonida::Upscale into the title's list (record_upscale).
- query/configure: through AMD's loader (rt::ffx_upscale::query, configure);
  a context-less GET_VERSIONS gets the device's Vulkan handles, other
  context-less queries the Vulkan backend chained for the call; a global debug
  configure for effect 0 goes to the upscaler (AMD's PC loader answers effect 0
  with UNKNOWN_DESCTYPE, measured).
- Other description types: FFX_API_RETURN_ERROR_UNKNOWN_DESCTYPE, logged once.
- ffx_vk_backend: query/configure pass-through, and the SDK 2.4.0
  FFX_UPSCALER_VERSION (4.1.2) descriptor on create, without which the loader
  reports the newer API functions unavailable.
- test/d3d12_ffx_scene.h: the scene both layer tests share (the part 1 test now
  uses it). test/d3d12_ffx_shim_test: the functions as the loader binds them,
  on (LEONIDA_FFX_PC=1) and off (--expect-off, nothing registered or owned).

Under Wine on RADV: RX 9070 XT offered 4.1.2/3.1.6/2.3.4, context FSR 4.1.2,
30 dispatches 880/880; iGPU FSR 3.1.6, 880/880; off test passes; the test fails
with the dispatch not recorded. Validation with sync validation: nothing from
the layer or the shim. Full Windows build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RSK2707X's native Windows run on an RX 7600 (RDNA3, AMD 26.11.2) got FSR 4.1.2,
where the comments said FSR 4.1 only on RDNA4 and RDNA2 discrete. The comments
and docs/d3d12_vulkan.md A.3 now state what was measured: 4.1.2 on RDNA4 under
RADV and on RDNA3 under AMD's Windows driver, 3.1.6 on an RDNA2 iGPU and on
NVIDIA (RTX 3080 Ti, 4080, 5070 Ti), with the reviewers' Windows results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rockstar's statement on the console versions (VideoCardz, Alt Char, November
2026): the Series S renders at 720p and upscales to 1080p with FSR Upscaling 4,
the package DLL's one configuration; the Series X and PS5 render at 1440p and
reach 4K with Rockstar's own TAA. The runtime reports a Series X by default, so
the shim is reached in the Series S mode (LEONIDA_DEVICE_TYPE=6), assuming the
title picks its mode from the device type. Using FSR in the Series X mode would
mean replacing the title's TAA pass, which needs the title running.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
amarovndres ran both tests on an RX 9060 XT with AMD 26.10.1: FSR 4.1.2, every
square right, and under validation only the five known_provider_error entries,
as under RADV and on the RX 7600. The A.3 note that RDNA4 on Windows was not
run is replaced by that result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	docs/d3d12_vulkan.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	runtime/src/ffx_vk_backend.cpp
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shim looked for 0x02000002, which the console DLL refuses, so the title's
context would never be created; the test made the same mistake. Its id is
now written out separately in the test, with a BACKEND_ID_XBOX control.
GPU_MEMORY_USAGE_V2 (device at +0x10) and GET_VERSIONS with a context now get
the layer's VkDeviceContext for the call, the title's device put back after.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	runtime/CMakeLists.txt
# Conflicts:
#	runtime/CMakeLists.txt
#	runtime/src/vulkan_replay.h
# Conflicts:
#	runtime/CMakeLists.txt
# Conflicts:
#	runtime/CMakeLists.txt
# Conflicts:
#	runtime/shims/d3d12_com.cpp
#	runtime/src/command_list.h
A title whose Xbox backend description is missing or has no device got
RETURN_ERROR_PARAMETER with nothing in the log, so a retail run could not
tell "never called" from "called and refused". One line, the first time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:46:33 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/CMakeLists.txt
  • runtime/shims/d3d12_com.cpp
  • runtime/shims/d3d12_vulkan_device.cpp
  • runtime/src/command_list.h
  • runtime/src/vulkan_backend.h
  • runtime/src/vulkan_replay.h
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/151/head:github-bot/gh-151'
git switch 'github-bot/gh-151'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-151'
git switch 'github-bot/gh-151'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-151'
git switch 'github-bot/gh-151'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-151'
git switch 'main'
git merge --squash 'github-bot/gh-151'
git switch 'main'
git merge --ff-only 'github-bot/gh-151'
git switch 'main'
git merge 'github-bot/gh-151'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.