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

Merged
KelboLive merged 1 commit from upstream-pr/3602 into main 2026-11-30 15:47:29 +00:00
KelboLive commented 2026-11-30 12:46:29 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T12:46:29Z.


Change

startup_memory_srv_diag_check required the census report block to be exactly four lines. #3482
(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 #3482 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 #3482.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5565557001 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3602). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T12:46:29Z. --- ## Change `startup_memory_srv_diag_check` required the census report block to be exactly four lines. #3482 (`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 #3482 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 #3482.
R0Y00 commented 2026-11-30 15:47:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T15:47:23Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6115382712 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3602#pullrequestreview-6115382712). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T15:47:23Z. **Review:** APPROVED --- 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.
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!3602
No description provided.