tests: cover byte Mesh86 material descriptors #3810
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3810"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T01:22:17Z.
Scope\n\nThe shared runtime change now lives on main through #3725 (mesh86_material with byte-descriptor truncation and placed-backing adoption). This PR keeps only the fixture coverage that was unique to it.\n\n## Coverage\n\n ests/startup_mesh86_material_backing.cpp now exercises byte-format material descriptors (stride 1):\n\n- an 18-byte descriptor resolves to the four whole dwords (ytes == 16, offset 0) of the placed backing;\n- a three-byte descriptor is refused with material buffer range has no whole dwords.\n\nThe 18-byte case crosses the rounded-down tail (bytes 16-17 are not addressable through the dword SRV). The shader minimum-read comparison happens later in
ative_mesh86.inl and remains covered by the draw path, not by this resolver fixture.\n\n## Validation\n\n- Branch rebuilt directly on main (
2f2901cb); no runtime files are changed.\n- Build and test on Windows runs startup_mesh86_material_backing_warp and its mutants.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T05:24:38Z.
Review: COMMENTED
I checked the merge against main
20def93d. The merge tree conflicts inCMakePresets.jsonandtests/standin_exports_check.py; the Mesh86 implementation files merge textually. Please carry forward both the existing main checks and the new Mesh86 material-backing registration/contract on the rebased head. Please then rerun the material-backing WARP and hardware cases and the stand-in source check.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T12:02:00Z.
Review: COMMENTED
I built
startup_mesh86_material_backingfrom0839ddccand ranctest --preset dev --no-tests=error -j 1 -V -R '^startup_mesh86_material_backing_'. All six tests passed with zero skips across Microsoft WARP and the RTX 4060 Laptop GPU, including the expected stale-refresh failure and GPU-write provenance controls. Host build 26300.9974, NVIDIA driver 32.0.16.1656, WARP 10.0.26100.9818, D3D12 debug layer off.The new handling is keyed on
InputBufferUse::mesh_material, which Mesh57 now passes too. That means Mesh57 also gets partial-dword truncation, the submitted-GPU-backing path and adoption of non-aliased placed resources. Could you keep the new behavior scoped to Mesh86, or document and cover the Mesh57 cases with a regression fixture if the shared behavior is intended? The current test resolves only the Mesh86 material path.The required Windows job also failed in the inherited
native_direct_meshfixture (+0x34: unmapped graphics export). #3851 has the fixture fix.Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T14:44:08Z.
Review: COMMENTED
Reviewed
3aeb40f7against the maintainer's0839ddcctest report; read the diff, not built here.Verdict: changes requested. The new material-backing behavior is keyed on
InputBufferUse::mesh_material, but Mesh57 passes that use too. Truncating to whole dwords, preferring a submitted GPU backing and adopting a non-aliased placed resource therefore also change the Mesh57 material path, while the new fixture covers only Mesh86.view.bytes < required_bytescheck. Add a control with a byte descriptor whose required read crosses the floored boundary, so the refusal is pinned rather than inferred.mesh86_material; the input-buffer zero-record path is unchanged; the GPU-write provenance check runs before the title snapshot; the adoption failure has a named reason. The PR is clean at this head, but the Mesh57 scope issue is a real behavioral change.The Windows failure in the inherited
native_direct_meshfixture is not caused by this diff; #3851 is the tracking fix.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T19:04:13Z.
Review: COMMENTED
On
256bcded,native_mesh57.inlstill passesInputBufferUse::mesh_material, and the common binder still uses that value for the new truncation and adoption. #3725 now has the separatemesh86_materialuse while leaving the Mesh57 caller on the original path. Let's use #3725 for the shared runtime change so we only land it once. Please identify any additional fixture coverage here that should carry over, especially a required read that crosses the rounded-down span.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-03T01:54:43Z.
Review: APPROVED
Independently verified
01c85822with MSVC Debug on Windows 11 build 26300. This is now a test-only follow-up to #3725.ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^startup_mesh86_material_backing_'passed all six registered cases on WARP and RTX 4060 Laptop (616.56), zero skips. Removing only the dword truncation in the runtime failed both new WARP checks: 18 bytes did not bind as four dwords, and 3 bytes were accepted. With the original runtime restored, WARP passed again.