tests: four main failures are stale expectations after the shader merges, not the async-compute change #3621

Closed
opened 2026-11-30 15:46:53 +00:00 by KelboLive · 2 comments
KelboLive commented 2026-11-30 15:46:53 +00:00 (Migrated from github.com)
Contributor

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


tests: four main failures are stale expectations after the shader merges, not the async-compute change

Summary

A full in-box run of the non-hardware suite on 35a3f6d54 (2,274 tests) gives 2,212 passed, 57 skipped,
5 failed. One is the census report fixed by #3602. The other four are pre-existing expectations that
recent shader merges invalidated.

I checked attribution rather than assuming: all four fail identically at 077bff3ac, which is before
#3451's worker-thread compute translation, so the async-compute change introduced none of them.

ctest --preset dev --no-tests=error --parallel 4 -E '_hardware$'
99% tests passed, 5 tests failed out of 2274

ctest --preset dev -R '^(native_direct_mesh|startup_image_sample_b_flow_warp|startup_image_get_lod_flow_warp|startup_gfx2hlsl_cvt_off_f32_i4_warp)$'
0% tests passed, 4 tests failed out of 4      # same four, at 077bff3ac

Environment: Windows 10.0.26200, RTX 4070 Ti SUPER driver 32.0.16.2101, in-box dev preset.

1. native_direct_mesh: a refusal became a clamp

tests/native_direct_mesh_check.py:521 expects too-many-primitives to be refused with
exceeds declared range. It now compiles (returncode 0, 2,386 bytes). #3537 (617ce7cf9) replaced that
refusal with a clamp:

-                if (!upper_bound.count(input_v) || ... ||
-                    upper_bound.at(input_p)>(std::min)(layout.max_primitives,layout.threads))
-                    refuse(pc,"mesh count exchange exceeds declared range or lacks an unsigned bound");
+                const auto clamp=[&](const string& value,unsigned limit) {
+                    return alu.select(alu.cmp("ugt",value,to_string(limit)),to_string(limit),value);
+                };

The string now exists only in the test. Either the case should assert the clamped value, or it should go.

2 and 3. startup_image_sample_b_flow_warp, startup_image_get_lod_flow_warp: parser versus emitted HLSL

Both fail in mutants() before any pixel check runs:

File "tests/startup_image_sample_b_flow_check.py", line 387, in mutants
    out.append(('without the branch write', hlsl.replace(write.group(0), '')))
AttributeError: 'NoneType' object has no attribute 'group'

write = re.search(r'\n\s*if \(exec & 1\) v2 = U\(-?0\.5 \+ F\(v2\)\);', hlsl) no longer matches the
generated HLSL, so the mutation cannot be built. The tests report their normal first lines and then die in
the parser, so the shader may well be correct — the fixture needs the new shape.

4. startup_gfx2hlsl_cvt_off_f32_i4_warp: a program that is now accepted

The failure is an assertion whose message is (0, <generated HLSL>): the case expected a refusal and the
translator returned success. The generated text uses minmax_zero32 from tools/pixel_aot.py, which is the
signed-zero min/max lowering, so the case looks like a refusal that the newer lowering made supported.

Suggested resolution

All four are test-only; none is a translator defect that I can see. They are the same class as #3602: a
behaviour change landed and the fixture that pins the old behaviour was not updated in the same change.
Happy to send them as one PR per test, or one PR for the two flow fixtures if that is preferred.

