[NVIDIA GPU] Host view heap capped at 1,000,000 (0x80070057) + black screen / host texture & PSO refusals #1627

Open
opened 2026-11-26 04:38:49 +00:00 by github-bot · 7 comments
Owner

@⁠mikebigboots-web on GitHub · 2026-11-24 19:57 UTC · original

Environment

  • OS: Windows 10/11 x64 (AtlasOS)
  • GPU: NVIDIA (D3D12 Mesh Shaders supported)
  • Title Build: 7952987A (Xbox Series X)
  • VIctory Build: diag profile (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)

Summary of Behavior

  • Boot, audio (APU/DSP), menus, and loading into story000 work without crashing or causing a TDR/driver reset on NVIDIA (~0.3–1.4 FPS in world).
  • However, the window remains completely black (display triggers HDR even though VIctory logs HDR mode: disabled (SDR presentation)).

Key NVIDIA / D3D12 Issues Found in Logs

1. CBV/SRV/UAV Descriptor Heap Limit (NVIDIA 1,000,000 Tier 1/2 limit)

NVIDIA drivers cap shader-visible CBV_SRV_UAV heaps at 1,000,000 descriptors:

WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184

Once world rendering starts (frame 1756+), this leads to descriptor exhaustion and thousands of dropped draws:

WARN victory_gpu::descriptor::host: no free dynamic descriptor slots: a table is not made n=6
WARN victory_gpu::draw: a draw or dispatch dropped: no dynamic slots for its tables dropped=8192

2. Host Texture & View Creation Failures (0x80070057)

WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 86, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 }
WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 }
WARN victory_gpu::descriptor::host: view the host does not allow unordered=true format=53 flags=2

3. Compute Pipelines Refused by NVIDIA Driver (0x80070057)

Multiple translated compute shaders are refused at PSO creation on NVIDIA (13dfdd3b1136e407, 88994c3496045f51, 02384a60fda6f2d0, 339d476c267c03c7, 42683eebec081520, 82849f7a614208eb, 9afd549c4f530901, 2fa2f94f560faf39, a25ed0e3d4d521ba, fa0c0819dc86ca60, 9e096a1111c6faaa, 00bcbbf278ee3d9d, d3e5b737ea7cc150, 6336cb3769fc53d7, 5b2ce592c3a5dd09, 0e90505eff274aa4, 1f1fbd86759b3da2, e4a9f58e3acfcf7b, b96880482a17f632, c4183d3cbee28e8e, 2f03a2df10503cef, 369cbe906ea72764, 196bf6114ff3a131, 660814153af43185, df3cf10a274e26ca, f8f50ab85e7b10bb, c9da71da40af2e28, a1f6cdf8874960a9, ce2378e5e8711aad, 754e38ca2378a43e).

(Note: Windows Graphics Tools / D3D12 debug layer wasn't installed during this run (0x887A002D); I can install it and capture exact D3D12 debug validation messages for these 0x80070057 errors if helpful!)

**@⁠mikebigboots-web** on GitHub · 2026-11-24 19:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627) ### Environment - **OS:** Windows 10/11 x64 (AtlasOS) - **GPU:** NVIDIA (D3D12 Mesh Shaders supported) - **Title Build:** `7952987A` (Xbox Series X) - **VIctory Build:** `diag` profile (`b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`) ### Summary of Behavior - Boot, audio (APU/DSP), menus, and loading into `story000` work without crashing or causing a TDR/driver reset on NVIDIA (~0.3–1.4 FPS in world). - However, the window remains completely black (display triggers HDR even though VIctory logs `HDR mode: disabled (SDR presentation)`). ### Key NVIDIA / D3D12 Issues Found in Logs #### 1. CBV/SRV/UAV Descriptor Heap Limit (NVIDIA 1,000,000 Tier 1/2 limit) NVIDIA drivers cap shader-visible `CBV_SRV_UAV` heaps at 1,000,000 descriptors: ```text WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184 ``` Once world rendering starts (frame 1756+), this leads to descriptor exhaustion and thousands of dropped draws: ```text WARN victory_gpu::descriptor::host: no free dynamic descriptor slots: a table is not made n=6 WARN victory_gpu::draw: a draw or dispatch dropped: no dynamic slots for its tables dropped=8192 ``` #### 2. Host Texture & View Creation Failures (`0x80070057`) ```text WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 86, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 } WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 } WARN victory_gpu::descriptor::host: view the host does not allow unordered=true format=53 flags=2 ``` #### 3. Compute Pipelines Refused by NVIDIA Driver (`0x80070057`) Multiple translated compute shaders are refused at PSO creation on NVIDIA (`13dfdd3b1136e407`, `88994c3496045f51`, `02384a60fda6f2d0`, `339d476c267c03c7`, `42683eebec081520`, `82849f7a614208eb`, `9afd549c4f530901`, `2fa2f94f560faf39`, `a25ed0e3d4d521ba`, `fa0c0819dc86ca60`, `9e096a1111c6faaa`, `00bcbbf278ee3d9d`, `d3e5b737ea7cc150`, `6336cb3769fc53d7`, `5b2ce592c3a5dd09`, `0e90505eff274aa4`, `1f1fbd86759b3da2`, `e4a9f58e3acfcf7b`, `b96880482a17f632`, `c4183d3cbee28e8e`, `2f03a2df10503cef`, `369cbe906ea72764`, `196bf6114ff3a131`, `660814153af43185`, `df3cf10a274e26ca`, `f8f50ab85e7b10bb`, `c9da71da40af2e28`, `a1f6cdf8874960a9`, `ce2378e5e8711aad`, `754e38ca2378a43e`). *(Note: Windows Graphics Tools / D3D12 debug layer wasn't installed during this run (`0x887A002D`); I can install it and capture exact D3D12 debug validation messages for these `0x80070057` errors if helpful!)*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:49 +00:00
Author
Owner

