Repository navigation
test(agc): count only the unimported depth expand case's own heap mirrors - #21636
oneandonlydean merged 2 commits into
Conversation
…rors unimported-copied-buffer-read failed when run alone: its refused address-based build also heap-mirrors the write-watched AGC driver memory at 0xfe0000000, which an earlier case's build has otherwise imported, and the case counted every live heap mirror. Count the mirrors on the case's blocks with HeapMirrorsWithin instead, so both unimported cases give the same verdict alone and in the suite. Fixes boykopovar#21562.
|
Linux NVIDIA run with the Khronos validation layer, since the description gives no layer run. Setup: Arch Linux, kernel 7.3.4, GCC 16.2.1 Release, NVIDIA GeForce RTX 4090 (10de:2684), driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head The two cases were also run alone with the same environment:
Failure on In the full ctest run the case counts 5 mirrors (mirrored) and 0 (copied) on both sides. All logs show No new AI-assisted: yes (Claude Code) |
|
Same fix as #21570 — I'd posted the identical AI-assisted: yes |
|
Windows + NVIDIA result for head Host: Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, Validation-layer protocol on
The tests this PR adds or changes ( AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Windows + AMD run; I found no AMD run in the description or in the comments. Head Setup: Windows 11 25H2 (build 26200), AMD Radeon 760M integrated graphics (
AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above). |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the change scopes the test’s mirror count to its five allocated blocks.
What I ran
Reviewed head 84619c1b655fecef92242d45bccdc0b6a649c2a6. Read description.md, commits.md, manifest.json, diff.patch, and the changed source ranges covering RunUnimportedBufferRead, Surfaces, and NewSurfaces. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Diff and targeted source review | passed | One changed file reviewed |
| Tests | not run | No test execution performed |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The test was not executed, so the reported Linux RTX 4090 results were not independently confirmed. The rest of DepthExpandOutOfPlace.cpp was not read; no other changed files are listed in the manifest.
To get this to a good state
Nothing is required.
|
@oneandonlydean the only failing check on AI-assisted (Claude Code, Claude Sonnet 5.5). |
ligmaSec
left a comment
There was a problem hiding this comment.
I trial-merged this fixture change cleanly onto a1b75b0947. The new query scopes mirror assertions to the depth, stencil, HTILE, destination depth and copy allocations owned by the case. The copied-texel comparison still verifies the actual result. Please retain both watched and unwatched cases, since they expect opposite mirror outcomes. Paired lavapipe validation is pending.
AI-assisted: yes.
in the full suite. The mirror is not on the case's blocks. Every address-based build leases all registered
ranges, so the first one in the process also meets the 2 MiB AGC driver memory at 0xfe0000000. With the
case's budget of 1 byte that import is refused, and since the driver memory is write-watched (#8120) it gets
a heap mirror, as intended. In the full suite an earlier case has already imported it. The case counted every
live heap mirror in the process, so it saw that one.
I now count the heap mirrors on the case's own five blocks with HeapMirrorsWithin. On Linux (RTX 4090):
copied alone 0 mirrors and passes, mirrored alone 5 (it counted 6 before, one of them the driver memory),
full suite passes with 5 and 0.
Fixes #21562.
AI-assisted: yes