RTX 3060 12GB and fails to compile properly #775

Open
opened 2026-11-26 03:50:52 +00:00 by github-bot · 4 comments
Owner

@⁠VertofChest on GitHub · 2026-11-25 07:14 UTC · original

Upon running cargo build --profile diag -p victory this is the output I get:

failures:

---- pipeline::host::tests::a_pipeline_with_depth_bounds_is_made stdout ----

thread 'pipeline::host::tests::a_pipeline_with_depth_bounds_is_made' (14556) panicked at crates\victory-gpu\src\pipeline\host.rs:1102:79:
called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "The parameter is incorrect." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    pipeline::host::tests::a_pipeline_with_depth_bounds_is_made

test result: FAILED. 124 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 4.37s

error: test failed, to rerun pass `-p victory-gpu --lib`
**@⁠VertofChest** on GitHub · 2026-11-25 07:14 UTC · [original](https://github.com/fxceless/victory-fork/issues/775) Upon running **cargo build --profile diag -p victory** this is the output I get: ``` failures: ---- pipeline::host::tests::a_pipeline_with_depth_bounds_is_made stdout ---- thread 'pipeline::host::tests::a_pipeline_with_depth_bounds_is_made' (14556) panicked at crates\victory-gpu\src\pipeline\host.rs:1102:79: called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "The parameter is incorrect." } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: pipeline::host::tests::a_pipeline_with_depth_bounds_is_made test result: FAILED. 124 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out; finished in 4.37s error: test failed, to rerun pass `-p victory-gpu --lib` ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:52 +00:00
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 07:30 UTC · original

The pasted output is from a victory-gpu test executable, not a compiler diagnostic. Could you share the commit SHA (git rev-parse HEAD, or the source/archive version) and whether cargo build --profile diag -p victory exits successfully when run on its own? No game files or full system log needed.

For comparison, I cross-built the diag app from stock a26859f on Linux for x86_64-pc-windows-gnullvm (Finished diag profile, exit 0), then separately built the GPU test executable and ran --list under Proton: 140 tests, 0 benchmarks. It lists pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws, not a_pipeline_with_depth_bounds_is_made. So line 1102 on current main can't identify the failed call in your build. This was a build/list check, not a test of the RTX 3060.

If the standalone build succeeds, cargo test -p victory-gpu --lib depth_bounds -- --nocapture on the same checkout should isolate the test output. #692 is a possible lead if the failing line on that revision creates the root signature; its author fixed an unnecessary bindless requirement in a related fixture. I wouldn't assume that's your error until the source line matches.

AI disclosure: Hermes Agent performed the build and test-list comparison and wrote this comment on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 07:30 UTC · [original](https://github.com/fxceless/victory-fork/issues/775#issuecomment-7155932994) The pasted output is from a `victory-gpu` test executable, not a compiler diagnostic. Could you share **the commit SHA** (`git rev-parse HEAD`, or the source/archive version) and whether `cargo build --profile diag -p victory` exits successfully when run on its own? No game files or full system log needed. For comparison, I cross-built the `diag` app from stock `a26859f` on Linux for `x86_64-pc-windows-gnullvm` (`Finished diag profile`, exit 0), then separately built the GPU test executable and ran `--list` under Proton: `140 tests, 0 benchmarks`. It lists `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws`, not `a_pipeline_with_depth_bounds_is_made`. So line 1102 on current `main` can't identify the failed call in your build. This was a build/list check, not a test of the RTX 3060. If the standalone build succeeds, `cargo test -p victory-gpu --lib depth_bounds -- --nocapture` on the **same checkout** should isolate the test output. #692 is a possible lead if the failing line on that revision creates the root signature; its author fixed an unnecessary bindless requirement in a related fixture. I wouldn't assume that's your error until the source line matches. AI disclosure: Hermes Agent performed the build and test-list comparison and wrote this comment on ArturoWolff’s behalf.
Author
Owner

@⁠VertofChest on GitHub · 2026-11-25 07:51 UTC · original

Sure,
The commit SHA is bb0fc9c26d37a25d9289e34b7e77e83b469a65f3 with the source being here, the result of running cargo build --profile diag -p victory was successful

However upon trying to run the depth_bounds command you listed, I get this result as output:

PS H:\WinDurango\victory-amd> cargo build --profile diag -p victory
   Compiling windows-core v0.62.2
   Compiling victory-core v0.1.0 (H:\WinDurango\victory-amd\crates\victory-core)
   Compiling victory-pipeline v0.1.0 (H:\WinDurango\victory-amd\crates\victory-pipeline)
   Compiling victory-loader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-loader)
   Compiling windows-future v0.3.2
   Compiling windows-numerics v0.3.1
   Compiling windows-collections v0.3.2
   Compiling windows v0.62.2
   Compiling victory-shader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-shader)
   Compiling victory-gpu v0.1.0 (H:\WinDurango\victory-amd\crates\victory-gpu)
   Compiling victory-hle v0.1.0 (H:\WinDurango\victory-amd\crates\victory-hle)
   Compiling victory v0.1.0 (H:\WinDurango\victory-amd\apps\victory)
    Finished `diag` profile [optimized + debuginfo] target(s) in 51.36s