@⁠mikebigboots-web on GitHub · 2026-11-24 20:03 UTC · original

Update: Exact GPU Hang (0x887A0006) Breadcrumb & Command Dump

I captured a follow-up run on the NVIDIA GPU that reproduced an actual GPU device removal/hang (0x887A0006) at frame 1769 when rendering the world (story000).

Failure Summary

  • Error: host GPU device removed after a submission of 32 lists — The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006)
  • Exact Stopping Point: List 12 of 32, command 265 of 267 (op 42), between barriers 264..266.
  • Failing Pipeline: mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]
  • Likely Root Cause: Due to the NVIDIA 1,000,000 CBV_SRV_UAV heap cap (host view heap capped at 1000000), dynamic descriptor slots run out (no free dynamic descriptor slots: a table is not made n=254), leaving u8, u9, and u10 pointing to null heap entries right before executing the mesh draw.

Exact Breadcrumb & Command State

a list stopped at command 265 of 267 (op 42), commands 264..266 between its barriers:
command 265 (op 42): mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]
  04b9be3756e8f41c: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u13=0x0 [heap 0: Shader(0, Some([42, 2, 5768, 0, 0, 0, 0, 0, 0, 0]))] u14=0x349a190 root3=0xb2fbeef40 host Some((0x4459eef40, 0x110c0))
  1af4a50c7fb40c97: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u14=0x349a190

Additional Shader Translation Warnings Observed in World (Frame 1766–1769)

  • image_gather4_l is not supported (fc5e66f8f873d3bb, 0452fc2d2e2fc4c3, 4fb416369fc50b6e, 9f017d9011377efa, 87bf9e3f2bf2f052, 764ca63daec9c616)
  • image_sample_d_cl is not supported (ee41ebc3eb3fbbdc, 2deec721a63fe8a5, 7bdefdfde461f6e3)
  • barycentrics read directly is not supported (2d0cace65bc05bb2, 98bd9f9ae5f9c7e3)
  • a packed input half no element holds is not supported (a223e485dd8247a3)
  • an address in an SGPR that is no root parameter is not supported (several compute shaders including 3cea4534bbc15632, f6e47efa50226beb, 3b90165a77d95cdf, etc.)
**@⁠mikebigboots-web** on GitHub · 2026-11-24 20:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7142972449) ### Update: Exact GPU Hang (`0x887A0006`) Breadcrumb & Command Dump I captured a follow-up run on the NVIDIA GPU that reproduced an actual GPU device removal/hang (`0x887A0006`) at **frame 1769** when rendering the world (`story000`). #### Failure Summary - **Error:** `host GPU device removed after a submission of 32 lists` — `The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006)` - **Exact Stopping Point:** List `12` of `32`, **command 265 of 267 (op 42)**, between barriers `264..266`. - **Failing Pipeline:** `mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]` - **Likely Root Cause:** Due to the NVIDIA 1,000,000 `CBV_SRV_UAV` heap cap (`host view heap capped at 1000000`), dynamic descriptor slots run out (`no free dynamic descriptor slots: a table is not made n=254`), leaving `u8`, `u9`, and `u10` pointing to `null` heap entries right before executing the mesh draw. #### Exact Breadcrumb & Command State ```text a list stopped at command 265 of 267 (op 42), commands 264..266 between its barriers: command 265 (op 42): mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97] 04b9be3756e8f41c: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u13=0x0 [heap 0: Shader(0, Some([42, 2, 5768, 0, 0, 0, 0, 0, 0, 0]))] u14=0x349a190 root3=0xb2fbeef40 host Some((0x4459eef40, 0x110c0)) 1af4a50c7fb40c97: u8=0xa2fc00 [heap 333792: null] u9=0xe1ab40 [heap 462170: null] u10=0xe1aa40 [heap 462162: null] u14=0x349a190 ``` #### Additional Shader Translation Warnings Observed in World (Frame 1766–1769) - `image_gather4_l is not supported` (`fc5e66f8f873d3bb`, `0452fc2d2e2fc4c3`, `4fb416369fc50b6e`, `9f017d9011377efa`, `87bf9e3f2bf2f052`, `764ca63daec9c616`) - `image_sample_d_cl is not supported` (`ee41ebc3eb3fbbdc`, `2deec721a63fe8a5`, `7bdefdfde461f6e3`) - `barycentrics read directly is not supported` (`2d0cace65bc05bb2`, `98bd9f9ae5f9c7e3`) - `a packed input half no element holds is not supported` (`a223e485dd8247a3`) - `an address in an SGPR that is no root parameter is not supported` (several compute shaders including `3cea4534bbc15632`, `f6e47efa50226beb`, `3b90165a77d95cdf`, etc.)
Author
Owner

@⁠EduAzevedo on GitHub · 2026-11-24 21:12 UTC · original

