NVIDIA RTX 3070 / Windows 10: device removed. B5G5R5A1 typed UAV and B4G4R4A4 render target are unsupported on the host #2563

Open
opened 2026-11-26 05:09:18 +00:00 by github-bot · 6 comments
Owner

@⁠krcenov on GitHub · 2026-11-25 15:52 UTC · original

Environment

  • VIctory 940d32f (2026-11-25), release and diag builds
  • Windows 10 Pro 22H2 (10.0.19045)
  • NVIDIA GeForce RTX 3070, driver 32.0.16.1714
  • Intel i9-11900K, 32 GB RAM
  • Title version 930.048.020 (Series X)

Summary

The title boots and runs its first frames. About 40–65 s in, the host device is removed with DXGI_ERROR_INVALID_CALL. The D3D12 debug layer traces this to texture formats that the console supports and this host doesn't: B5G5R5A1_UNORM as a typed UAV, and B4G4R4A4_UNORM as a render target.

Debug layer output (diag build, VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1)

WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, layout: 0, flags: 1 }
D3D12: ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM. id=817
D3D12: ID3D12Device::CreateCommittedResource: A texture that has D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET set ... must be created with a format that either can be used as a render target, or cast to a format that could be used as a render target. D3D12_RESOURCE_DESC::Format is B4G4R4A4_UNORM. id=599
D3D12: ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View. This is because the current graphics implementation does not even support this Format. id=342
D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered (DXGI_ERROR_INVALID_CALL) id=232
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) []

The debug layer also reports this, which may be a separate issue:

D3D12: ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 id=645

Related: GetResourceAllocationInfo on castable textures

Before that crash, there was an earlier one in resource.rs (shared_texture, the SAVED statistics query). The query is called with a B5G5R5A1_UNORM + ALLOW_UNORDERED_ACCESS description and no castable-format list. The debug layer rejects that and removes the device:

ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set ... must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM.

HostTexture::new makes the same call. As a local workaround, I query both with the UAV flag cleared, since the result is only used for statistics. A proper fix might use GetResourceAllocationInfo3 with the castable list.

Windows 10: SM 6.6 root signatures refused without the Agility SDK

On Windows 10, the inbox D3D12 runtime refuses every root signature with Unsupported bit-flag set (root signature flags c01) (the directly-indexed heap flags). translate --pipelines then reports all 27,059 pipelines as "the host refuses it". The README lists Windows 10 as supported.

I worked around it locally by exporting D3D12SDKVersion = 620 and D3D12SDKPath = ".\D3D12\" from victory.exe (/EXPORT:...,DATA) and shipping Agility SDK 1.620.2. After that, 26,641 pipelines built and 403 were still refused. Adding Agility SDK support upstream would fix Windows 10 hosts.

Steps to reproduce

  1. translate --cache --pipelines on shaders.rpf and the title's executables
  2. victory run game_scarlett_master.exe --execute
  3. The device is removed during the first loading frames, about 40–65 s in

The full log is available on request (about 311k lines).

**@⁠krcenov** on GitHub · 2026-11-25 15:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563) **Environment** - VIctory `940d32f` (2026-11-25), release and `diag` builds - Windows 10 Pro 22H2 (10.0.19045) - NVIDIA GeForce RTX 3070, driver 32.0.16.1714 - Intel i9-11900K, 32 GB RAM - Title version 930.048.020 (Series X) **Summary** The title boots and runs its first frames. About 40–65 s in, the host device is removed with `DXGI_ERROR_INVALID_CALL`. The D3D12 debug layer traces this to texture formats that the console supports and this host doesn't: B5G5R5A1_UNORM as a typed UAV, and B4G4R4A4_UNORM as a render target. **Debug layer output** (`diag` build, `VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1`) ``` WARN victory_gpu::resource: no host texture error=The parameter is incorrect. (0x80070057) desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, layout: 0, flags: 1 } D3D12: ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM. id=817 D3D12: ID3D12Device::CreateCommittedResource: A texture that has D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET set ... must be created with a format that either can be used as a render target, or cast to a format that could be used as a render target. D3D12_RESOURCE_DESC::Format is B4G4R4A4_UNORM. id=599 D3D12: ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View. This is because the current graphics implementation does not even support this Format. id=342 D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered (DXGI_ERROR_INVALID_CALL) id=232 ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; breadcrumbs (done/count, list) [] ``` The debug layer also reports this, which may be a separate issue: ``` D3D12: ID3D12Device::CreateDescriptorHeap: D3D12_DESCRIPTOR_HEAP_DESC.NumDescriptors 2097152, but the limit for shader visible view heaps is 1000000 id=645 ``` **Related: `GetResourceAllocationInfo` on castable textures** Before that crash, there was an earlier one in `resource.rs` (`shared_texture`, the `SAVED` statistics query). The query is called with a B5G5R5A1_UNORM + `ALLOW_UNORDERED_ACCESS` description and no castable-format list. The debug layer rejects that and removes the device: ``` ID3D12Device::GetResourceAllocationInfo: A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set ... must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access. D3D12_RESOURCE_DESC::Format is B5G5R5A1_UNORM. ``` `HostTexture::new` makes the same call. As a local workaround, I query both with the UAV flag cleared, since the result is only used for statistics. A proper fix might use `GetResourceAllocationInfo3` with the castable list. **Windows 10: SM 6.6 root signatures refused without the Agility SDK** On Windows 10, the inbox D3D12 runtime refuses every root signature with `Unsupported bit-flag set (root signature flags c01)` (the directly-indexed heap flags). `translate --pipelines` then reports all 27,059 pipelines as "the host refuses it". The README lists Windows 10 as supported. I worked around it locally by exporting `D3D12SDKVersion = 620` and `D3D12SDKPath = ".\D3D12\"` from `victory.exe` (`/EXPORT:...,DATA`) and shipping Agility SDK 1.620.2. After that, 26,641 pipelines built and 403 were still refused. Adding Agility SDK support upstream would fix Windows 10 hosts. **Steps to reproduce** 1. `translate --cache --pipelines` on `shaders.rpf` and the title's executables 2. `victory run game_scarlett_master.exe --execute` 3. The device is removed during the first loading frames, about 40–65 s in The full log is available on request (about 311k lines).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:09:19 +00:00
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 18:22 UTC · original