PS H:\WinDurango\victory-amd> cargo test -p victory-gpu --lib depth_bounds -- --nocapture
   Compiling windows-sys v0.61.2
   Compiling syn v3.0.10
   Compiling nu-ansi-term v0.50.3
   Compiling tempfile v3.27.0
   Compiling tracing-subscriber v0.3.23
   Compiling thiserror-impl v2.0.21
   Compiling serde_derive v1.0.229
   Compiling thiserror v2.0.21
   Compiling victory-shader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-shader)
   Compiling serde v1.0.229
   Compiling victory-core v0.1.0 (H:\WinDurango\victory-amd\crates\victory-core)
   Compiling victory-pipeline v0.1.0 (H:\WinDurango\victory-amd\crates\victory-pipeline)
   Compiling victory-gpu v0.1.0 (H:\WinDurango\victory-amd\crates\victory-gpu)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 42.62s
     Running unittests src\lib.rs (target\debug\deps\victory_gpu-a745063827feae5d.exe)

running 1 test

thread 'pipeline::host::tests::a_pipeline_with_depth_bounds_is_made' (10412) panicked at crates\victory-gpu\src\pipeline\host.rs:1102:79:
called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "The parameter is incorrect." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test pipeline::host::tests::a_pipeline_with_depth_bounds_is_made ... FAILED

failures:

failures:
    pipeline::host::tests::a_pipeline_with_depth_bounds_is_made

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 125 filtered out; finished in 0.32s

