From 2558fcbd3992525c72b06169caba373f1e048212 Mon Sep 17 00:00:00 2001 From: ayo <93222141+countervolts@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:36:40 -0400 Subject: [PATCH] Improve GPU compatibility, RDNA2 kernels and startup diagnostics - Match render/compute adapters and gate RR models by GPU capabilities - Add RDNA2 native texture kernels and fix FP16 rounding - Harden model builds, cache validation and packaging - Add startup tracing, timeouts, documentation and regression tests --- docs/architecture.md | 2 + docs/linux-startup-diagnostics.md | 65 ++++++++++ docs/native-kernels.md | 6 +- install.sh | 7 +- kernels/build.sh | 33 +++-- kernels/k/pwin_common.h | 11 ++ kernels/native/build_native.sh | 4 +- kernels/native/output_tile.h | 5 +- kernels/native/ptx2hip.py | 4 +- kernels/native/ptx_rt.h | 10 ++ packaging/D4R_README.txt | 4 + packaging/build_engine_models.sh | 51 ++++++-- packaging/model_tools.py | 164 +++++++++++++++++++++++ scripts/build_d4r_nvngx_shim.sh | 3 +- scripts/build_release_glibc241.sh | 10 +- scripts/build_wine_nvcuda_bridge.sh | 2 + scripts/d4r_config.py | 6 + scripts/package_release.sh | 24 +++- scripts/runtime_build_id.sh | 7 + scripts/stage_engine_kit.sh | 1 + tests/test_gpu_compatibility.py | 149 +++++++++++++++++++++ tests/test_model_builder.py | 96 ++++++++++++++ tests/test_rdna2_native_output.py | 193 ++++++++++++++++++++++++++++ tests/test_shim_config.py | 14 ++ tools/d3d12_dlss_harness.cpp | 26 +++- tools/d4r_build.h | 4 + tools/d4r_engine_compat.h | 35 +++++ tools/d4r_fsr_rr_identity.h | 8 +- tools/d4r_gpu_identity.h | 26 ++++ tools/d4r_nvngx_shim.cpp | 62 ++++++++- tools/d4r_vulkan_frontend.inl | 7 + tools/wine_nvcuda_bridge.c | 173 +++++++++++++++++++------ 32 files changed, 1131 insertions(+), 81 deletions(-) create mode 100644 docs/linux-startup-diagnostics.md create mode 100644 packaging/model_tools.py create mode 100644 scripts/runtime_build_id.sh create mode 100644 tests/test_gpu_compatibility.py create mode 100644 tests/test_model_builder.py create mode 100644 tests/test_rdna2_native_output.py create mode 100644 tools/d4r_build.h create mode 100644 tools/d4r_engine_compat.h create mode 100644 tools/d4r_gpu_identity.h diff --git a/docs/architecture.md b/docs/architecture.md index ca078ed..00ce2e0 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -112,6 +112,8 @@ OptiScaler 0.9.4 checks a relative `NvngxPath` against the process working direc ## Logs +For startup stalls, GPU resets and model-build failures, see [Linux startup diagnostics](linux-startup-diagnostics.md). + The launcher writes each run's logs to `~/.cache/d4r-dlss-captures/game--