test(agc): skip packed float blend and sparse levels without the features they need #16984
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16984"
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 boykopovar/AnyPS5. Originally posted by peacocksir on 2026-11-08T04:06:19Z.
What
agc_driver_packed_float_blendandagc_driver_texture_sparse_levelsfailed instead of skipping on a device withoutshaderStorageImageReadWithoutFormatorshaderResourceMinLod(#16968, Intel UHD 770). The 11_11_10 float blend reads its color target in the pixel shader without a format, and the sparse levels test samples with a LOD clamp, so the recompiler refuses their shaders on such a device (SpirvDescriptors.cpp:241,SpirvImageEmitter.cpp:1856). The refusals are right; the tests just didn't check for the features first.Now:
PackedFloatBlend.cppreturnsVulkanTestSkippedwhen the device target lacksCapabilityStorageImageReadWithoutFormat, inmainand in the--benchmark-overdrawpath, after the existing pixel interlock check.TextureSparseLevels.cppreturnsVulkanTestSkippedwhen the target lacksCapabilityMinLod, after the existing BC /VK_EXT_image_view_min_lodcheck.VK_EXT_image_view_min_lodalone isn't enough: the device in #16968 passes that check and is then refused because the sampling shader clamps its LOD.The checks and messages are the ones
UnclampedNormalizedBlend.cpp,PackedUnorm4444PartialWrite.cppandImageSampleLodClamp.cppalready use. On a device that skips, the parts of these two tests that don't need the feature (the packed-format assertions, the sparse cleared-texture check) no longer run either;CheckPlans()in the sparse test still runs before the device is opened.Tested
Head
3c6c68bf5bonmain13b19a1dca. The Windows runs used the same commit on the earlier base3aa0ac20df(62ecb3da30); neither test file,VulkanTestDevice.hpp, the two recompiler refusals norVulkanDevice.cppchanged between the two bases. Both sides of every run usedANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layerandctest --test-dir build -R '^agc_driver_(packed_float_blend|texture_sparse_levels)$' -V. Every log shows the loader insertingVK_LAYER_KHRONOS_validation, none containswas not found but was requested by env var VK_INSTANCE_LAYERS, and none containsVUID-.Windows 10 22H2 (19045.6466), WinLibs GCC 15.2.0 r7 UCRT, Release, Vulkan SDK 1.4.363.1 validation layer, implicit layers disabled (
VK_LOADER_LAYERS_DISABLE=~implicit~). One PC with both GPUs, selected withANYPS5_GPU, 3 runs per GPU and side:mainshaderStorageImageReadWithoutFormat/shaderResourceMinLodstorage image reads without a format are unavailable on the target deviceandopcode=ImageSampleRaw reason=clamps its LOD, which needs the device's shaderResourceMinLodskipped, the device lacks shaderStorageImageReadWithoutFormatandskipped, the device has no shaderResourceMinLod11_11_10 float blend tests passed: ...,sparse texture levels tests passed)The Intel GPU and driver are the ones in #16968.
Ubuntu 24.04, GCC 13.3.0, Release, lavapipe (Mesa 25.2.8, LLVM 20.1.2), Khronos validation layer 1.4.335 built from source.
main13b19a1dcaand3c6c68bf5bidentical (also at3aa0ac20df/ 62ecb3da30):packed_float_blendpasses,texture_sparse_levelsskips (the device has no BC texture compression or VK_EXT_image_view_min_lod, as onmain), 2/2.agc_driver_packed_float_blend_tests.exe --benchmark-overdraw(not a ctest test) on the Intel UHD 770, same PC and environment, with ctest'sPATHandWORKING_DIRECTORY:mainexits 1 withSPIR-V module emission failed: storage image reads without a format are unavailable on the target device; the branch exits 77 withskipped, the device lacks shaderStorageImageReadWithoutFormat. Not run on the RTX 4060.python3 tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pycouldn't compare only #9748, which conflicts withmainand also carriesPackedFloatBlend.cpp; its copy of that file is byte-identical tomain's (it includes #9020's commit), so it doesn't touch these lines. #9335 also lists the file for the same reason, and its copy at65ad383ca0is identical tomain's too.Not tested: macOS / MoltenVK, AMD, Linux on a hardware GPU. No full
ctestrun; only these two tests are affected.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)Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-08T08:57:09Z.
Review: APPROVED
The two capability checks match the Vulkan features the tests need (shaderStorageImageReadWithoutFormat and shaderResourceMinLod), and TargetHasCapability reads the target's supported SPIR-V capabilities. No findings.