The same NVIDIA symptoms show up here: RTX 2070 SUPER (Turing), driver 610.88, Windows 11, retail 1.0.2.1 dump. Some of them already have open PRs:

  • Heap capped at 1,000,000 and dynamic slots running out. #747 reserves 2^18 dynamic descriptors inside the capped heap. With it I measured 0 slot drops in the world on this card. The AnyXboxX fork of VIctory ships the same idea as VICTORY_CAPPED_DYNAMIC=262144.
  • What keeps the world up on Turing: #493 + #189 + #206 on top of main, run with VICTORY_SHADER_LOOP_LIMIT=32. In today's run with that combination there was no device removal.
  • "an address in an SGPR that is no root parameter". In an offline victory translate --list over the 26,148 programs of my dump, main ffe310e gives this refusal for 247 programs: 195 geometry and 52 compute, most of them in XboxBvhBuilder.dll. #489 (which carries #302, spill-table arguments) clears 50 of the 52 compute ones. They then stop at later refusals, so none is emitted yet. In my own run into the world on main + #493 + #189 + #206, 34 of the 639 shaders refused in game had this reason, all compute.
  • Today's run (main ffe310e + #493 + #189 + #206 + the 2^18 reserve, VICTORY_SHADER_LOOP_LIMIT=32, about 4 minutes, 38 one-second samples):
    • In the world: 0.3 fps, about 3.5 s per frame.
    • Where the frame time goes: about 2.5 s of each frame copying back to the title, and 0.25–0.5 s on the GPU. The copy-back timer starts after the GPU wait (host.rs), so it is CPU time copying shader writes back, not GPU time.
    • Errors: no device removal, no no dynamic slots and no a table is not made.
    • Draws dropped: thousands per frame without a host pipeline, from 639 shaders that don't translate, plus 1,000–2,000 indirect.
    • Your 0x80070057 texture error, reproduced: I hit it twice, both on 2560x1440 textures (dimension 3, formats 86 and 115).

If you can run those four PRs merged on top of main, it would help to know whether your 0x80070057 PSO refusals for about 30 compute pipelines remain. That's the one part I have no measurement for.

AI-assisted write-up; the numbers are from my own runs.

**@⁠EduAzevedo** on GitHub · 2026-11-24 21:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7144626959) The same NVIDIA symptoms show up here: RTX 2070 SUPER (Turing), driver 610.88, Windows 11, retail 1.0.2.1 dump. Some of them already have open PRs: - **Heap capped at 1,000,000 and dynamic slots running out.** #747 reserves 2^18 dynamic descriptors inside the capped heap. With it I measured **0 slot drops** in the world on this card. The AnyXboxX fork of VIctory ships the same idea as `VICTORY_CAPPED_DYNAMIC=262144`. - **What keeps the world up on Turing:** #493 + #189 + #206 on top of main, run with `VICTORY_SHADER_LOOP_LIMIT=32`. In today's run with that combination there was no device removal. - **"an address in an SGPR that is no root parameter".** In an offline `victory translate --list` over the 26,148 programs of my dump, main `ffe310e` gives this refusal for 247 programs: 195 geometry and 52 compute, most of them in `XboxBvhBuilder.dll`. #489 (which carries #302, spill-table arguments) clears 50 of the 52 compute ones. They then stop at later refusals, so none is emitted yet. In my own run into the world on main + #493 + #189 + #206, 34 of the 639 shaders refused in game had this reason, all compute. - **Today's run (main `ffe310e` + #493 + #189 + #206 + the 2^18 reserve, `VICTORY_SHADER_LOOP_LIMIT=32`, about 4 minutes, 38 one-second samples):** - **In the world:** 0.3 fps, about 3.5 s per frame. - **Where the frame time goes:** about 2.5 s of each frame copying back to the title, and 0.25–0.5 s on the GPU. The copy-back timer starts after the GPU wait (`host.rs`), so it is CPU time copying shader writes back, not GPU time. - **Errors:** no device removal, no `no dynamic slots` and no `a table is not made`. - **Draws dropped:** thousands per frame without a host pipeline, from 639 shaders that don't translate, plus 1,000–2,000 indirect. - **Your `0x80070057` texture error, reproduced:** I hit it twice, both on 2560x1440 textures (dimension 3, formats 86 and 115). If you can run those four PRs merged on top of main, it would help to know whether your `0x80070057` PSO refusals for about 30 compute pipelines remain. That's the one part I have no measurement for. AI-assisted write-up; the numbers are from my own runs.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-24 22:23 UTC · original

Independent startup check on an RTX 3080 12 GiB, driver 621.24, on main at the mesh-cache update, with #1702 for scripted input. The Series S test also used #211 for its UI plane. Four runs spanning Series X and Series S and cold and warm VIctory caches ended in early device removal, about 41–43 seconds after the first trace event. They reached at most two draws per frame in the reported samples, before the world workload.

All four logged the shader-visible view-heap cap and 310,720 “title slot past the host heap” warnings during startup. In a fifth run, I kept Series X and a cold cache and suppressed only the descriptor warning target. The device was still removed, about nine seconds into the trace. This rules out warning output as a necessary condition for the failure on this setup. It does not isolate which GPU operation caused removal.

AI-assisted (Codex). Aggregate observations only.

