mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
upscale: DLSS frames reach the layer in Streamline/Unreal D3D12 games
Bright Memory: Infinite (Unreal Engine, D3D12, NVIDIA Streamline) now passed NGX's checks but no frame reached the layer. Two causes, fixed here: - The layer recognised the bridge's mailbox by size and the storage bit only, in a 128-entry table; the game's own 8 KB storage buffers filled it first, so the bridge's doorbells were ignored. It now matches the exact usage the bridges create them with (mailbox STORAGE|TRANSFER_DST, marker TRANSFER_DST), keeps 1024 entries and warns once if the table is ever full. - Streamline (sl.interposer) wraps the devices and command lists it creates; vkd3d-proton and DXVK do not know the wrappers. wl_streamline.h asks a wrapper for StreamlineRetrieveBaseInterface (Streamline source/core/sl.interposer/d3d12/d3d12Device.cpp) and the interop calls retry on the wrapped object: device queries, BeginVkCommandBufferInterop/End, GetVulkanResourceInfo1. DROIDDECK_UPSCALE_LOG=1 now also logs the NGX bridge's D3D12 attach and first evaluate (seam ready, images found, command list accepted, dispatch result).
This commit is contained in:
1 parent
772f83cf95
commit
e5d7bddfdb
11 files changed
+230
-28
No files matched your search
@@ -108,6 +108,28 @@ class UpscalerSettingsTest(unittest.TestCase):
|
||||
self.assertEqual("0", env["DROIDDECK_UPSCALE_SIGFIX"])
|
||||
env, _ = MODULE["upscale_settings"]({"DROIDDECK_UPSCALE_MODE": "fsr"}, None)
|
||||
self.assertNotIn("DROIDDECK_UPSCALE_SIGFIX", env)
|
||||
def test_dlss_mode_puts_nvapi_and_ngx_in_system32_and_other_modes_take_ours_out(self):
|
||||
prefix = tempfile.mkdtemp()
|
||||
self.addCleanup(shutil.rmtree, prefix, True)
|
||||
system32 = Path(prefix, "pfx/drive_c/windows/system32")
|
||||
system32.mkdir(parents=True)
|
||||
for name in ("nvapi64.dll", "_nvngx.dll", "nvngx.dll", "nvngx_dlss.dll"):
|
||||
Path(self.root, "bridges/x86_64-windows", name).write_bytes(b"MZ-v1-" + name.encode())
|
||||
MODULE["upscale_settings"]({"DROIDDECK_UPSCALE_MODE": "dlss"}, prefix)
|
||||
self.assertEqual(b"MZ-v1-nvapi64.dll", (system32 / "nvapi64.dll").read_bytes())
|
||||
self.assertEqual(b"MZ-v1-_nvngx.dll", (system32 / "_nvngx.dll").read_bytes())
|
||||
Path(self.root, "bridges/x86_64-windows/_nvngx.dll").unlink()
|
||||
Path(self.root, "bridges/x86_64-windows/_nvngx.dll").write_bytes(b"MZ-v2-_nvngx.dll")
|
||||
env, _ = MODULE["upscale_settings"]({"DROIDDECK_UPSCALE_MODE": "dlss"}, prefix)
|
||||
self.assertEqual(b"MZ-v2-_nvngx.dll", (system32 / "_nvngx.dll").read_bytes())
|
||||
self.assertEqual("rtx", env["DROIDDECK_UPSCALE_GPU_SPOOF"])
|
||||
(system32 / "nvngx.dll").write_bytes(b"someone else's nvngx")
|
||||
env, _ = MODULE["upscale_settings"]({"DROIDDECK_UPSCALE_MODE": "fsr"}, prefix)
|
||||
self.assertEqual("off", env["DROIDDECK_UPSCALE_GPU_SPOOF"])
|
||||
self.assertFalse((system32 / "nvapi64.dll").exists())
|
||||
self.assertFalse((system32 / "_nvngx.dll").exists())
|
||||
self.assertEqual(b"someone else's nvngx", (system32 / "nvngx.dll").read_bytes())
|
||||
|
||||
|
||||
def test_a_game_started_on_xess_without_the_runtime_says_so(self):
|
||||
prefix = tempfile.mkdtemp()
|
||||
|
||||
Reference in new issue
Block a user