Test report: AMD Radeon RX 7900 XT (RDNA3, 20 GB), ffe310e: 342 passed, 0 failed, 6 ignored #1413

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

@⁠tumbubu on GitHub · 2026-11-24 17:51 UTC · original

The README lists one tested machine (RX 6700 XT, RDNA2). This is the workspace
test suite on RDNA3, which runs wave32 and wave64 natively. No game data was used.

System

  • GPU: AMD Radeon RX 7900 XT, driver 32.0.31036.15
  • CPU: AMD Ryzen 5 5600X
  • OS: Windows 11 Pro, build 26300
  • Rust 1.98.1 (from rust-toolchain.toml), MSVC Build Tools 2022 17.14
  • Windows SDK 10.0.26100: dxil.dll was found, so translated shaders were validated

Command

cargo test --workspace --locked

on ffe310e.

Result: 342 passed, 0 failed, 6 ignored.

  • The GPU tests in victory-shader (valu_tests, waterfall_tests) ran on the
    host device and WARP. Neither "no SM 6.6 device" nor "no dxil.dll" was printed.
  • The 6 ignored tests are the expected ones: 3 benchmarks (bcpack_throughput,
    texture_checks_per_submission, bench_write) and 3 that need files from
    outside the repository (bcpack::reference_chunks, xma::matches_a_reference_decoder,
    xma::walks_saved_streams).
  • 4 emit::diff_tests pass without doing anything and print
    "no console compiler; skipped" or "no console or PC compiler; skipped",
    because VICTORY_CONSOLE_DXC is unset. They show up as passed, not ignored,
    so the 342 includes them. The RTX 3050 report (#1140) has the same 342 / 0 / 6
    and the same 4 skips.

I can test open PRs on this card. That includes the wave64 and LDS ones,
where a native wave64 device may help separate translation bugs from
hardware limits.

**@⁠tumbubu** on GitHub · 2026-11-24 17:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/1413) The README lists one tested machine (RX 6700 XT, RDNA2). This is the workspace test suite on RDNA3, which runs wave32 and wave64 natively. No game data was used. **System** - GPU: AMD Radeon RX 7900 XT, driver 32.0.31036.15 - CPU: AMD Ryzen 5 5600X - OS: Windows 11 Pro, build 26300 - Rust 1.98.1 (from `rust-toolchain.toml`), MSVC Build Tools 2022 17.14 - Windows SDK 10.0.26100: `dxil.dll` was found, so translated shaders were validated **Command** ``` cargo test --workspace --locked ``` on `ffe310e`. **Result:** 342 passed, 0 failed, 6 ignored. - The GPU tests in `victory-shader` (`valu_tests`, `waterfall_tests`) ran on the host device and WARP. Neither "no SM 6.6 device" nor "no dxil.dll" was printed. - The 6 ignored tests are the expected ones: 3 benchmarks (`bcpack_throughput`, `texture_checks_per_submission`, `bench_write`) and 3 that need files from outside the repository (`bcpack::reference_chunks`, `xma::matches_a_reference_decoder`, `xma::walks_saved_streams`). - 4 `emit::diff_tests` pass without doing anything and print "no console compiler; skipped" or "no console or PC compiler; skipped", because `VICTORY_CONSOLE_DXC` is unset. They show up as passed, not ignored, so the 342 includes them. The RTX 3050 report (#1140) has the same 342 / 0 / 6 and the same 4 skips. I can test open PRs on this card. That includes the wave64 and LDS ones, where a native wave64 device may help separate translation bugs from hardware limits.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:30:49 +00:00
Author
Owner

@⁠fiestorra on GitHub · 2026-11-24 19:47 UTC · original

One test on ffe310e fails on a machine whose session has no display — the test's assumption, not the runtime's

cargo test --workspace --locked from ffe310e on this machine: everything passes except

---- modules::display::tests::sdr_and_display_deferrals stdout ----
panicked at crates\victory-hle\src\modules\display.rs:188:9:
assertion `left == right` failed
  left: -2147024846
 right: 0

-2147024846 is 0x80070032, HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED), which is exactly the module's own NOT_SUPPORTED. The test calls XDisplay's deferral acquire, which asks the host to keep the display awake (PowerCreateRequest, then PowerSetRequest(..., PowerRequestDisplayRequired)); on a session with no display to keep awake that call answers ERROR_NOT_SUPPORTED, and the runtime hands the title the failure, which is the right thing to do. A console always grants it, so assert_eq!(…, S_OK) holds on a machine with a real display (yours, presumably) and fails where I am today — the same session cannot create a swap chain either (CreateSwapChainForHwnd → 0x887A0022).