**@⁠BaggyALPHA** on GitHub · 2026-11-24 22:23 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7146172200) Independent startup check on an RTX 3080 12 GiB, driver 621.24, on main at the mesh-cache update, with #1702 for scripted input. The Series S test also used #211 for its UI plane. Four runs spanning Series X and Series S and cold and warm VIctory caches ended in early device removal, about 41–43 seconds after the first trace event. They reached at most two draws per frame in the reported samples, before the world workload. All four logged the shader-visible view-heap cap and 310,720 “title slot past the host heap” warnings during startup. In a fifth run, I kept Series X and a cold cache and suppressed only the descriptor warning target. The device was still removed, about nine seconds into the trace. This rules out warning output as a necessary condition for the failure on this setup. It does not isolate which GPU operation caused removal. AI-assisted (Codex). Aggregate observations only.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:50 UTC · original · edited 2026-11-26 06:44 UTC

Automated triage for the maintainers.

Same setup and symptoms as #1620, with a DRED stop added: at frame 1769 a mesh draw with u8–u10 on null heap entries ends in 0x887A0006. Where each part is tracked:

  • The view heap does not fit NVIDIA's 1,000,000 cap (host view heap capped at 1000000 ... count=1245184): #1760, the oldest complete report, also seen in #1808 and #1851. main (63bcca4) still falls back in HostHeap::new (crates/victory-gpu/src/descriptor/host.rs) to 1,000,000 descriptors, of which 934,464 hold title views; the 310,720 title slots above that are never mirrored and read as null. An RTX 3080 run confirms the title indexes every one of them during start-up.
  • Open PRs measured in the title on that RTX 3080 (45 s start-up runs on main 63bcca4): #1751 leaves the partition exactly as main (310,720 slots outside the heap), so it does not address this report. #2628 keeps the full dynamic range and clamps the 507,331 slots it leaves out, so the access is defined but fewer title slots fit. #2121 pages all 1,245,184 title slots into the 1,000,000 the host allows, so none falls outside. Whether any of them draws correctly was not measured, and no run reached the world. #2937 only makes the two victory-gpu heap tests skip on a capped host. The two-heap split proposed earlier belongs on #1760, where the alternatives are compared.
  • Dynamic slots running out under the cap: #747.
  • World hang on NVIDIA: #71.
  • The two 2560×1440 textures (formats 86 and 115): #797 and #1600. Open PRs #89 and #1787.
  • Compute pipelines refused with 0x80070057: wave64 programs on a 32-lane host, tracked in #2220 and #71.

@⁠mikebigboots-web, your own GPU model, driver, Windows build and VIctory commit are still welcome, but they are no longer needed to place this report.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7162938157) · edited 2026-11-26 06:44 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-26T04:03:24Z at=2026-11-26T07:02:00Z --> Automated triage for the maintainers. Same setup and symptoms as #1620, with a DRED stop added: at frame 1769 a mesh draw with `u8`–`u10` on null heap entries ends in `0x887A0006`. Where each part is tracked: - **The view heap does not fit NVIDIA's 1,000,000 cap** (`host view heap capped at 1000000 ... count=1245184`): #1760, the oldest complete report, also seen in #1808 and #1851. `main` (63bcca4) still falls back in `HostHeap::new` (`crates/victory-gpu/src/descriptor/host.rs`) to 1,000,000 descriptors, of which 934,464 hold title views; the 310,720 title slots above that are never mirrored and read as null. An RTX 3080 run confirms the title indexes every one of them during start-up. - **Open PRs measured in the title on that RTX 3080** (45 s start-up runs on `main` 63bcca4): #1751 leaves the partition exactly as `main` (310,720 slots outside the heap), so it does not address this report. #2628 keeps the full dynamic range and clamps the 507,331 slots it leaves out, so the access is defined but fewer title slots fit. #2121 pages all 1,245,184 title slots into the 1,000,000 the host allows, so none falls outside. Whether any of them draws correctly was not measured, and no run reached the world. #2937 only makes the two `victory-gpu` heap tests skip on a capped host. The two-heap split proposed earlier belongs on #1760, where the alternatives are compared. - **Dynamic slots running out under the cap:** #747. - **World hang on NVIDIA:** #71. - **The two 2560×1440 textures (formats 86 and 115):** #797 and #1600. Open PRs #89 and #1787. - **Compute pipelines refused with `0x80070057`:** wave64 programs on a 32-lane host, tracked in #2220 and #71. @⁠mikebigboots-web, your own GPU model, driver, Windows build and VIctory commit are still welcome, but they are no longer needed to place this report. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-26 03:28 UTC · original

Measured the open pull requests for this on a host that reproduces it: three reach an identical heap on this card, and they are 1, 9 and 14 files. The two red tests are a poor way to tell them apart, because every green row changes them.

FIND-9 in the coordination thread asked for someone with such a GPU to check. RTX 3080 (Ampere) / Windows 11, every row merged onto the same main 63bcca4, each built in a build cache of its own, cargo test -p victory-gpu --lib --no-fail-fast. Every row run twice with identical results. Alongside the suite I probed what heap the host actually ends up with, by printing NumDescriptors and HostHeap::dynamic from a temporary test (reverted afterwards), because that is the thing these pull requests change and the suite does not report it.