This matches earlier reports, so here's what already exists for it:

  • B5G5R5A1 as a typed UAV: same failure as #2291, #2391, #2307 and #1753 (RTX 4080, 4060 Laptop and others). Two open PRs drop ALLOW_UNORDERED_ACCESS when the host format cannot be a UAV: #2319 and #2459. #2459's thread reports it got an NVIDIA card past this point.
  • B4G4R4A4 (format 115) as a render target: same as #1781 and #1952. The fxceless fork works around it with a stand-in format for targets (target_format: 86 and 115 render as R8G8B8A8). That fork gets NVIDIA cards into the lit world.

If you can test #2319 or #2459 on your 3070 and Windows 10, a result on those PRs would help them land.

(I found the matches with victory doctor from #2678, which lists a run's failures and links each one to the reports that already track it.)

**@⁠shawshanker18** on GitHub · 2026-11-25 18:22 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7170816642) This matches earlier reports, so here's what already exists for it: - **B5G5R5A1 as a typed UAV:** same failure as #2291, #2391, #2307 and #1753 (RTX 4080, 4060 Laptop and others). Two open PRs drop `ALLOW_UNORDERED_ACCESS` when the host format cannot be a UAV: #2319 and #2459. #2459's thread reports it got an NVIDIA card past this point. - **B4G4R4A4 (format 115) as a render target:** same as #1781 and #1952. The fxceless fork works around it with a stand-in format for targets (`target_format`: 86 and 115 render as R8G8B8A8). That fork gets NVIDIA cards into the lit world. If you can test #2319 or #2459 on your 3070 and Windows 10, a result on those PRs would help them land. (I found the matches with `victory doctor` from #2678, which lists a run's failures and links each one to the reports that already track it.)
Author
Owner

@⁠krcenov on GitHub · 2026-11-25 18:30 UTC · original

PRs #1843 and #1832 when I pulled them and merged them locally fixed this issue

**@⁠krcenov** on GitHub · 2026-11-25 18:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7170997205) PRs #1843 and #1832 when I pulled them and merged them locally fixed this issue
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 18:44 UTC · original · edited 2026-11-26 00:49 UTC

Automated triage for the maintainers.