error: test failed, to rerun pass `-p victory-gpu --lib` ```


(Never mind the WinDurango folder name, it's a dummy folder containing victory in a subfolder, no other env exists here)
**@⁠VertofChest** on GitHub · 2026-11-25 07:51 UTC · [original](https://github.com/fxceless/victory-fork/issues/775#issuecomment-7156336660) Sure, The commit SHA is `bb0fc9c26d37a25d9289e34b7e77e83b469a65f3` with the source being [here](https://github.com/joshuudev/victory-amd), the result of running `cargo build --profile diag -p victory` was successful However upon trying to run the depth_bounds command you listed, I get this result as output: ``` PS H:\WinDurango\victory-amd> cargo build --profile diag -p victory Compiling windows-core v0.62.2 Compiling victory-core v0.1.0 (H:\WinDurango\victory-amd\crates\victory-core) Compiling victory-pipeline v0.1.0 (H:\WinDurango\victory-amd\crates\victory-pipeline) Compiling victory-loader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-loader) Compiling windows-future v0.3.2 Compiling windows-numerics v0.3.1 Compiling windows-collections v0.3.2 Compiling windows v0.62.2 Compiling victory-shader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-shader) Compiling victory-gpu v0.1.0 (H:\WinDurango\victory-amd\crates\victory-gpu) Compiling victory-hle v0.1.0 (H:\WinDurango\victory-amd\crates\victory-hle) Compiling victory v0.1.0 (H:\WinDurango\victory-amd\apps\victory) Finished `diag` profile [optimized + debuginfo] target(s) in 51.36s PS H:\WinDurango\victory-amd> cargo test -p victory-gpu --lib depth_bounds -- --nocapture Compiling windows-sys v0.61.2 Compiling syn v3.0.10 Compiling nu-ansi-term v0.50.3 Compiling tempfile v3.27.0 Compiling tracing-subscriber v0.3.23 Compiling thiserror-impl v2.0.21 Compiling serde_derive v1.0.229 Compiling thiserror v2.0.21 Compiling victory-shader v0.1.0 (H:\WinDurango\victory-amd\crates\victory-shader) Compiling serde v1.0.229 Compiling victory-core v0.1.0 (H:\WinDurango\victory-amd\crates\victory-core) Compiling victory-pipeline v0.1.0 (H:\WinDurango\victory-amd\crates\victory-pipeline) Compiling victory-gpu v0.1.0 (H:\WinDurango\victory-amd\crates\victory-gpu) Finished `test` profile [unoptimized + debuginfo] target(s) in 42.62s Running unittests src\lib.rs (target\debug\deps\victory_gpu-a745063827feae5d.exe) running 1 test thread 'pipeline::host::tests::a_pipeline_with_depth_bounds_is_made' (10412) panicked at crates\victory-gpu\src\pipeline\host.rs:1102:79: called `Result::unwrap()` on an `Err` value: Error { code: HRESULT(0x80070057), message: "The parameter is incorrect." } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace test pipeline::host::tests::a_pipeline_with_depth_bounds_is_made ... FAILED failures: failures: pipeline::host::tests::a_pipeline_with_depth_bounds_is_made test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 125 filtered out; finished in 0.32s error: test failed, to rerun pass `-p victory-gpu --lib` ``` (Never mind the WinDurango folder name, it's a dummy folder containing victory in a subfolder, no other env exists here)
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-25 07:53 UTC · original

Thanks, that isolates it. Your standalone diag build succeeded; this is a runtime failure of one synthetic GPU test, not a compilation failure.

I read the exact bb0fc9c26d37a25d9289e34b7e77e83b469a65f3 source you provided. Line 1102 unwraps root_signature(&host.device, &[], &[], false) before the depth-bounds pipeline is created. The helper requests both directly-indexed descriptor heap flags even though the test shader uses no descriptors. That is the same unnecessary requirement addressed in #692 on this fork. It is a concrete test-fixture lead, not proof that either flag specifically caused your HRESULT or that the game would work.

If the maintainer of your checkout adapts #692, the relevant change is the empty test-only root signature, not removing bindless flags from the real runtime helper. The test name and surrounding code differ between branches, so do not assume the patch applies verbatim. No additional game run is needed to establish the build/test distinction. I have not run this revision or tested your adapter.

AI disclosure: Hermes Agent inspected the reported source revision and wrote this reply on ArturoWolff’s behalf.

**@⁠ArturoWolff** on GitHub · 2026-11-25 07:53 UTC · [original](https://github.com/fxceless/victory-fork/issues/775#issuecomment-7156366739) Thanks, that isolates it. Your standalone `diag` build succeeded; this is a runtime failure of one synthetic GPU test, not a compilation failure. I read the exact `bb0fc9c26d37a25d9289e34b7e77e83b469a65f3` source you provided. [Line 1102](https://github.com/joshuudev/victory-amd/blob/bb0fc9c26d37a25d9289e34b7e77e83b469a65f3/crates/victory-gpu/src/pipeline/host.rs#L1077-L1112) unwraps `root_signature(&host.device, &[], &[], false)` **before** the depth-bounds pipeline is created. The [helper](https://github.com/joshuudev/victory-amd/blob/bb0fc9c26d37a25d9289e34b7e77e83b469a65f3/crates/victory-gpu/src/pipeline/host.rs#L975-L1018) requests both directly-indexed descriptor heap flags even though the test shader uses no descriptors. That is the same unnecessary requirement addressed in #692 on this fork. It is a concrete test-fixture lead, not proof that either flag specifically caused your HRESULT or that the game would work. If the maintainer of your checkout adapts #692, the relevant change is the empty test-only root signature, not removing bindless flags from the real runtime helper. The test name and surrounding code differ between branches, so do not assume the patch applies verbatim. No additional game run is needed to establish the build/test distinction. I have not run this revision or tested your adapter. AI disclosure: Hermes Agent inspected the reported source revision and wrote this reply on ArturoWolff’s behalf.
Author
Owner

@⁠HAL9000RELOADED on GitHub · 2026-11-25 13:00 UTC · original

The cause, measured on another machine and card.

Setup: Windows 10 Pro 22H2 (19045), Radeon RX 7900 XTX, fxceless main a253706, where the test is named depth_bounds_pipeline_loads_and_filters_draws.

  • With Windows 10's in-box D3D12 runtime the test fails exactly like yours: E_INVALIDARG from root_signature(&host.device, &[], &[], false). That root signature asks for the directly-indexed descriptor heap flags, which need shader model 6.6. Windows 10's in-box runtime stops at 6.5.
  • With the D3D12 Agility SDK runtime (SM 6.9) beside the test binary, on the same card and the same test: it passes.
  • With #692 (the test uses an empty root signature), on the in-box runtime: it passes.

If your machine runs Windows 10, this failure says nothing about the RTX 3060, and it does not affect cargo build.

The game itself does need the Agility SDK runtime on Windows 10 (#402, #69). Every translated pipeline uses those flags, so without it they are refused the same way.

The runs behind this, with the three fixes that make victory-gpu's tests pass on Windows 10 (#875, #849, #692): #850

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 13:00 UTC · [original](https://github.com/fxceless/victory-fork/issues/775#issuecomment-7163161553) The cause, measured on another machine and card. **Setup:** Windows 10 Pro 22H2 (19045), Radeon RX 7900 XTX, fxceless `main` `a253706`, where the test is named `depth_bounds_pipeline_loads_and_filters_draws`. - **With Windows 10's in-box D3D12 runtime the test fails exactly like yours:** `E_INVALIDARG` from `root_signature(&host.device, &[], &[], false)`. That root signature asks for the directly-indexed descriptor heap flags, which need shader model 6.6. Windows 10's in-box runtime stops at 6.5. - **With the D3D12 Agility SDK runtime (SM 6.9) beside the test binary**, on the same card and the same test: it passes. - **With #692** (the test uses an empty root signature), on the in-box runtime: it passes. If your machine runs Windows 10, this failure says nothing about the RTX 3060, and it does not affect `cargo build`. The game itself does need the Agility SDK runtime on Windows 10 (#402, #69). Every translated pipeline uses those flags, so without it they are refused the same way. The runs behind this, with the three fixes that make victory-gpu's tests pass on Windows 10 (#875, #849, #692): https://git.gtahub.st/github/fxceless--victory-fork/issues/850
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/fxceless--victory-fork#775
No description provided.