row host view heap dynamic range victory-gpu --lib the two tests size
main 63bcca4 65,540 65,536 229 passed / 2 failed both fail —
#1751 1,000,000 262,144 231 / 0 pass +27/-4, 1 file
#2628 1,000,000 262,144 233 / 0 pass +243/-128, 9 files
#2121 1,000,000 262,144 241 / 0 pass +1688/-75, 14 files
#2937 65,540 65,536 231 / 0 skip +28/-3, 2 files
#2896 65,540 65,536 231 passed / 2 failed both fail +39/-5, 1 file
#1779 / #2185 / #2475 — — — — conflict with main

DYNAMIC is 262,144, MIN_DYNAMIC 65,536 and PORTABLE_VIEWS 1,000,000, so the baseline's 65,540 is count + MIN_DYNAMIC: on this card main falls past both heap attempts to the smallest range. #1751's added tier asks for max(count + DYNAMIC, PORTABLE_VIEWS) = 1,000,000, which is exactly this driver's cap, so it is granted and the full dynamic range comes back. The reason for wanting that range is #1751's own, not mine: its comment cites #59 for the smaller one running out in the world. I did not reproduce that — #59 discusses a dynamic-slot overrun on an RX 9070 XT with a different DYNAMIC than main has today — so treat the motivation as that pull request's claim and the heap numbers below as mine.

The part I nearly got wrong, and the reason the test counts above should not decide this. Every row that is green is green partly because it changed the two tests. #1751 makes the old assertion conditional on the device actually accepting a HEAP_VIEWS heap and adds assert_eq!(heap.dynamic, DYNAMIC); #2628 drops that assertion and re-expresses "past the dynamic slots" against views.pairs_start(); #2121 relaxes it to a disjunction; #2937 skips both with a line naming the cap. That is not evasion in any of them — the tests encode a premise ("the host took a heap of HEAP_VIEWS") that is simply false on this hardware, so anything that makes them meaningful here must touch them. It does mean "makes the tests pass" is nearly uninformative, and I would have published a misleading table if I had stopped at the counts.

What the probe does separate: #1751, #2628 and #2121 produce the same heap and the same dynamic range on this card, while #2937 and #2896 leave it at the floor. So on the measurable outcome the one-file change matches the two large ones.

What this does not say. Nothing about the black screen in this issue, the world, or the framerate — these are synthetic unit tests and no title was run. The larger pull requests also do things this cannot evaluate: #2628 clamps shader heap indices from the first shader and gives lower a limit, #2121 pages the heap. A shader indexing past 1,000,000 is still the documented shortcut in HostHeap::new on all three, so if that case occurs in the world, the extra work in the larger two is the part that would matter and the heap numbers above would not show it. #2896 targets #2894 (a list binding no view heap) and is not a candidate for these two tests at all; its two failures are the baseline's, not a regression. #2937 is explicit that it fixes the red CI and not the limitation, and it is the only row that is honest about changing nothing else — it is complementary to a real fix rather than competing with it.

Method notes: counts, descriptor numbers and test names only; no game files, no world run. The probe was a temporary test, and the worktree was left clean.

AI-assisted (Claude Code); every figure is from the runs described on this host.

**@⁠BaggyALPHA** on GitHub · 2026-11-26 03:28 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7181753587) **Measured the open pull requests for this on a host that reproduces it: three reach an identical heap on this card, and they are 1, 9 and 14 files. The two red tests are a poor way to tell them apart, because every green row changes them.** FIND-9 in the coordination thread asked for someone with such a GPU to check. RTX 3080 (Ampere) / Windows 11, every row merged onto the same `main` `63bcca4`, each built in a build cache of its own, `cargo test -p victory-gpu --lib --no-fail-fast`. Every row run twice with identical results. Alongside the suite I probed what heap the host actually ends up with, by printing `NumDescriptors` and `HostHeap::dynamic` from a temporary test (reverted afterwards), because that is the thing these pull requests change and the suite does not report it. | row | host view heap | dynamic range | `victory-gpu --lib` | the two tests | size | |---|---:|---:|---|---|---| | `main` `63bcca4` | 65,540 | 65,536 | 229 passed / **2 failed** | both fail | — | | **#1751** | **1,000,000** | **262,144** | 231 / 0 | pass | +27/-4, 1 file | | **#2628** | **1,000,000** | **262,144** | 233 / 0 | pass | +243/-128, 9 files | | **#2121** | **1,000,000** | **262,144** | 241 / 0 | pass | +1688/-75, 14 files | | #2937 | 65,540 | 65,536 | 231 / 0 | **skip** | +28/-3, 2 files | | #2896 | 65,540 | 65,536 | 231 passed / **2 failed** | both fail | +39/-5, 1 file | | #1779 / #2185 / #2475 | — | — | — | — | conflict with `main` | `DYNAMIC` is 262,144, `MIN_DYNAMIC` 65,536 and `PORTABLE_VIEWS` 1,000,000, so the baseline's 65,540 is `count + MIN_DYNAMIC`: on this card `main` falls past both heap attempts to the smallest range. #1751's added tier asks for `max(count + DYNAMIC, PORTABLE_VIEWS)` = 1,000,000, which is exactly this driver's cap, so it is granted and the full dynamic range comes back. The reason for wanting that range is #1751's own, not mine: its comment cites #59 for the smaller one running out in the world. I did not reproduce that — #59 discusses a dynamic-slot overrun on an RX 9070 XT with a different `DYNAMIC` than `main` has today — so treat the motivation as that pull request's claim and the heap numbers below as mine. **The part I nearly got wrong, and the reason the test counts above should not decide this.** Every row that is green is green partly because it changed the two tests. #1751 makes the old assertion conditional on the device actually accepting a `HEAP_VIEWS` heap and adds `assert_eq!(heap.dynamic, DYNAMIC)`; #2628 drops that assertion and re-expresses "past the dynamic slots" against `views.pairs_start()`; #2121 relaxes it to a disjunction; #2937 skips both with a line naming the cap. That is not evasion in any of them — the tests encode a premise ("the host took a heap of `HEAP_VIEWS`") that is simply false on this hardware, so anything that makes them meaningful here must touch them. It does mean "makes the tests pass" is nearly uninformative, and I would have published a misleading table if I had stopped at the counts. What the probe does separate: #1751, #2628 and #2121 produce the **same heap and the same dynamic range** on this card, while #2937 and #2896 leave it at the floor. So on the measurable outcome the one-file change matches the two large ones. **What this does not say.** Nothing about the black screen in this issue, the world, or the framerate — these are synthetic unit tests and no title was run. The larger pull requests also do things this cannot evaluate: #2628 clamps shader heap indices from the first shader and gives `lower` a limit, #2121 pages the heap. A shader indexing past 1,000,000 is still the documented shortcut in `HostHeap::new` on all three, so if that case occurs in the world, the extra work in the larger two is the part that would matter and the heap numbers above would not show it. #2896 targets #2894 (a list binding no view heap) and is not a candidate for these two tests at all; its two failures are the baseline's, not a regression. #2937 is explicit that it fixes the red CI and not the limitation, and it is the only row that is honest about changing nothing else — it is complementary to a real fix rather than competing with it. Method notes: counts, descriptor numbers and test names only; no game files, no world run. The probe was a temporary test, and the worktree was left clean. AI-assisted (Claude Code); every figure is from the runs described on this host.
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-26 03:44 UTC · original

