Skip to content

d3d12: log CheckFeatureSupport answers for boot trace diagnostics - #732

Open
kotekompotek wants to merge 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-check-feature-support-answer-logging
Open

kotekompotek wants to merge 1 commit into
ProjectLeonida:mainfrom
kotekompotek:work/d3d12-check-feature-support-answer-logging

Conversation

@kotekompotek

@kotekompotek kotekompotek commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: coordination issue #14

What and why

  • Rebased onto current main (resolving pc_opts / kConsoleOptionsSize context conflict in runtime/shims/d3d12_vulkan_device.cpp).
  • Added log_once(...) diagnostics in CheckFeatureSupport (FEATURE_LEVELS, ARCHITECTURE/ARCHITECTURE1, OPTIONS, OPTIONS1, OPTIONS5, OPTIONS7) and synced docs/boot.md.

Tested

  • tests/test_docs_*.py + tests/test_i18n_index.py passed, python -I tests/test_boot_trace.py (32/32 OK), CTest d3d12_com (Passed, 1.61s) and d3d12_d24_support (Passed, 0.42s) passed, and d3d12_vulkan_device_test --filter feature logged the CheckFeatureSupport lines.

GPUs tested: NVIDIA GeForce GTX 1050 (driver 582.28, Windows)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • 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.

@abnalstlll-byte abnalstlll-byte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Adds useful log_once diagnostics for CheckFeatureSupport query answers (FEATURE_LEVELS, ARCHITECTURE, OPTIONS, OPTIONS1, OPTIONS5, OPTIONS7) and syncs docs/boot.md.

@kotekompotek
kotekompotek force-pushed the work/d3d12-check-feature-support-answer-logging branch from 5d7a0f4 to ced21a4 Compare November 24, 2026 15:02
@aslan2142 aslan2142 added missing claim Needs a claim in #14 and removed missing claim Needs a claim in #14 labels Nov 24, 2026
@kotekompotek
kotekompotek force-pushed the work/d3d12-check-feature-support-answer-logging branch from ced21a4 to f6c10bb Compare November 25, 2026 09:17
@kotekompotek

Copy link
Copy Markdown
Contributor Author

Rebased on current ubi/main (3f81d46), no conflicts. Verified on the rebased head: python -m pytest tests/test_boot_trace.py (34 passed), d3d12_com + d3d12_d24_support (2/2 Passed, Windows/GTX 1050 host + WARP).

AI-assisted: yes

@kotekompotek

Copy link
Copy Markdown
Contributor Author

Note on the red jobs at this head: both failures are baseline, not this diff — linux-gpu-tools cs_imgatomic_ext (6/64 sint words, llvmpipe) and windows vk_xdxr_postbuild_readback (prints "skipped" but exits nonzero) fail identically on every PR rebased after ~15:00 UTC, including merged #808's own checks. Reported in #1608. Locally (GTX 1050, MSVC Debug) the tests this change touches pass.

@zmasi

zmasi commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Windows 11 + RTX 3090 Verification Report (f6c10bb435 merged onto origin/main a9e247cd69)

  • Merge Status: Clean merge onto origin/main (a9e247cd69) and clean combined merge alongside #1369, #1223, #1449, and #2414.
  • Environment: Windows 11 (10.0.26200, x64), MSVC 19.44.35228, NVIDIA GeForce RTX 3090, VK_LAYER_KHRONOS_validation 1.4.363.1 (LEONIDA_VK_VALIDATION=1, VK_VALIDATE_SYNC=1), Python 3.12.10.

Diff Audit (2 files, +8/-2)

  • runtime/shims/d3d12_vulkan_device.cpp: adds log_once(...) lines recording the concrete answers returned for D3D12_FEATURE_FEATURE_LEVELS (max), D3D12_FEATURE_ARCHITECTURE (UMA), D3D12_FEATURE_D3D12_OPTIONS (ResourceBindingTier), D3D12_FEATURE_D3D12_OPTIONS1 (WaveOps), D3D12_FEATURE_D3D12_OPTIONS5 (RaytracingTier), and D3D12_FEATURE_D3D12_OPTIONS7 (MeshShaderTier).
  • docs/boot.md: updates open-questions table rows 11 and 22 to match the new [rt] CheckFeatureSupport answer lines.

Red -> Green Verification on RTX 3090

  1. Red (origin/main a9e247cd69):
    • d3d12_vulkan_device_test.exe on RTX 3090 emitted 43 [rt] d3d12: CheckFeatureSupport feature <id> lines on stderr with 0 answer lines.
  2. Green (#732 + origin/main):
    • d3d12_vulkan_device_test.exe (/O2 /MD /EHsc /W4 /permissive- /utf-8 /bigobj, 0 new warnings) passed on RTX 3090 (15.94 s, rc=0, 0 VUID- / validation errors) and logged all 7 expected (tag, value) log_once lines across all 6 feature queries:
      • [rt] d3d12: CheckFeatureSupport FEATURE_LEVELS max 49408 (D3D_FEATURE_LEVEL_12_1)
      • [rt] d3d12: CheckFeatureSupport FEATURE_LEVELS max 0 (DXGI_ERROR_UNSUPPORTED case)
      • [rt] d3d12: CheckFeatureSupport ARCHITECTURE UMA 0
      • [rt] d3d12: CheckFeatureSupport OPTIONS ResourceBindingTier 3
      • [rt] d3d12: CheckFeatureSupport OPTIONS5 RaytracingTier 0
      • [rt] d3d12: CheckFeatureSupport OPTIONS7 MeshShaderTier 0
      • [rt] d3d12: CheckFeatureSupport OPTIONS1 WaveOps 1
    • Documentation gates: tests/test_docs_repo_paths.py, tests/test_docs_table_rows.py, and tests/test_docs_encoding.py all passed (OK, rc=0).

Verdict: PASS — ready to merge.

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.

4 participants