That matters past this machine: it is the kind of test that goes red on headless CI or a locked session, and its failure hides the real signal in the suite.

The fix (patch below, against ffe310e):

  • The test now checks the contract that holds anywhere: a granted deferral comes with a handle and closes cleanly; a refused one is NOT_SUPPORTED and leaves no handle; closing a null handle is fine. It no longer asserts that the host has a display.
  • acquire_deferral logs the refusal at debug! (the host refuses to keep the display awake, with code) and a failed PowerCreateRequest (no power request for a display deferral), so the condition is visible in a log instead of guessed.

Verified: without the patch, cargo test --workspace --locked on ffe310e has that one failure; with it the whole workspace suite passes (56 in victory-gpu, 94 in victory-hle, 120 in victory-shader, and the remaining crates), and cargo clippy -p victory-hle --all-targets --locked -- -D warnings is clean.

diff --git a/crates/victory-hle/src/modules/display.rs b/crates/victory-hle/src/modules/display.rs
index 41f9cbd..79feb60 100644
--- a/crates/victory-hle/src/modules/display.rs
+++ b/crates/victory-hle/src/modules/display.rs
@@ -95,11 +95,16 @@ extern "system" fn acquire_deferral(_: This, out: *mut *mut c_void) -> HRESULT {
     // SAFETY: a valid context; the string is copied by the call.
     let request = unsafe { PowerCreateRequest(&context) };
     if request as isize == -1 {
-        return last_error();
+        let hr = last_error();
+        tracing::debug!(code = hr, "no power request for a display deferral");
+        return hr;
     }
     // SAFETY: the request we just created.
     if unsafe { PowerSetRequest(request, PowerRequestDisplayRequired) } == 0 {
         let hr = last_error();
+        // A session with no display to keep awake refuses here
+        // (`ERROR_NOT_SUPPORTED`), and a console always grants it.
+        tracing::debug!(code = hr, "the host refuses to keep the display awake");
         // SAFETY: as above; not handed out.
         unsafe { windows_sys::Win32::Foundation::CloseHandle(request) };
         return hr;
@@ -175,6 +180,12 @@ mod tests {
     use super::*;
     use crate::modules::xgameruntime::{S_OK, method};
 
+    /// The host may refuse to keep the display awake — a session with no
+    /// display to keep (`PowerSetRequest` answers `ERROR_NOT_SUPPORTED`) —
+    /// where a console always grants it. Either way the call owes the title
+    /// one of two things, and nothing in between: a handle it can close, or
+    /// a failure and no handle. (This test asserted `S_OK` only, and fails on
+    /// a machine whose session has no display.)
     #[test]
     fn sdr_and_display_deferrals() {
         type Hdr = extern "system" fn(This, u32, *mut c_void) -> u32;
@@ -185,11 +196,18 @@ mod tests {
         type Acquire = extern "system" fn(This, *mut *mut c_void) -> HRESULT;
         type Close = extern "system" fn(This, *mut c_void);
         let mut handle = std::ptr::null_mut();
-        assert_eq!(
-            method::<Acquire>(&SHELL_OBJECT, 0x20)(&SHELL_OBJECT, &mut handle),
-            S_OK
-        );
-        assert!(!handle.is_null());
-        method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, handle);
+        let acquired = method::<Acquire>(&SHELL_OBJECT, 0x20)(&SHELL_OBJECT, &mut handle);
+        if acquired == S_OK {
+            assert!(!handle.is_null(), "a granted deferral comes with a handle");
+            method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, handle);
+        } else {
+            assert_eq!(
+                acquired, NOT_SUPPORTED,
+                "the only refusal a host gives here is a display it cannot keep"
+            );
+            assert!(handle.is_null(), "a refused deferral leaves no handle");
+        }
+        // Closing nothing is what a title does when it never got one.
+        method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, std::ptr::null_mut());
     }
 }