Correcting my comment above: I measured the heap at the unit tests' count of 4, and at the count the title actually asks for, #1751 does nothing. The conclusion I drew from that table — that the one-file change matches the two large ones — is wrong.

HostHeap::new takes the count the title requested (descriptor.rs:100, self.desc.count), and its branches depend on it. My probe used the value the two tests use, 4. Sweeping the count instead, on the same main 63bcca4 and the same card:

count main views / dynamic + #1751 views / dynamic
4 65,540 / 65,536 1,000,000 / 262,144
700,000 765,536 / 65,536 1,000,000 / 262,144
737,856 803,392 / 65,536 1,000,000 / 262,144
737,857 803,393 / 65,536 803,393 / 65,536
934,464 1,000,000 / 65,536 1,000,000 / 65,536
1,245,184 1,000,000 / 65,536 1,000,000 / 65,536

The step is at PORTABLE_VIEWS - DYNAMIC + 1 = 737,857: #1751's added tier asks for max(count + DYNAMIC, PORTABLE_VIEWS), which above that count exceeds the cap, fails, and falls through to the same arm main already takes. So the improvement exists only for counts below ~737,856.

What the title asks for here. A short run of about 100 seconds was enough — this happens during start-up, no world needed — with VICTORY_LOG=info,victory_gpu::descriptor::host=debug on a release build of main 63bcca4:

WARN  host view heap capped at 1000000   error=The parameter is incorrect. (0x80070057) count=1245184
DEBUG host descriptor heap count=934464 sampler=false

1,245,184 — the same figure the RX 9070 XT report on #59 gives, so it looks like the title's own number rather than a host's. That is above the step, so on this card the run takes the PORTABLE_VIEWS arm: a heap of 1,000,000, the title's count truncated to PORTABLE_VIEWS - MIN_DYNAMIC = 934,464, and the smaller 65,536 dynamic range. 310,720 of the title's slots are left out, on main and with #1751 alike.

And the dropped descriptors are not hypothetical: the title indexes every one of them. The same run logs, starting 1.9 seconds in and over the next 1.5 seconds:

WARN title slot past the host heap index=934464  count=934464 for_draw=false
WARN title slot past the host heap index=934465  count=934464 for_draw=false
...
WARN title slot past the host heap index=1245183 count=934464 for_draw=false

310,720 of them — exactly 1,245,184 - 934,464, one for every slot the cap left out, from the first missing index to the last. So on this card the title walks the whole truncated tail during start-up, before anything in the world is drawn.

So the table above should be read the other way round. The condition that actually occurs in the title is a count past the cap, where descriptors are dropped and a shader indexing into them hits the documented shortcut. That is the case #2628 (clamping indices from the first shader) and #2121 (paging the heap) are built for, and it is the one my first comment said they addressed but that nothing here could evaluate. They are not equivalent to the one-file change; at the count that matters, #1751 is a no-op and they are not. Whether either of them is correct is still beyond what I measured — I have shown which ones can act at this count, not that their output is right.

Unchanged from the first comment: the suite results for each row (no regressions), #2937 skipping both tests on a capped host by design rather than changing behaviour, #2896 being a different problem with the baseline's two failures, and #1779 / #2185 / #2475 not merging with main.

My mistake was taking the number a unit test hardcodes as the operating point and reporting a per-row heap figure from it. The sweep and the start-up log are what should have been in the first comment.

