AGC: agc_driver_mesh_barycentric_emulation fails since #9193 on devices with mesh shaders and VK_KHR_fragment_shader_barycentric #12121
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 maskym on 2026-10-27T21:57:11Z.
What happens
Since #9193 (merge
6f7cb75291),agc_driver_mesh_barycentric_emulationfails on a device that has both mesh shaders andVK_KHR_fragment_shader_barycentric:It passed on
main2ee8e9751a(before the merge) and fails onmaine0cd1259a9(after it) on the same machine, 3 of 3 runs each way (the failure is deterministic, 0.3-0.6 s per run).Title, test or build step
agc_driver_mesh_barycentric_emulation,ctest --test-dir build -R '^agc_driver_mesh_barycentric_emulation$' -V. No title involved.AnyPS5 commit
e0cd1259a9(fails),2ee8e9751a(passes)System
Windows 11 26300, Intel i7-12700K, NVIDIA GeForce RTX 2070 SUPER (vendor 0x10de, device 0x1e84), Vulkan loader 1.4.357 from the NVIDIA driver, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh), Release,
BUILD_TESTING=ON. Also fails with the Khronos validation layer loaded (nightly 1.4.366); noVUID-is reported by the test.Steps to reproduce
Build
mainat or after6f7cb75291on a device that exposes mesh shaders andVK_KHR_fragment_shader_barycentric, then run the test above.Log
What was checked
core/libs/prx/libSceAgcDriver/tests/execution/MeshBarycentricEmulation.cppline 116-117 takesdevice.Target()and clearsfragmentShaderBarycentricEnabledto force the emulation path, then line 156 requirespixelResult.barycentricEmulation.active.fragmentBarycentricBuiltins(VulkanDevice.cppline 1344 sets it fromfragmentShaderBarycentric; line 4048 copies it into the target), andHostInterpolationChecker::Lowernow takesbarycentricBuiltins: with it set, I/J are read fromBaryCoordKHRand no emulation is needed, soactiveis false. The mesh test never clears that flag, so on a device with the extension the target says "feature disabled, built-ins available", whichShaderDeviceProfile.cppline 74 treats as inconsistent for device-made targets.PixelBarycentricEmulation.cppline 89 setstarget.fragmentBarycentricBuiltinsexplicitly for each case and was adapted in #9193; the mesh test was not. Addingtarget.fragmentBarycentricBuiltins = false;after line 117 of the mesh test makes it pass 3 of 3 runs on this device; whether the test or the recompiler (treating a disabled feature as no built-ins) should change is for the #9193 authors to decide.agc_driver_mesh_barycentric_emulationas skipped on both of its platforms: MoltenVK has noVK_EXT_mesh_shader, and the test skips llvmpipe's mesh compiler (MeshBarycentricEmulation.cpplines 277-282). CI runs the GPU tests on lavapipe only, so the test had not run on any device since the change until this one (Vulkan features ... mesh=1in its log).AI-assisted: yes (Claude Code); the runs, the numbers and the line references above were checked on this machine.