No game data is involved: no shaders, textures, keys or package bytes, only an HRESULT and a session state.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-11-24 19:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/1413#issuecomment-7142591506) **One test on `ffe310e` fails on a machine whose session has no display — the test's assumption, not the runtime's** `cargo test --workspace --locked` from `ffe310e` on this machine: everything passes except ``` ---- modules::display::tests::sdr_and_display_deferrals stdout ---- panicked at crates\victory-hle\src\modules\display.rs:188:9: assertion `left == right` failed left: -2147024846 right: 0 ``` `-2147024846` is `0x80070032`, `HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)`, which is exactly the module's own `NOT_SUPPORTED`. The test calls `XDisplay`'s deferral acquire, which asks the host to keep the display awake (`PowerCreateRequest`, then `PowerSetRequest(..., PowerRequestDisplayRequired)`); on a session with no display to keep awake that call answers `ERROR_NOT_SUPPORTED`, and the runtime hands the title the failure, which is the right thing to do. A console always grants it, so `assert_eq!(…, S_OK)` holds on a machine with a real display (yours, presumably) and fails where I am today — the same session cannot create a swap chain either (`CreateSwapChainForHwnd` → `0x887A0022`). That matters past this machine: it is the kind of test that goes red on headless CI or a locked session, and its failure hides the real signal in the suite. **The fix** (patch below, against `ffe310e`): - The test now checks the contract that holds anywhere: a granted deferral comes with a handle and closes cleanly; a refused one is `NOT_SUPPORTED` and leaves no handle; closing a null handle is fine. It no longer asserts that the host has a display. - `acquire_deferral` logs the refusal at `debug!` (`the host refuses to keep the display awake`, with `code`) and a failed `PowerCreateRequest` (`no power request for a display deferral`), so the condition is visible in a log instead of guessed. **Verified:** without the patch, `cargo test --workspace --locked` on `ffe310e` has that one failure; with it the whole workspace suite passes (56 in `victory-gpu`, 94 in `victory-hle`, 120 in `victory-shader`, and the remaining crates), and `cargo clippy -p victory-hle --all-targets --locked -- -D warnings` is clean. ```diff diff --git a/crates/victory-hle/src/modules/display.rs b/crates/victory-hle/src/modules/display.rs index 41f9cbd..79feb60 100644 --- a/crates/victory-hle/src/modules/display.rs +++ b/crates/victory-hle/src/modules/display.rs @@ -95,11 +95,16 @@ extern "system" fn acquire_deferral(_: This, out: *mut *mut c_void) -> HRESULT { // SAFETY: a valid context; the string is copied by the call. let request = unsafe { PowerCreateRequest(&context) }; if request as isize == -1 { - return last_error(); + let hr = last_error(); + tracing::debug!(code = hr, "no power request for a display deferral"); + return hr; } // SAFETY: the request we just created. if unsafe { PowerSetRequest(request, PowerRequestDisplayRequired) } == 0 { let hr = last_error(); + // A session with no display to keep awake refuses here + // (`ERROR_NOT_SUPPORTED`), and a console always grants it. + tracing::debug!(code = hr, "the host refuses to keep the display awake"); // SAFETY: as above; not handed out. unsafe { windows_sys::Win32::Foundation::CloseHandle(request) }; return hr; @@ -175,6 +180,12 @@ mod tests { use super::*; use crate::modules::xgameruntime::{S_OK, method}; + /// The host may refuse to keep the display awake — a session with no + /// display to keep (`PowerSetRequest` answers `ERROR_NOT_SUPPORTED`) — + /// where a console always grants it. Either way the call owes the title + /// one of two things, and nothing in between: a handle it can close, or + /// a failure and no handle. (This test asserted `S_OK` only, and fails on + /// a machine whose session has no display.) #[test] fn sdr_and_display_deferrals() { type Hdr = extern "system" fn(This, u32, *mut c_void) -> u32; @@ -185,11 +196,18 @@ mod tests { type Acquire = extern "system" fn(This, *mut *mut c_void) -> HRESULT; type Close = extern "system" fn(This, *mut c_void); let mut handle = std::ptr::null_mut(); - assert_eq!( - method::<Acquire>(&SHELL_OBJECT, 0x20)(&SHELL_OBJECT, &mut handle), - S_OK - ); - assert!(!handle.is_null()); - method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, handle); + let acquired = method::<Acquire>(&SHELL_OBJECT, 0x20)(&SHELL_OBJECT, &mut handle); + if acquired == S_OK { + assert!(!handle.is_null(), "a granted deferral comes with a handle"); + method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, handle); + } else { + assert_eq!( + acquired, NOT_SUPPORTED, + "the only refusal a host gives here is a display it cannot keep" + ); + assert!(handle.is_null(), "a refused deferral leaves no handle"); + } + // Closing nothing is what a title does when it never got one. + method::<Close>(&SHELL_OBJECT, 0x28)(&SHELL_OBJECT, std::ptr::null_mut()); } } ``` No game data is involved: no shaders, textures, keys or package bytes, only an HRESULT and a session state. Written with an AI assistant.
Author
Owner