How that run ended, for completeness, since it bounds what I saw: a device hang rather than anything to do with the heap — 0x887A0006 after a 7.4 s compute submission of 26 lists, which is the hang already described on #71 and #1968 and not something this measurement bears on. Peak card use was 7,518 MB of a 9,681 MB budget with no E_OUTOFMEMORY anywhere, so it was not memory on the card either. Everything above was logged in the first few seconds, well before it.

Counts and log lines only — no game files, no shader names, hashes or paths, and nothing from the title's data. AI-assisted (Claude Code); figures from the runs described on this host (RTX 3080 / Windows 11).

**@⁠BaggyALPHA** on GitHub · 2026-11-26 03:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7181988417) **Correcting my comment above: I measured the heap at the unit tests' count of 4, and at the count the title actually asks for, #1751 does nothing. The conclusion I drew from that table — that the one-file change matches the two large ones — is wrong.** `HostHeap::new` takes the count the title requested (`descriptor.rs:100`, `self.desc.count`), and its branches depend on it. My probe used the value the two tests use, 4. Sweeping the count instead, on the same `main` `63bcca4` and the same card: | count | `main` views / dynamic | + #1751 views / dynamic | |---:|---:|---:| | 4 | 65,540 / 65,536 | 1,000,000 / 262,144 | | 700,000 | 765,536 / 65,536 | 1,000,000 / 262,144 | | 737,856 | 803,392 / 65,536 | 1,000,000 / 262,144 | | **737,857** | 803,393 / 65,536 | **803,393 / 65,536** | | 934,464 | 1,000,000 / 65,536 | **1,000,000 / 65,536** | | 1,245,184 | 1,000,000 / 65,536 | **1,000,000 / 65,536** | The step is at `PORTABLE_VIEWS - DYNAMIC + 1` = 737,857: #1751's added tier asks for `max(count + DYNAMIC, PORTABLE_VIEWS)`, which above that count exceeds the cap, fails, and falls through to the same arm `main` already takes. So the improvement exists only for counts below ~737,856. **What the title asks for here.** A short run of about 100 seconds was enough — this happens during start-up, no world needed — with `VICTORY_LOG=info,victory_gpu::descriptor::host=debug` on a release build of `main` `63bcca4`: ``` WARN host view heap capped at 1000000 error=The parameter is incorrect. (0x80070057) count=1245184 DEBUG host descriptor heap count=934464 sampler=false ``` 1,245,184 — the same figure the RX 9070 XT report on #59 gives, so it looks like the title's own number rather than a host's. That is above the step, so on this card the run takes the `PORTABLE_VIEWS` arm: a heap of 1,000,000, the title's count truncated to `PORTABLE_VIEWS - MIN_DYNAMIC` = **934,464**, and the smaller 65,536 dynamic range. **310,720 of the title's slots are left out**, on `main` and with #1751 alike. **And the dropped descriptors are not hypothetical: the title indexes every one of them.** The same run logs, starting 1.9 seconds in and over the next 1.5 seconds: ``` WARN title slot past the host heap index=934464 count=934464 for_draw=false WARN title slot past the host heap index=934465 count=934464 for_draw=false ... WARN title slot past the host heap index=1245183 count=934464 for_draw=false ``` **310,720 of them** — exactly `1,245,184 - 934,464`, one for every slot the cap left out, from the first missing index to the last. So on this card the title walks the whole truncated tail during start-up, before anything in the world is drawn. **So the table above should be read the other way round.** The condition that actually occurs in the title is a count past the cap, where descriptors are dropped and a shader indexing into them hits the documented shortcut. That is the case #2628 (clamping indices from the first shader) and #2121 (paging the heap) are built for, and it is the one my first comment said they addressed but that nothing here could evaluate. They are not equivalent to the one-file change; at the count that matters, #1751 is a no-op and they are not. Whether either of them is *correct* is still beyond what I measured — I have shown which ones can act at this count, not that their output is right. Unchanged from the first comment: the suite results for each row (no regressions), #2937 skipping both tests on a capped host by design rather than changing behaviour, #2896 being a different problem with the baseline's two failures, and #1779 / #2185 / #2475 not merging with `main`. My mistake was taking the number a unit test hardcodes as the operating point and reporting a per-row heap figure from it. The sweep and the start-up log are what should have been in the first comment. How that run ended, for completeness, since it bounds what I saw: a device hang rather than anything to do with the heap — `0x887A0006` after a 7.4 s compute submission of 26 lists, which is the hang already described on #71 and #1968 and not something this measurement bears on. Peak card use was 7,518 MB of a 9,681 MB budget with no `E_OUTOFMEMORY` anywhere, so it was not memory on the card either. Everything above was logged in the first few seconds, well before it. Counts and log lines only — no game files, no shader names, hashes or paths, and nothing from the title's data. AI-assisted (Claude Code); figures from the runs described on this host (RTX 3080 / Windows 11).
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-26 04:03 UTC · original

In-game measurement of the same pull requests, which is what my earlier comments should have led with. #1751's no-op is now measured rather than inferred, and only #2121 removes the condition entirely.

Four short start-up runs, each 45 s, on main 63bcca4 with the pull request merged, release build with diagnostics, VICTORY_LOG=info,victory_gpu::descriptor::host=debug. The whole truncated-slot burst lands in the first ~3.5 s, so 45 s captures it and stops well short of the ~90 s device hang; no run was removed, and no title process survived any of them. The metric is the heap partition the layer ends up with and how many of the title's 1,245,184 requested slots fall outside it.