The count also says something about CI: none of these four runs in the pr preset, so each merged green and
only failed on main. #3606 just added the slot 86 heap checks to that preset, which is the mechanism;
this is the case for extending it to the shader fixtures too (#3554).

Refs #3537, #3602, #3606, #3554.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6700210732 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3621). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T15:46:53Z. --- # tests: four `main` failures are stale expectations after the shader merges, not the async-compute change ## Summary A full in-box run of the non-hardware suite on `35a3f6d54` (2,274 tests) gives 2,212 passed, 57 skipped, 5 failed. One is the census report fixed by #3602. The other four are pre-existing expectations that recent shader merges invalidated. I checked attribution rather than assuming: all four fail identically at `077bff3ac`, which is **before** #3451's worker-thread compute translation, so the async-compute change introduced none of them. ```powershell ctest --preset dev --no-tests=error --parallel 4 -E '_hardware$' 99% tests passed, 5 tests failed out of 2274 ctest --preset dev -R '^(native_direct_mesh|startup_image_sample_b_flow_warp|startup_image_get_lod_flow_warp|startup_gfx2hlsl_cvt_off_f32_i4_warp)$' 0% tests passed, 4 tests failed out of 4 # same four, at 077bff3ac ``` Environment: Windows 10.0.26200, RTX 4070 Ti SUPER driver 32.0.16.2101, in-box dev preset. ## 1. `native_direct_mesh`: a refusal became a clamp `tests/native_direct_mesh_check.py:521` expects `too-many-primitives` to be refused with `exceeds declared range`. It now compiles (`returncode 0`, 2,386 bytes). #3537 (`617ce7cf9`) replaced that refusal with a clamp: ```diff - if (!upper_bound.count(input_v) || ... || - upper_bound.at(input_p)>(std::min)(layout.max_primitives,layout.threads)) - refuse(pc,"mesh count exchange exceeds declared range or lacks an unsigned bound"); + const auto clamp=[&](const string& value,unsigned limit) { + return alu.select(alu.cmp("ugt",value,to_string(limit)),to_string(limit),value); + }; ``` The string now exists only in the test. Either the case should assert the clamped value, or it should go. ## 2 and 3. `startup_image_sample_b_flow_warp`, `startup_image_get_lod_flow_warp`: parser versus emitted HLSL Both fail in `mutants()` before any pixel check runs: ``` File "tests/startup_image_sample_b_flow_check.py", line 387, in mutants out.append(('without the branch write', hlsl.replace(write.group(0), ''))) AttributeError: 'NoneType' object has no attribute 'group' ``` `write = re.search(r'\n\s*if \(exec & 1\) v2 = U\(-?0\.5 \+ F\(v2\)\);', hlsl)` no longer matches the generated HLSL, so the mutation cannot be built. The tests report their normal first lines and then die in the parser, so the shader may well be correct — the fixture needs the new shape. ## 4. `startup_gfx2hlsl_cvt_off_f32_i4_warp`: a program that is now accepted The failure is an assertion whose message is `(0, <generated HLSL>)`: the case expected a refusal and the translator returned success. The generated text uses `minmax_zero32` from `tools/pixel_aot.py`, which is the signed-zero min/max lowering, so the case looks like a refusal that the newer lowering made supported. ## Suggested resolution All four are test-only; none is a translator defect that I can see. They are the same class as #3602: a behaviour change landed and the fixture that pins the old behaviour was not updated in the same change. Happy to send them as one PR per test, or one PR for the two flow fixtures if that is preferred. The count also says something about CI: none of these four runs in the `pr` preset, so each merged green and only failed on `main`. #3606 just added the slot 86 heap checks to that preset, which is the mechanism; this is the case for extending it to the shader fixtures too (#3554). Refs #3537, #3602, #3606, #3554.
lukaslw-lab commented 2026-11-30 15:50:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T15:50:30Z.


@KelboLive, item 1 (native_direct_mesh) is fixed in #3616, which makes the test expect #3537's clamp instead of the old refusal. The test passes on this host with #3616 applied (ctest -R "^native_direct_mesh$": 1/1 passed); #3619 also depends on it.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7283682398 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3621#issuecomment-7283682398). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T15:50:30Z. --- @KelboLive, item 1 (`native_direct_mesh`) is fixed in #3616, which makes the test expect #3537's clamp instead of the old refusal. The test passes on this host with #3616 applied (`ctest -R "^native_direct_mesh$"`: 1/1 passed); #3619 also depends on it.
KelboLive commented 2026-11-30 17:47:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T17:47:05Z.


All four cases are fixed:

  • native_direct_mesh: #3616 (9cb905e4f), with a stronger assertion than mine — it checks the clamped values reach setMeshOutputCounts.
  • startup_image_sample_b_flow_warp, startup_image_get_lod_flow_warp and startup_gfx2hlsl_cvt_off_f32_i4_warp: #3622 (a14423129), the f-suffixed literal patterns.

Verified on hardware at bee9c64d9: startup_gfx2hlsl_cvt_off_f32_i4_hardware 1.98 s, startup_image_sample_b_flow_hardware 13.57 s, startup_image_get_lod_flow_hardware 6.25 s, all passed.

The remaining failure from the same sweep, startup_compute_dispatch_sampler_heap_hardware, was a separate regression from #3451 and is fixed by #3626 — reported and closed in #3629.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7286839843 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3621#issuecomment-7286839843). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T17:47:05Z. --- All four cases are fixed: - `native_direct_mesh`: #3616 (`9cb905e4f`), with a stronger assertion than mine — it checks the clamped values reach `setMeshOutputCounts`. - `startup_image_sample_b_flow_warp`, `startup_image_get_lod_flow_warp` and `startup_gfx2hlsl_cvt_off_f32_i4_warp`: #3622 (`a14423129`), the `f`-suffixed literal patterns. Verified on hardware at `bee9c64d9`: `startup_gfx2hlsl_cvt_off_f32_i4_hardware` 1.98 s, `startup_image_sample_b_flow_hardware` 13.57 s, `startup_image_get_lod_flow_hardware` 6.25 s, all passed. The remaining failure from the same sweep, `startup_compute_dispatch_sampler_heap_hardware`, was a separate regression from #3451 and is fixed by #3626 — reported and closed in #3629.
Sign in to join this conversation.
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#3621
No description provided.