startup: print the reason when the logical view draw skips #1563

Merged
RenzoWit35 merged 1 commit from upstream-pr/1570 into main 2026-11-24 14:39:38 +00:00
RenzoWit35 commented 2026-11-24 14:22:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T14:22:18Z.


Change

startup_logical_view_<backend> skips (77) on an adapter that accepts the full 1,245,184-view shader-visible heap, because the capped-heap tables are then not reached. The skip came from a bare return 77 in draw_logical_tables() (tests/startup_stream_draw.cpp), so the CTest log showed Skipped without an explanation. startup_view_heap_check already prints a reason for the same condition.

draw_logical_tables() now prints one line before returning 77:

adapter accepts 1245184 descriptors directly; the logical view tables are not needed here

The count is the heap size the adapter accepted in the probe. tests/startup_logical_view_check.py already forwards the consumer's stdout, so no other file changes. The exit code, the CTest registration (SKIP_RETURN_CODE 77) and the non-skip path are unchanged. This is the only return 77 in that file.

Verification

Environment: Windows 11 build 26300, MSVC 19.51 (toolset 14.51), Windows SDK 10.0.26100, Python 3.14.5, dev preset. WARP Microsoft Basic Render Driver 10.0.26100.9818; hardware adapter Intel(R) Graphics, driver 32.0.101.8991. The test does not enable the debug layer.

cmake --preset dev
cmake --build out/build/dev --target startup_stream_consumer --parallel 3
ctest --test-dir out/build/dev --no-tests=error -R '^startup_(logical_view_(warp|hardware)|stream_draw_warp)$' -V

Before (unmodified main at a3633d4d), startup_logical_view_warp; the last stdout line is the adapter line and no reason follows:

337: adapter=Microsoft Basic Render Driver driver=10.0.26100.9818
1/2 Test #337: startup_logical_view_warp ........***Skipped   1.78 sec

After (this branch rebased on main at 800a4500):

1/3 Test #336: startup_stream_draw_warp .........   Passed    4.28 sec
340: adapter accepts 1245184 descriptors directly; the logical view tables are not needed here
2/3 Test #340: startup_logical_view_warp ........***Skipped   1.09 sec
354: logical views: physical capacity 1000000, logical count 1245184
3/3 Test #354: startup_logical_view_hardware ....   Passed    1.97 sec
  • Capability skip, reported separately: startup_logical_view_warp is skipped before and after (not a pass, not a failure). Only the reason line is new.
  • startup_logical_view_hardware passes before and after on the Intel adapter, which caps the heap at 1,000,000. This is the path that does not skip; its output is unchanged.
  • startup_stream_draw_warp, which uses the same consumer executable, passes after the change.
  • Negative control: the "before" run above is the same test against the unmodified source and shows the missing line. No new automated check was added; the wrapper cannot tell this skip from the other source of 77 (see below) without a larger change.

Not run: the full test suite, the Release configuration, and a hardware adapter that accepts the full heap (the hardware skip path was not observed here; only the WARP one was).

Evidence and follow-up

Refs #874. The missing reason was noted there in an RX 9070 XT report for the logical-view heap path (startup_logical_view skip 77 on hardware and WARP without an explanation).

I found no open pull request touching tests/startup_stream_draw.cpp or tests/startup_logical_view_check.py (open PR list checked before submitting).

Not changed here, noticed while reading: startup_logical_view_hardware can also return 77 from prepare_stream_pipeline() in tests/startup_stream_setup.cpp when no feature-level 12 hardware adapter exists. That path prints nothing either, and startup_logical_view_check.py does not add a line for it the way startup_stream_draw_check.py does. It is a separate file and a different condition, so it is left for a follow-up.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6583926430 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1570). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T14:22:18Z. --- ## Change `startup_logical_view_<backend>` skips (77) on an adapter that accepts the full 1,245,184-view shader-visible heap, because the capped-heap tables are then not reached. The skip came from a bare `return 77` in `draw_logical_tables()` (`tests/startup_stream_draw.cpp`), so the CTest log showed `Skipped` without an explanation. `startup_view_heap_check` already prints a reason for the same condition. `draw_logical_tables()` now prints one line before returning 77: ```text adapter accepts 1245184 descriptors directly; the logical view tables are not needed here ``` The count is the heap size the adapter accepted in the probe. `tests/startup_logical_view_check.py` already forwards the consumer's stdout, so no other file changes. The exit code, the CTest registration (`SKIP_RETURN_CODE 77`) and the non-skip path are unchanged. This is the only `return 77` in that file. ## Verification Environment: Windows 11 build 26300, MSVC 19.51 (toolset 14.51), Windows SDK 10.0.26100, Python 3.14.5, `dev` preset. WARP `Microsoft Basic Render Driver` 10.0.26100.9818; hardware adapter `Intel(R) Graphics`, driver 32.0.101.8991. The test does not enable the debug layer. ```powershell cmake --preset dev cmake --build out/build/dev --target startup_stream_consumer --parallel 3 ctest --test-dir out/build/dev --no-tests=error -R '^startup_(logical_view_(warp|hardware)|stream_draw_warp)$' -V ``` Before (unmodified `main` at `a3633d4d`), `startup_logical_view_warp`; the last stdout line is the adapter line and no reason follows: ```text 337: adapter=Microsoft Basic Render Driver driver=10.0.26100.9818 1/2 Test #337: startup_logical_view_warp ........***Skipped 1.78 sec ``` After (this branch rebased on `main` at `800a4500`): ```text 1/3 Test #336: startup_stream_draw_warp ......... Passed 4.28 sec 340: adapter accepts 1245184 descriptors directly; the logical view tables are not needed here 2/3 Test #340: startup_logical_view_warp ........***Skipped 1.09 sec 354: logical views: physical capacity 1000000, logical count 1245184 3/3 Test #354: startup_logical_view_hardware .... Passed 1.97 sec ``` - Capability skip, reported separately: `startup_logical_view_warp` is skipped before and after (not a pass, not a failure). Only the reason line is new. - `startup_logical_view_hardware` passes before and after on the Intel adapter, which caps the heap at 1,000,000. This is the path that does not skip; its output is unchanged. - `startup_stream_draw_warp`, which uses the same consumer executable, passes after the change. - Negative control: the "before" run above is the same test against the unmodified source and shows the missing line. No new automated check was added; the wrapper cannot tell this skip from the other source of 77 (see below) without a larger change. Not run: the full test suite, the Release configuration, and a hardware adapter that accepts the full heap (the hardware skip path was not observed here; only the WARP one was). ## Evidence and follow-up Refs #874. The missing reason was noted there in an RX 9070 XT report for the logical-view heap path (`startup_logical_view` skip 77 on hardware and WARP without an explanation). I found no open pull request touching `tests/startup_stream_draw.cpp` or `tests/startup_logical_view_check.py` (open PR list checked before submitting). Not changed here, noticed while reading: `startup_logical_view_hardware` can also return 77 from `prepare_stream_pipeline()` in `tests/startup_stream_setup.cpp` when no feature-level 12 hardware adapter exists. That path prints nothing either, and `startup_logical_view_check.py` does not add a line for it the way `startup_stream_draw_check.py` does. It is a separate file and a different condition, so it is left for a follow-up. AI-assisted.
upstream-sync closed this pull request 2026-11-24 15:02:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
R0Y00/Xbox2Windows!1563
No description provided.