test(agc): skip plane-bias reduction cases without min/max sampler reduction #9125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9125"
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 ryanc2112 on 2026-10-21T12:41:52Z.
What
agc_driver_image_plane_bias_on_single_level_volumedraws its min and max sampler-reduction cases on every device. On a device withoutsamplerFilterMinmaxthe driver refuses them, so the test fails instead of skipping those cases:This gates the two reduction cases on
VulkanDevice::SamplerFilterMinmax(), the checkagc_driver_image_sample_reductionalready uses, and prints that they were skipped. The bias, FORCE_DEGAMMA and refusal cases still run on every device. Test-only; no driver or recompiler change.Tested
SteamOS 3.8.28 (Arch distrobox), GCC 16.2.1, Release,
main2f161d4f3, withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation(the loader inserts the layer),ctest -R '^agc_driver_image_plane_bias_on_single_level_volume$' -V:main: Failed, with the refusal above.the device has no min/max sampler reduction with component mapping: the reduction cases are skipped.VUID-lines in either log.Devices with
samplerFilterMinmax(lavapipe in CI included) take the unchanged branch.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
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-21T22:45:34Z.
Review: COMMENTED
This gate matches a real device on Apple silicon: MoltenVK does not expose min/max sampler reduction, so the reduction cases are the reason
agc_driver_image_plane_bias_on_single_level_volumefails there without this PR.Machine: Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704. Release,
BUILD_TESTING=ON.Base/method: PR #8658
feat/macos-port@4ebe71f2e5(currentmain0c6a5bd593+ the macOS port), notmain. This PR applied on top, clean.Without this PR (base): the test fails on both drivers with the exact message this change guards against:
With this PR:
agc_driver_image_plane_bias_on_single_level_volumepasses 3/3 (--repeat until-fail:3) on both drivers; the reduction cases are skipped and the rest of the test runs:So on a device without
samplerFilterMinmax+ component mapping the test now exercises the non-reduction path and passes, instead of aborting on the first reduction draw.device->SamplerFilterMinmax()is the right gate here.GPUs tested: Apple M2 Max (MoltenVK 1.4.2; and MoltenVK main + SPIRV-Cross #2704).
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.