Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

docs: record PR19/20 merge verification and clean own test copies

Veyra Goal Agent578d63c3a014
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.md
index cc9dc9ce..37a257f6 100644
--- a/docs/CURRENT_STATUS.md
+++ b/docs/CURRENT_STATUS.md
@@ -2,6 +2,8 @@
## 2026-10-06 PR19/PR20 适配验收
+已合入并普通推送main:功能合并 `357c136`(此前main f8045fb);PR20原历史合并2e3d239。GitHub REST核实PR19/20均closed/merged,原作者head保留为main祖先,合并Git树与实际验证树相同。v2.0.4 Release/tag/正文/资产不变。后续仅记录收尾和清理自有测试重复组件,565产品输入、生产EXE及92验收证据保持;最终main SHA见本轮logs/final-check.json。其他23原工作树原状态保留。
+
用户已确认RX9000 NR实卡可用。本轮在E盘隔离分支审查PR19(HDR输出调优)及PR20(MSVC日志/RemotePlay条件编译),保留已验OBS软件重绘、Native多层NR导出和AMD共享合成修复。PR19增加静态曲线、七档预设、强度/显示峰值及可选HDR10 metadata;补正确的PQ解码/再编码与保色亮度映射、source epoch/resize/暂停cache生命周期、library v11/session v6及旧NR/Flow配置兼容。新曲线和metadata默认关闭。PR20保留UTF-8日志与禁用PS5接点,并补CMake独立C语言初始化,RemotePlay关闭时Moonlight/Xbox仍可构建。
最终生产11目标及RemotePlay-off构建通过;HDR124、效果链239、预设482、i18n、HDR像素与metadata resize、AMD共享图7例/ABI62例、真GUI持久化/重启和五次完整60帧NR导出通过。EXE SHA d8803feb58a60a3cecc32641c3851b03c3e56059f1eef28dd13a1ad169e1a701;GPU灰阶knee误差0.0779%(scRGB)/0.4415%(HDR10),不冒充物理HDR测量。AMD identity是RTX诊断,未扩展用户RX9000反馈范围。完整命令/失败/限制见[PR19/20记录](PR19_PR20_INTEGRATION_PLAN_2026-10-06.md),产物全在E:/项目/Veyra同名任务目录。本次不创建Release,不修改v2.0.4既有资产;main实际合并/推送SHA以该记录及日志收据为准。以下为历史状态。
diff --git a/docs/PR19_PR20_INTEGRATION_PLAN_2026-10-06.md b/docs/PR19_PR20_INTEGRATION_PLAN_2026-10-06.md
index ae576b9a..e330efa4 100644
--- a/docs/PR19_PR20_INTEGRATION_PLAN_2026-10-06.md
+++ b/docs/PR19_PR20_INTEGRATION_PLAN_2026-10-06.md
@@ -58,3 +58,11 @@ RemotePlay-off-v1在CMake生成阶段失败:Moonlight/Xbox独立使用C源码
新HDR灰阶knee误差scRGB0.0779% / HDR10 0.4415%,保持单调、有界,关闭/0%原像素精确一致,图/导出surface原字节不变。BT.2020色块归一化RGB误差scRGB0.00013806 / HDR10 0.00101177,负scRGB分量保留。上述是GPU/DXGI像素回读,不是物理显示器亮度/色差测量。系统报告240nit只显示为系统信息,不作为真实峰值仪器验收。HDR10 metadata接口可接受不证明Windows转发/屏幕应用;Microsoft明确提示其可能被忽略,见[SetHDRMetaData](https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_5/nf-dxgi1_5-idxgiswapchain4-sethdrmetadata)及[HDR10单位](https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_5/ns-dxgi1_5-dxgi_hdr_metadata_hdr10)。
本轮自审结论:两PR可在上述适配后整合;保留PR19/20作者原始head作main祖先,不对贡献者分支force push。先前OBS repaint、Native多层导出、AMD上下文合成修复保留;RX9000实卡可用性来自用户本轮反馈,本机是RTX5070/诊断identity,未重新进行AMD HIP/全部RX9000或物理HDR/其他显卡验证。既有PR13/14仍暂缓,无新Release或v2.0.4资产改动。最终源码/证据冻结及main/远端状态以logs/.../tested-inputs.json、main-advance.json、remote-after.json为准;下方记录实际合并结果。
+
+## 合并及收尾结果
+
+`pr19-pr20-finish.py freeze/commit/merge/push/verify` 已实际执行。冻结565产品输入、161测试/脚本输入、92证据文件,scope guard及四原发布ZIP SHA通过。PR20合并提交 `2e3d2397945f5a22bcbdefa87d1990e83a91de1e`;PR19适配合并提交 `357c13679cf193ad7e48f51218b678d6aef53b6c`,父提交为2e3d239与作者原head b14dc5a。8个新增可达提交已审查,没有新增DLL/SDK/模型/编译产物进入Git。source-integration.bundle 73856888 bytes,SHA256 `7bd38da97fce41739dcf3d19ae436ca501a075bc86421a63125e737ec6ff6c60`,bundle verify成功。
+
+本地main从 `f8045fb53a7d800b053f0631a9b44dc9f5f1aacb` 快进到357c136,无冲突,Git树 `8976fc731aab0e55467e39b42bfe4402ed6ccee3` 与实际冻结树完全一致,普通推送nrvideo成功。REST独立核实两PR均closed/merged:19 mergeCommit=357c136,20 mergeCommit=2e3d239,原heads不变。v2.0.4的tag、Release正文/状态/全部assets对象及本机四ZIP原字节保持;没有新Release、上传、贡献者评论或消息。最终收尾提交只补这三个记录文档和自有清理脚本,产品输入/EXE及以上测试证据不得改变,最终main SHA见final-check.json。
+
+`pr19-pr20-cleanup.ps1` 核对自有测试进程退出、E盘任务绝对边界、无reparse,并与已批准fix1组件逐字节SHA比较后删除431项重复根DLL/完整runtime副本,共1812729736 bytes。当前标准/RemotePlay-off构建、完整测试ui-app、源码/bundle、所有失败/成功回执、worker日志、exports/profiles与identity fixtures保留。首轮因PowerShell5.1把无BOM UTF8中文路径误解码而在枚举前失败、无删除;根路径改用原生PSScriptRoot解析及固定E盘校验,重新执行成功。没有删除用户文件、旧工作区或原发布包。23个其他原工作树的HEAD/status/修改SHA不变,main仅按当前授权推进,开工24个工作树仍全部保留。
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 06416865..b1ffe258 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -2,6 +2,10 @@
## 2026-10-06 PR19/20 最终适配验收
+最终执行 `pr19-pr20-finish.py freeze/commit/merge/push/verify`:565产品输入/161测试与脚本输入/92证据SHA封存,8个新增可达提交无SDK/runtime/model产物。PR20 merge 2e3d239,PR19适配merge357c136,父提交2e3d239+b14dc5a;作者原heads完整保留。source-integration.bundle 73856888 bytes、SHA7bd38da97fce41739dcf3d19ae436ca501a075bc86421a63125e737ec6ff6c60并verify成功。本地main从f8045fb快进357c136、Git树8976fc731aab0e55467e39b42bfe4402ed6ccee3与实测freeze一致,nrvideo普通推送成功。REST核实PR19/20 closed/merged(mergeCommit357c136/2e3d239);原Release/tag/正文/资产对象和4本机发布ZIP SHA保持。main-advance/push/remote-after收据保留。最终收尾仅三个文档及自有cleanup脚本,产品与测试证据保持,最终SHA以final-check.json为准。
+
+`powershell -NoProfile -ExecutionPolicy Bypass -File scripts/acceptance/pr19-pr20-cleanup.ps1`:先核已退出自有测试进程、E盘任务绝对路径/无reparse、与批准fix1组件逐文件SHA相同,清431项重复DLL/runtime共1812729736 bytes;标准/RemotePlay-off构建、完整ui-app、source/bundle、所有回执/logs/exports/profiles/identity夹具保留。首轮PowerShell5.1误读无BOM UTF8中文路径,枚举前失败、无删除;使用原生PSScriptRoot解析且验证固定E盘根路径后重跑成功,cleanup.json完整记录。没有删除用户文件或其它工作树/旧发布包。23个其它原工作树HEAD/status/修改SHA保持,main按授权推进,24个开工工作树均保留。
+
已完成两个PR原head审查和必要适配;最终生产11目标build-final-v6与RemotePlay-off-v3全部exit0,补resize夹具目标v8 exit0。units-final-v4:HDR124/EffectChain239/PresetLibrary482 PASS及i18n0 failures;hdr-final-v4:真实呈现23检查与现有HDR颜色目标全部0 failures、无D3D12 ERROR/CORRUPTION,knee最大误差scRGB0.0779% / HDR10 0.4415%,保色/负scRGB/关闭及强度0精确恒等/暂停live重绘/导出surface不变通过。新增DXGI resize→disable已实际resize到96像素buffer、SetHDRMetaData与NONE清除均HRESULT0,不冒充显示器使用。
RemotePlay-off-v1 CMake生成失败,C语言原来只随PS5依赖初始化,但Moonlight/Xbox独立有C源码;显式project C/CXX/RC后v2、最终v3全生产构建通过。末次自审修复metadataSent在ResizeBuffers被清零导致旧hint无法清除的问题,保留已发送状态并用metadataDirty要求重发;build-final-v6及hdr-final-v4验证。其余v1编译/翻译ctx/旧HDR夹具失败按上条保留;一次文档apply_patch错误锚点原子失败、rg Windows通配路径查询失败,均更正后重新执行,未计作产品通过或改旧证据。
diff --git a/scripts/acceptance/pr19-pr20-cleanup.ps1 b/scripts/acceptance/pr19-pr20-cleanup.ps1
new file mode 100644
index 00000000..365d80f2
--- /dev/null
+++ b/scripts/acceptance/pr19-pr20-cleanup.ps1
@@ -0,0 +1,82 @@
+$ErrorActionPreference = 'Stop'
+$taskRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '..\..\..\..'))
+# ASCII script text also works in Windows PowerShell 5.1 (UTF-8 without BOM
+# would decode a Chinese path literal using the active ANSI code page).
+if ($taskRoot.TrimEnd('\') -ne ('E:\' + [char]0x9879 + [char]0x76EE + '\Veyra')) { throw 'Unexpected task artifact root' }
+$taskName = 'pr19-pr20-20261006'
+$testRoot = [IO.Path]::GetFullPath((Join-Path $taskRoot "tests\$taskName"))
+$logRoot = Join-Path $taskRoot "logs\$taskName"
+$approvedApp = Join-Path $taskRoot 'test-packages\obs-export-amdnr-20261006\Veyra-2.0.4-fix1-NVIDIA-win64-portable'
+$pythonGuard = Join-Path $PSScriptRoot 'pr19-pr20-control.py'
+python -B $pythonGuard --published
+if ($LASTEXITCODE -ne 0) { throw 'Opening inventory protection failed' }
+
+function Confirm-OwnedPath([string] $candidate) {
+ $absolute = [IO.Path]::GetFullPath($candidate)
+ if (-not $absolute.StartsWith($testRoot + '\', [StringComparison]::OrdinalIgnoreCase)) { throw "Outside owned test task: $absolute" }
+ if ((Get-Item -LiteralPath $testRoot).Attributes -band [IO.FileAttributes]::ReparsePoint) { throw 'Test task is a reparse point' }
+ $cursor = $absolute
+ while ($cursor.Length -gt $testRoot.Length) {
+ if ((Get-Item -LiteralPath $cursor).Attributes -band [IO.FileAttributes]::ReparsePoint) { throw "Reparse path: $cursor" }
+ $cursor = [IO.Path]::GetDirectoryName($cursor)
+ }
+ return $absolute
+}
+# Keep all source/bundles, current builds, exports, profiles, screenshots,
+# diagnostic EXEs and fake-provider fixtures. Delete only verified duplicate
+# root DLLs and full runtime copies inside this task's test cases.
+$ownedRunning = @(Get-CimInstance Win32_Process | Where-Object {
+ $_.ExecutablePath -and $_.ExecutablePath.StartsWith($testRoot + '\', [StringComparison]::OrdinalIgnoreCase)
+})
+if ($ownedRunning.Count) { throw 'An own test process remains active; no cleanup' }
+$targets = [Collections.Generic.List[object]]::new()
+foreach ($folder in Get-ChildItem -LiteralPath $testRoot -Directory) {
+ foreach ($file in Get-ChildItem -LiteralPath $folder.FullName -File -Filter '*.dll') {
+ $absolute = Confirm-OwnedPath $file.FullName
+ $approved = Join-Path $approvedApp $file.Name
+ if (-not (Test-Path -LiteralPath $approved -PathType Leaf)) { throw "Unknown DLL duplicate: $absolute" }
+ $actualHash = (Get-FileHash -LiteralPath $absolute -Algorithm SHA256).Hash
+ if ($actualHash -ne (Get-FileHash -LiteralPath $approved -Algorithm SHA256).Hash) { throw "DLL duplicate differs: $absolute" }
+ $targets.Add([pscustomobject]@{ path=$absolute; recursive=$false; bytes=$file.Length; sha256=$actualHash })
+ }
+ foreach ($runtimeName in @('runtime','runtime_local')) {
+ $runtimePath = Join-Path $folder.FullName $runtimeName
+ if (-not (Test-Path -LiteralPath $runtimePath -PathType Container)) { continue }
+ # The AMD identity tests have deliberately different, small fixtures.
+ if ($folder.Name -like 'graph-*') { continue }
+ $absolute = Confirm-OwnedPath $runtimePath
+ $allItems = @(Get-ChildItem -LiteralPath $absolute -Force -Recurse)
+ if (@($allItems | Where-Object { $_.Attributes -band [IO.FileAttributes]::ReparsePoint }).Count) { throw "Runtime copy contains reparse points: $absolute" }
+ $approvedRoot = Join-Path $approvedApp $runtimeName
+ $files = @($allItems | Where-Object { -not $_.PSIsContainer })
+ $approvedFiles = @(Get-ChildItem -LiteralPath $approvedRoot -Force -Recurse -File)
+ if ($files.Count -ne $approvedFiles.Count) { throw "Runtime copy count differs: $absolute" }
+ [long] $bytes = 0
+ foreach ($file in $files) {
+ $relative = $file.FullName.Substring($absolute.Length + 1)
+ $approved = Join-Path $approvedRoot $relative
+ if (-not (Test-Path -LiteralPath $approved -PathType Leaf)) { throw "Unknown runtime duplicate: $relative" }
+ if ((Get-FileHash -LiteralPath $file.FullName -Algorithm SHA256).Hash -ne (Get-FileHash -LiteralPath $approved -Algorithm SHA256).Hash) { throw "Runtime duplicate differs: $relative" }
+ $bytes += $file.Length
+ }
+ $targets.Add([pscustomobject]@{ path=$absolute; recursive=$true; bytes=$bytes; files=$files.Count })
+ }
+}
+$receipt = [ordered]@{ task=$taskName; checked=@($targets.ToArray()); removed=@(); deletedBytes=0; completed=$false }
+$receiptPath = Join-Path $logRoot 'cleanup.json'
+if (Test-Path -LiteralPath $receiptPath) { throw 'Cleanup receipt already exists' }
+try {
+ foreach ($target in $targets) {
+ $absolute = Confirm-OwnedPath $target.path
+ if ($target.recursive) { Remove-Item -LiteralPath $absolute -Force -Recurse }
+ else { Remove-Item -LiteralPath $absolute -Force }
+ $receipt.removed += $absolute
+ $receipt.deletedBytes += $target.bytes
+ }
+ $receipt.completed = $true
+} finally {
+ $receipt | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $receiptPath -Encoding UTF8
+}
+python -B $pythonGuard --published
+if ($LASTEXITCODE -ne 0) { throw 'Closing inventory protection failed' }
+Write-Output ("OWN TEST DUPLICATES CLEANED: {0} targets; {1} bytes" -f $receipt.removed.Count,$receipt.deletedBytes)