tests: accept the clear censuses in the memory SRV report #3604

Manually merged
github merged 1 commit from github-bot/gh-3602 into gh-pr/3602/base 2026-11-30 15:49:39 +00:00 AGit
Owner

@⁠KelboLive on GitHub · 2026-11-30 12:46 UTC · original
KelboLive:fix/census-report-shape → main · +9 −2 · 1 files · 1 commits · merged 2026-11-30 15:47 UTC

Change

startup_memory_srv_diag_check required the census report block to be exactly four lines. #3484
(516a982a9, "census of direct draws not drawn and of clears") added the direct-draw and clear censuses to
the same block, so it is six lines and the check fails on both backends:

AssertionError: census report is not four lines:
x2w-d3d12 memory SRV refusals (slot 70): total 9; ...
x2w-d3d12 memory SRV refused shape 1: ...
x2w-draw token texture nulls: ...
x2w-d3d12 memory SRV writes (slot 70): ...
x2w-render clear census: total 1; shapes 1 (overflow calls 0)
x2w-render clear rtv fmt=28 dim=3 size_log2=3x2x0 ...

The four lines this check is about are unchanged and still in order. The check now validates those four and
then requires every remaining line to be one of the censuses #3484 added, matched by prefix, so the block
is still constrained rather than accepted whole.

Verification

main at 077bff3ac, in-box dev preset, before this change:

startup_memory_srv_diag_warp      ***Failed   1.00 sec
startup_memory_srv_diag_hardware  ***Failed   1.23 sec

After:

1/2 Test #1466: startup_memory_srv_diag_warp .......   Passed    0.94 sec
2/2 Test #1515: startup_memory_srv_diag_hardware ...   Passed    1.20 sec
startup_memory_srv_diag_supported_control_warp         Passed    1.00 sec

The control still passes, and an unexpected line in the block still fails with the new message, so the
relaxation is bounded to the two censuses it names.

Refs #3484.

**@⁠KelboLive** on GitHub · 2026-11-30 12:46 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3602) `KelboLive:fix/census-report-shape` → `main` · +9 −2 · 1 files · 1 commits · merged 2026-11-30 15:47 UTC ## Change `startup_memory_srv_diag_check` required the census report block to be exactly four lines. #3484 (`516a982a9`, "census of direct draws not drawn and of clears") added the direct-draw and clear censuses to the same block, so it is six lines and the check fails on both backends: ``` AssertionError: census report is not four lines: x2w-d3d12 memory SRV refusals (slot 70): total 9; ... x2w-d3d12 memory SRV refused shape 1: ... x2w-draw token texture nulls: ... x2w-d3d12 memory SRV writes (slot 70): ... x2w-render clear census: total 1; shapes 1 (overflow calls 0) x2w-render clear rtv fmt=28 dim=3 size_log2=3x2x0 ... ``` The four lines this check is about are unchanged and still in order. The check now validates those four and then requires every remaining line to be one of the censuses #3484 added, matched by prefix, so the block is still constrained rather than accepted whole. ## Verification `main` at `077bff3ac`, in-box dev preset, before this change: ``` startup_memory_srv_diag_warp ***Failed 1.00 sec startup_memory_srv_diag_hardware ***Failed 1.23 sec ``` After: ``` 1/2 Test #1466: startup_memory_srv_diag_warp ....... Passed 0.94 sec 2/2 Test #1515: startup_memory_srv_diag_hardware ... Passed 1.20 sec startup_memory_srv_diag_supported_control_warp Passed 1.00 sec ``` The control still passes, and an unexpected line in the block still fails with the new message, so the relaxation is bounded to the two censuses it names. Refs #3484.
#3482 added the direct-draw and clear censuses to the same report block, so it is six lines
where startup_memory_srv_diag_check expected four. The check failed on both backends and main is
red at 077bff3ac.

Validate the four lines the check is about, in order, and require any remaining line to be one of
those censuses by prefix, so the block is still constrained rather than accepted whole.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 12:51:35 +00:00
github-bot changed target branch from main to gh-pr/3602/base 2026-11-30 15:49:37 +00:00
github manually merged commit 47dbc782ae into gh-pr/3602/base 2026-11-30 15:49:39 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-30 15:47 UTC · original · approved these changes

Independent Debug check on 47dbc782: built startup_stream_consumer and d3d12_xs_shim, then ran ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_memory_srv_diag_'. WARP, RTX hardware and the supported-view WARP control passed 3/3. The four existing assertions still apply in order, and the parser permits only the clear census prefixes after them.

**@⁠R0Y00** on GitHub · 2026-11-30 15:47 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3602#pullrequestreview-6115382712) · **approved these changes** Independent Debug check on `47dbc782`: built `startup_stream_consumer` and `d3d12_xs_shim`, then ran `ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_memory_srv_diag_'`. WARP, RTX hardware and the supported-view WARP control passed 3/3. The four existing assertions still apply in order, and the parser permits only the clear census prefixes after them.
This discussion has been locked. Commenting is limited to contributors.
No description provided.