Run report: RTX 3070, driver 32.0.16.1714, Windows 10 22H2, main 940d32f. The device is removed about 40-65 s in. The report is complete, thanks.

  • B5G5R5A1_UNORM typed UAV: tracked in #1753, and now fixed on main (63bcca4): #1273 and ea488a9 (#2462) make fits in crates/victory-gpu/src/descriptor/host.rs check typed_store for every unordered view, including one in the texture's own format, so that view is refused (slot null, writes dropped) instead of removing the device. Please retry on current main; you reported #1843 + #1832 fixed it locally, which is the same view-side change plus dropping the flag.
  • B4G4R4A4_UNORM render target (format 115): main still has no fallback. With #1843 + #1832 it is no longer fatal on your card: the texture is simply not created (no host texture ... format: 115), so what the title draws to it is lost. Open PRs #2767 and #2626 render packed 16-bit colour targets the host cannot write as RGBA8; #2773 drops the flag instead.
  • Next failure after that: about 5 min 40 s in, as the world begins loading, DXGI_ERROR_DEVICE_HUNG with DRED pointing at a dispatch 16x16x16 compute pass. The same dispatch ends an RTX 2070 SUPER run in #1753, and this matches the NVIDIA world-load hang tracked in #71; please add further results there.
  • Windows 10 without the Agility SDK: main still does not export D3D12SDKVersion/D3D12SDKPath, while the README lists Windows 10/11 and shader model 6.6. That is for the maintainers to decide (tracked in #84).

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 18:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7171336928) · edited 2026-11-26 00:49 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T21:51:59Z at=2026-11-26T00:58:00Z --> Automated triage for the maintainers. Run report: RTX 3070, driver 32.0.16.1714, Windows 10 22H2, main `940d32f`. The device is removed about 40-65 s in. The report is complete, thanks. - **B5G5R5A1_UNORM typed UAV:** tracked in #1753, and now fixed on `main` (`63bcca4`): #1273 and ea488a9 (#2462) make `fits` in `crates/victory-gpu/src/descriptor/host.rs` check `typed_store` for every unordered view, including one in the texture's own format, so that view is refused (slot null, writes dropped) instead of removing the device. Please retry on current `main`; you reported #1843 + #1832 fixed it locally, which is the same view-side change plus dropping the flag. - **B4G4R4A4_UNORM render target (format 115):** `main` still has no fallback. With #1843 + #1832 it is no longer fatal on your card: the texture is simply not created (`no host texture ... format: 115`), so what the title draws to it is lost. Open PRs #2767 and #2626 render packed 16-bit colour targets the host cannot write as RGBA8; #2773 drops the flag instead. - **Next failure after that:** about 5 min 40 s in, as the world begins loading, `DXGI_ERROR_DEVICE_HUNG` with DRED pointing at a `dispatch 16x16x16` compute pass. The same dispatch ends an RTX 2070 SUPER run in #1753, and this matches the NVIDIA world-load hang tracked in #71; please add further results there. - **Windows 10 without the Agility SDK:** `main` still does not export `D3D12SDKVersion`/`D3D12SDKPath`, while the README lists Windows 10/11 and shader model 6.6. That is for the maintainers to decide (tracked in #84). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠shawshanker18 on GitHub · 2026-11-25 18:50 UTC · original

@⁠krcenov thanks for testing. So on an RTX 3070 with Windows 10, #1843 and #1832 together get past the device removal. Both PRs aim at the same B5G5R5A1 typed-UAV failure as #2319 and #2459, so maintainers now have four candidates for one bug. If you post the same result on #1843 and #1832 (GPU, driver, Windows build, how long it ran), that's what gets one of them merged.

Did the B4G4R4A4 render target (format 115) also stop showing up, or does it still appear in the debug layer output?

**@⁠shawshanker18** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7171464398) @⁠krcenov thanks for testing. So on an RTX 3070 with Windows 10, #1843 and #1832 together get past the device removal. Both PRs aim at the same B5G5R5A1 typed-UAV failure as #2319 and #2459, so maintainers now have four candidates for one bug. If you post the same result on #1843 and #1832 (GPU, driver, Windows build, how long it ran), that's what gets one of them merged. Did the B4G4R4A4 render target (format 115) also stop showing up, or does it still appear in the debug layer output?
Author
Owner

@⁠krcenov on GitHub · 2026-11-25 21:51 UTC · original

Yes, format 115 still appears with #1843 + #1832, but it's no longer fatal: CreateCommittedResource3 ... D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM (id=817) and no host texture ... format: 115, flags: 1. The run then went ~5 min 40 s at 30 fps on menus/loading until DXGI_ERROR_DEVICE_HUNG (TDR) as the world began loading. DRED points at dispatch 16x16x16 [compute 00167d58cc5a78d7] (possibly #71). Results posted on #1843 and #1832.

**@⁠krcenov** on GitHub · 2026-11-25 21:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7175638207) Yes, format 115 still appears with #1843 + #1832, but it's no longer fatal: CreateCommittedResource3 ... D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM (id=817) and no host texture ... format: 115, flags: 1. The run then went ~5 min 40 s at 30 fps on menus/loading until DXGI_ERROR_DEVICE_HUNG (TDR) as the world began loading. DRED points at dispatch 16x16x16 [compute 00167d58cc5a78d7] (possibly #71). Results posted on #1843 and #1832.
Author
Owner

@⁠potatoe0100 on GitHub · 2026-11-26 14:12 UTC · original

An update on where this stands on current main (63bcca4). The B5G5R5A1_UNORM unordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops the GetResourceAllocationInfo query from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080.

The B4G4R4A4_UNORM (format 115) render target still has no stand-in on main; #89 and #2767 are the open PRs for it. A rerun on 63bcca4 would show whether anything fatal is left.

AI-assisted (Claude)

**@⁠potatoe0100** on GitHub · 2026-11-26 14:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/2563#issuecomment-7194426434) An update on where this stands on current `main` (`63bcca4`). The `B5G5R5A1_UNORM` unordered access removal is fixed. #2462 (ea488a9) refuses the typed view, and #2286 (bac1364) stops the `GetResourceAllocationInfo` query from using the title's description. #1753, which tracked that part, was closed after a debug-layer run on an RTX 5080. The `B4G4R4A4_UNORM` (format 115) render target still has no stand-in on `main`; #89 and #2767 are the open PRs for it. A rerun on `63bcca4` would show whether anything fatal is left. AI-assisted (Claude)
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#2563
No description provided.