Skip to content

Tests: skip the host realtime-queue check when the host driver refuses it - #2422

Open
gilangjavier wants to merge 1 commit into
ItsNotRexed:mainfrom
gilangjavier:test/realtime-queue-host-refusal
Open

gilangjavier wants to merge 1 commit into
ItsNotRexed:mainfrom
gilangjavier:test/realtime-queue-host-refusal

Conversation

@gilangjavier

Copy link
Copy Markdown

Claimed in the coordination issue as: #2300 (comment) (no ID assigned yet)

What and why

d3d12_vulkan_device_test fails in an elevated session on an AMD host: line 4251: command_queue(host.p, rt_desc) == S_OK. The real-privilege branch added with D3D-236 (#1817) expects the host D3D12 runtime to accept a D3D12_COMMAND_QUEUE_PRIORITY_GLOBAL_REALTIME queue whenever SeIncreaseBasePriorityPrivilege is enabled. AMD's D3D12 driver answers DXGI_ERROR_UNSUPPORTED (0x887a0004) even with the privilege held; NVIDIA's accepts it.

That answer comes from the host driver, not the layer, so this change:

  • still checks the layer's own answer (S_OK with the privilege, DXGI_ERROR_ACCESS_DENIED without) exactly as before;
  • accepts S_OK or DXGI_ERROR_UNSUPPORTED from the host, and prints global realtime queue with the privilege enabled: the host D3D12 driver refuses it (0x887a0004), skipped for the latter;
  • still fails on any other host answer.

Overlaps #2032, which edits the same lines (and would hit the same AMD answer through its new command_queue(device) == command_queue(host) check and the removed not_elevated gate). Whichever lands first, the other rebases.

Tested

Base 49475796, Windows 11, MSVC 19.44, Vulkan SDK 1.4.363.0, VK_LOADER_LAYERS_DISABLE=~implicit~, GPU picked with LEONIDA_VK_DEVICE:

GPU, driver elevated, main elevated, this PR not elevated, this PR
AMD Radeon 680M (gfx1035), 25.10.30.14 fails at line 4251 passes (prints the skip) passes
NVIDIA RTX 3050 6GB Laptop, 582.05 passes passes —

Full ctest (116 tests) on main on both GPUs: everything else passes; python -m unittest discover -s tests/semantic: 1671 OK.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (not a translator change)

AI-assisted.

🤖 Generated with Claude Code

…s it

AMD's D3D12 driver (Radeon 680M, 25.10.30.14) answers
DXGI_ERROR_UNSUPPORTED for a global realtime queue even with
SeIncreaseBasePriorityPrivilege enabled, so d3d12_vulkan_device failed
in an elevated session on that host. NVIDIA (RTX 3050, 582.05) accepts
it. The layer's own answer is still checked; only the host comparison
is skipped, and any other host answer still fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kam471

Kam471 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Reviewed the diff and the surrounding d3d12_vulkan_device_test.cpp source on Windows. The skip is narrow: it fires only when the host returns DXGI_ERROR_UNSUPPORTED; the layer's EXPECT(command_queue(device.p, rt_desc) == S_OK) is untouched, and the privilege-off ACCESS_DENIED check is unchanged. So no layer failure is hidden.

One caveat, not a blocker: the relaxation is per error code, not per driver. A host that used to accept the realtime queue and regressed to UNSUPPORTED would no longer be flagged (an E_FAIL or ACCESS_DENIED still fails). That is host-policy divergence rather than a layer regression, but worth a comment in the test so the intent is explicit. I did not build the C++ target (cl is not on PATH here), so this is a source review, not a test run.

@yagoviccari1-spec

Copy link
Copy Markdown

Tested b7d8d1a on Windows 11 build 26200.9974, NVIDIA RTX 5060 Ti / driver 621.24 (Vulkan 1.4.357), MSVC 19.44.35207, CMake 4.5.1 + Ninja 1.13.2, with llvm-mc 21.1.8 and SPIRV-Tools v2026.4 on PATH so the shader-driven targets build:

  • ctest --test-dir runtime/build -R '^d3d12_vulkan_device$' --output-on-failure: Passed, 6.13 s, twice in a row.
  • Same test on main 4947579 on this machine: Passed, 6.20 s — no regression.
  • This host answers S_OK to the privileged global-realtime queue, so the new DXGI_ERROR_UNSUPPORTED branch is not exercised here. This is a no-regression check on NVIDIA, not a verification of the AMD path.

No game files used. Ran with an AI agent on my machine.

@FaKL-Code

Copy link
Copy Markdown
Contributor

Tested b7d8d1a (merged onto main 4947579) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass

  • Clean configure + build of runtime/ (Visual Studio generator, RelWithDebInfo): no new warnings (same C4201/C4456/C4996 counts as main).
  • ctest -C RelWithDebInfo -j 4: 116/116 passed (loader run on its own; 7 skipped for missing inputs or optional components, gameinput disabled, as on main).
  • d3d12_vulkan_device, command_list, d3d12_com and d3d12_msaa_draw also pass with LEONIDA_VK_VALIDATION=1.
  • On this host the new skip path does not trigger: the host D3D12 runtime accepts the global realtime queue, so the check still compares against the host as before.

AI-assisted (Claude).

@Dom-in

Dom-in commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Windows + GPU check: AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release, Vulkan SDK 1.4.363. Tested head b7d8d1a merged onto main 4947579 (clean merge), full build, full ctest -C Release -j 4: 100% tests passed out of 116 | new failures vs main: none. The main baseline on the same machine passes 116/116, so nothing regresses here.

AI-assisted (Claude Code); runs on my machine.

@JRamos1993

Copy link
Copy Markdown
Contributor

Tested b7d8d1a (on main 4947579) on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, fresh RelWithDebInfo build:

  • d3d12_vulkan_device: passes 20 of 20 runs, and passes under LEONIDA_VK_VALIDATION=1 with 0 validation messages.
  • Full ctest: 125/125. No new /W4 warnings.

AI-assisted (Claude Code).

@grahamster2

Copy link
Copy Markdown

Tested b7d8d1a (fast-forwarded onto main 4947579) on an elevated Windows 11 26200 session, MSVC 19.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, Vulkan-Headers fetched by CMake: pass. Second AMD host after the 680M, different generation and driver.

GPU, driver main 4947579, elevated this PR, elevated
AMD Radeon Graphics (Ryzen 5 7600X iGPU, Raphael, gfx1036), AMD 24.30.66 (Vulkan 1.3.302) d3d12_vulkan_device fails: line 4251: command_queue(host.p, rt_desc) == S_OK passes 3/3 and prints global realtime queue with the privilege enabled: the host D3D12 driver refuses it (0x887a0004), skipped
NVIDIA RTX 3080, 610.88 (same machine) passes passes; no skip printed (the host accepts the queue)
  • Full ctest -j 2 with LEONIDA_VK_DEVICE=AMD: main 107/108 (only d3d12_vulkan_device); this PR 108/108.
  • Full ctest -j 4 with LEONIDA_VK_DEVICE=NVIDIA on main: 108/108.
  • The skip covers the host's answer only. The layer's own S_OK and DXGI_ERROR_ACCESS_DENIED checks still run, and on this device they pass.

@evilclanker9000

Copy link
Copy Markdown
Contributor

Tested b7d8d1a on Windows 11 (26200), MSVC 19.4x (VS 2022 Build Tools), Ninja RelWithDebInfo: pass on both GPUs of a two-GPU PC. Run unelevated, so the host refuses GLOBAL_REALTIME.

  • NVIDIA GeForce RTX 5080, driver 616.92 (LEONIDA_VK_DEVICE=nvidia): ctest 108/108 passed.
  • AMD Radeon RDNA2 iGPU, driver 32.0.21045.16010 (LEONIDA_VK_DEVICE=radeon, LEONIDA_HOST_ADAPTER=radeon): ctest 108/108 passed.

No game files. AI-assisted check (Claude Code), Vonsek3.

@bvtterbroot

Copy link
Copy Markdown

Tested b7d8d1a on AMD Radeon RX 7900 XTX (RDNA3, Navi 31), AMD driver 26.11.2, Vulkan 1.4.359, Windows 11: pass.

  • Runtime build: ok.
  • ctest --test-dir runtime/build: 124/124 passed.

Tools: MSVC 14.44 (scripts/build_runtime.ps1), Vulkan SDK 1.4.363.0, llvm-mc 21.1.8 (WSL).

@marquezinii

marquezinii commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Tested b7d8d1a (on main 4947579) on RTX 5070, driver 621.24, Windows 11 26H2 (26300), MSVC 14.52 (VS Build Tools 18), RelWithDebInfo, with VK_LAYER_KHRONOS_validation on (LEONIDA_VK_VALIDATION=1): pass. Full ctest 116/116, including d3d12_vulkan_device.

@DmitryBykov-ISPO

Copy link
Copy Markdown
Contributor

Tested b7d8d1aa on NVIDIA GeForce RTX 5070 (Blackwell, subgroup 32), driver 621.24 (32.0.16.2124), Vulkan 1.4.357, Windows 11 Pro 26300, MSVC 19.52 from Visual Studio 2026 with the Windows SDK 10.0.26100: pass.

  • ctest -C RelWithDebInfo -R d3d12_vulkan_device: pass in 12.9 s.
  • The new branch is not exercised here: NVIDIA's host D3D12 driver accepts the global realtime queue with the privilege enabled, so the host comparison still expects and gets S_OK, the same as on the parent. Nothing in this run distinguishes the PR from pr2422^.
  • What it does prove is that relaxing the comparison does not hide a real failure on a host that accepts the queue: the layer still answers S_OK there, and the rest of compare_invalid_arguments is unchanged.

The DXGI_ERROR_UNSUPPORTED path needs an AMD host that refuses a global realtime queue (the PR cites a 680M on 25.10.30.14); I cannot produce that here.

Synthetic device and queue creation only, no game files.

@lunisahdidouch

Copy link
Copy Markdown

Tested b7d8d1a on Windows 11 with an RX 9070 (AMD 26.11.1, Vulkan 1.4.359), built with VS 2022 Build Tools: pass

ctest -R d3d12_vulkan_device passes (the host side is AMD's D3D12 driver here). Builds clean.

AI-assisted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.