row title slots in the heap dynamic range slots past the heap how
main 63bcca4 934,464 65,536 310,720 truncated at PORTABLE_VIEWS - MIN_DYNAMIC
+ #1751 934,464 65,536 310,720 identical to main at this count
+ #2628 737,853 262,144 507,331 fewer title slots, full dynamic range, indices clamped
+ #2121 all 1,245,184 (paged) — 0 view heap paged: ... slots=1245184 host_slots=1000000 pages=3906 fixed=1026

#1751 is confirmed a no-op here. Byte-identical partition and warning count to main, in the title, not deduced from a count sweep. That settles the thing my first comment got backwards.

More warnings is not worse, and #2628 should not be read that way. Its 507,331 is arithmetic: it keeps the full 262,144 dynamic range instead of MIN_DYNAMIC, so 1,000,000 − 262,144 − 3 = 737,853 slots are left for the title and the rest of the 1,245,184 fall outside. What changes is not the count but what happens on access — it clamps those indices, where main takes the documented shortcut. So it trades title slots for a defined access and the larger dynamic range that #59 wants. Whether that trade is right is a design question this measurement cannot settle; the count alone would make it look like a regression, and it is not one.

#2121 is the only row where no title slot is outside the heap. It places all 1,245,184 by page inside the 1,000,000 the host allows, so the condition does not arise rather than being clamped or truncated. It is also the largest change here (+1688/−75 across 14 files) and nothing above says its output is correct — only that the truncation is gone.

So the three are not variations of one fix: at the count the title actually uses, one does nothing, one re-partitions and defines the access, and one removes the shortage. My earlier table, measured at the unit tests' count of 4, showed all three as equivalent.

Not covered. No run reached the world — all four stopped at 45 s by design — so nothing here speaks to the black screen in this issue, the framerate, or whether any of these draws correctly. #2896 and #2937 were not re-run in the game: #2896 targets #2894, and #2937 changes only what the two tests report, so neither alters the partition. #1779, #2185 and #2475 still do not merge with main.

Counts and log lines only; no game files, no shader names, hashes or paths. AI-assisted (Claude Code); all four rows from the runs described on this host (RTX 3080 / Windows 11).

**@⁠BaggyALPHA** on GitHub · 2026-11-26 04:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/1627#issuecomment-7182254881) **In-game measurement of the same pull requests, which is what my earlier comments should have led with. #1751's no-op is now measured rather than inferred, and only #2121 removes the condition entirely.** Four short start-up runs, each 45 s, on `main` `63bcca4` with the pull request merged, release build with diagnostics, `VICTORY_LOG=info,victory_gpu::descriptor::host=debug`. The whole truncated-slot burst lands in the first ~3.5 s, so 45 s captures it and stops well short of the ~90 s device hang; no run was removed, and no title process survived any of them. The metric is the heap partition the layer ends up with and how many of the title's 1,245,184 requested slots fall outside it. | row | title slots in the heap | dynamic range | slots past the heap | how | |---|---:|---:|---:|---| | `main` `63bcca4` | 934,464 | 65,536 | **310,720** | truncated at `PORTABLE_VIEWS - MIN_DYNAMIC` | | + #1751 | 934,464 | 65,536 | **310,720** | identical to `main` at this count | | + #2628 | 737,853 | **262,144** | **507,331** | fewer title slots, full dynamic range, indices clamped | | + #2121 | **all 1,245,184** (paged) | — | **0** | `view heap paged: ... slots=1245184 host_slots=1000000 pages=3906 fixed=1026` | **#1751 is confirmed a no-op here.** Byte-identical partition and warning count to `main`, in the title, not deduced from a count sweep. That settles the thing my first comment got backwards. **More warnings is not worse, and #2628 should not be read that way.** Its 507,331 is arithmetic: it keeps the full 262,144 dynamic range instead of `MIN_DYNAMIC`, so 1,000,000 − 262,144 − 3 = 737,853 slots are left for the title and the rest of the 1,245,184 fall outside. What changes is not the count but what happens on access — it clamps those indices, where `main` takes the documented shortcut. So it trades title slots for a defined access and the larger dynamic range that #59 wants. Whether that trade is right is a design question this measurement cannot settle; the count alone would make it look like a regression, and it is not one. **#2121 is the only row where no title slot is outside the heap.** It places all 1,245,184 by page inside the 1,000,000 the host allows, so the condition does not arise rather than being clamped or truncated. It is also the largest change here (+1688/−75 across 14 files) and nothing above says its output is correct — only that the truncation is gone. So the three are not variations of one fix: at the count the title actually uses, one does nothing, one re-partitions and defines the access, and one removes the shortage. My earlier table, measured at the unit tests' count of 4, showed all three as equivalent. **Not covered.** No run reached the world — all four stopped at 45 s by design — so nothing here speaks to the black screen in this issue, the framerate, or whether any of these draws correctly. #2896 and #2937 were not re-run in the game: #2896 targets #2894, and #2937 changes only what the two tests report, so neither alters the partition. #1779, #2185 and #2475 still do not merge with `main`. Counts and log lines only; no game files, no shader names, hashes or paths. AI-assisted (Claude Code); all four rows from the runs described on this host (RTX 3080 / Windows 11).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1627
No description provided.