@⁠tumbubu on GitHub · 2026-11-24 21:19 UTC · original

Thanks — that's the headless case. This machine has a display, so the deferral is granted and the test passes here; the 342 / 0 / 6 above stands.

It's already tracked: #727 reports the same failure, #1125 is a minimal fix to the test, and your patch is identical, line for line, to 10bc4e3 in #1630. I applied it on ffe310e on the 7900 XT: victory-hle still passes all 94 tests and cargo clippy -p victory-hle --all-targets --locked -- -D warnings is clean. Only the granted branch runs here, since this session has a display.

Best to follow up on #1125 / #1630 so a maintainer can pick one and close the other.

**@⁠tumbubu** on GitHub · 2026-11-24 21:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/1413#issuecomment-7144787486) Thanks — that's the headless case. This machine has a display, so the deferral is granted and the test passes here; the 342 / 0 / 6 above stands. It's already tracked: #727 reports the same failure, #1125 is a minimal fix to the test, and your patch is identical, line for line, to `10bc4e3` in #1630. I applied it on `ffe310e` on the 7900 XT: `victory-hle` still passes all 94 tests and `cargo clippy -p victory-hle --all-targets --locked -- -D warnings` is clean. Only the granted branch runs here, since this session has a display. Best to follow up on #1125 / #1630 so a maintainer can pick one and close the other.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:18 UTC · original

Automated triage for the maintainers.

Thanks for the data point: RX 7900 XT, driver 32.0.31036.15, Windows 11 26300, ffe310e, 342 passed, 0 failed, 6 ignored. The six ignored tests are expected, and so are the four emit::diff_tests that skip without VICTORY_CONSOLE_DXC. Nothing here needs a code change.

The headless failure of modules::display::tests::sdr_and_display_deferrals raised in the comments is fixed in main: #1125 (merged 2026-11-25) makes the test in crates/victory-hle/src/modules/display.rs accept NOT_SUPPORTED with no handle. It is tracked in #727.

On testing open PRs on a native wave64 card: please post results on the PR you tested, with its head commit, so the result stays with the change. main has moved on a lot since ffe310e, so a run on current main would be the more useful baseline.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1413#issuecomment-7159510169) <!-- victory-issue-triage v1 verdict=answered seen=2026-11-24T21:19:55Z at=2026-11-25T09:50:38Z --> Automated triage for the maintainers. Thanks for the data point: RX 7900 XT, driver 32.0.31036.15, Windows 11 26300, `ffe310e`, 342 passed, 0 failed, 6 ignored. The six ignored tests are expected, and so are the four `emit::diff_tests` that skip without `VICTORY_CONSOLE_DXC`. Nothing here needs a code change. The headless failure of `modules::display::tests::sdr_and_display_deferrals` raised in the comments is fixed in `main`: #1125 (merged 2026-11-25) makes the test in `crates/victory-hle/src/modules/display.rs` accept `NOT_SUPPORTED` with no handle. It is tracked in #727. On testing open PRs on a native wave64 card: please post results on the PR you tested, with its head commit, so the result stays with the change. `main` has moved on a lot since `ffe310e`, so a run on current `main` would be the more useful baseline. --- _Generated by [Claude Code](https://claude.ai/code)_
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#1413
No description provided.