Repository navigation
test(agc): skip the MSAA retirement storage promotion without shaderStorageImageMultisample - #8604
Conversation
|
The skip line doesn't match std::puts("storage promotion skipped, the device has no shaderStorageImageMultisample");(Checked against main's pattern: the current text doesn't match, and this one does.) Everything else looks right to me: the skip comes after the three cases that still run, and the gate is the same |
|
Thanks, you're right. With the old text, Rerun after the change: skipped 3/3 on the HD 630, passed 3/3 on the GTX 1050 Ti and llvmpipe with the storage case running. |
cdf6c28 to
0089f4f
Compare
jotitadev
left a comment
There was a problem hiding this comment.
This guard covers the feature-absent case (no shaderStorageImageMultisample, the "the device cannot write the multisampled color target's format as a storage image at its sample count" throw). There is a sibling failure it does not cover: a device that has shaderStorageImageMultisample but whose MSAA color target is born storable.
On a device with programmable sample locations but only a 1x1 location grid, MayReorderSamples is true, so MultisampleTarget creates the 4x color target with VK_IMAGE_USAGE_STORAGE_BIT from the start (to write the guest's sample order back). MultisampleTargetStorageView then returns that already-storable image, makeStorable is a no-op, the owner's generation does not change, and StorageRemap fails its promoted.generation != old.generation assertion:
AGC graphics: MSAA storage promotion did not retain its source image
context.storageImageMultisample is true on such a device, so const bool storage = context.storageImageMultisample; if (storage) run.StorageRemap(); still runs StorageRemap and the test still fails. OrderRemap already handles exactly this device: its own guard is MayReorderSamples && SampleOrderStorageFormat != VK_FORMAT_UNDEFINED, which is the born-storable condition. Guarding the storage-promotion case the same way (in addition to the feature guard here) would skip it on born-storable devices too, where there is no promotion to retire.
This is Mesa-dependent, which is why your llvmpipe run (Mesa 25.2.8) passed: on Mesa 26.0.3 lavapipe advertises a 1x1 sample-location grid at every count and the target is born storable, so it fails on main and with this PR applied.
Tested
Ubuntu 26.04, i7-8700, Release, BUILD_TESTING=ON, ANYPS5_NO_SHADER_CACHE=1, device selected with VK_ICD_FILENAMES, run as ./agc_driver_multisample_retirement_tests. I applied this PR's change to agc_driver_multisample_retirement on top of current main a6dcea927.
agc_driver_multisample_retirement |
NVIDIA RTX 3070 (595.99.02) | lavapipe (Mesa 26.0.3, LLVM 21.1.8) |
|---|---|---|
main a6dcea927 |
pass 3/3 | fail 3/3 (MSAA storage promotion did not retain its source image) |
this PR on a6dcea927 |
pass 3/3 (storage case runs) | fail 3/3 (same assertion; storageImageMultisample is true, so StorageRemap still runs) |
Driver log confirms the mechanism:
- NVIDIA:
4 samples 2x2→MayReorderSamplesfalse → target born color-only →StorageRemappromotes and passes. - lavapipe:
4 samples 1x1, 8 samples 1x1→MayReorderSamplestrue → target born storable →makeStorableis a no-op →StorageRemapassertion fails.
GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
|
Thanks, confirmed in the code on #9455 covers that case separately, which keeps each PR to one device condition, and the two merge cleanly. With both applied I ran the test on the three devices I have; results are on #9455, where the HD 630 is the 1x1-grid device without |
0089f4f to
83419fe
Compare
|
Confirmed on a device without Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0 r7, Release, Intel Arc Graphics (Meteor Lake,
No AI-assisted: yes (Claude Code) |
|
@oneandonlydean the |
83419fe to
b447249
Compare
|
Closing for now to free my single open-PR slot; I'll reopen it once another PR of mine is merged. |
…torageImageMultisample
agc_driver_multisample_retirement failed on devices without
shaderStorageImageMultisample (Intel HD 630 on Mesa ANV): StorageRemap
asks for a storage view of the 4x target, and MultisampleTarget.cpp
refuses it ("the device cannot write the multisampled color target's
format as a storage image at its sample count"). The test checked only
the 4x color sample count.
The idle, recorded and sampled remap cases still run on such a device;
only the storage promotion is skipped, and the test reports 77 so ctest
shows it as not fully run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/check_skips.py accepts a Linux skip only when its output has "skipped," before the device reason. The storage promotion skip read "skipped the storage promotion, ...", so a CI device without shaderStorageImageMultisample would fail the skip check although ctest reports 77. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
b447249 to
51b2363
Compare
✅ NVIDIA GPU test: passedPR head
Validation IDs already present on main (3 IDs in 105 tests)Skipped (8)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
What
agc_driver_multisample_retirementfails on devices withoutshaderStorageImageMultisample:StorageRemapasks for a storage view of the 4x target, andMultisampleTarget.cpp:383refuses it. The test checks onlyframebufferColorSampleCountsfor 4x.The idle, recorded and sampled remap cases still run on such a device. Only the storage promotion is skipped, and the test then returns 77, so ctest reports it as skipped rather than passed. The check is
context.storageImageMultisample, the same featurePlaceholderImageShapeForDevicegates multisampled storage on.The skip return comes after the storage case, not before it, so a case added later still runs on these devices. A case that needs a storage view goes inside the guard; one that doesn't goes between it and the skip.
run.StorageSrgbTwin()andrun.OrderRemap()skip their own cases on such a device, andrun.StorageTwin()runs only withcontext.storageImageMultisample, so those lines stay as they are, inmain's order. #9455 (merged) changed lines insideStorageRemap, which this PR doesn't touch.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release,
BUILD_TESTING=ON, rebased onmain750cf6cf4. The PR changes only this test's source, so every other test binary is the same asmain's.agc_driver_multisample_retirement:main750cf6cf4shaderStorageImageMultisamplefalse)ctest -j4runs, 1 alone)StorageSrgbTwinandOrderRemapskip their own casesWith
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(layers 1.3.275),ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1,ctest -V: nowas not found but was requested by env var VK_INSTANCE_LAYERS; VUIDs the same onmain750cf6cf4and this PR (none on the HD 630,VUID-VkDeviceCreateInfo-pNext-pNexton the other two).tools/check_skips.pyaccepts the skip (exit 0 on each HD 630 run's JUnit file).Independently confirmed on Windows with an Intel Arc (Meteor Lake) GPU without
shaderStorageImageMultisampleby @BKlaasWerkman (comment above, on an earlier base).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code