feat(agc): sample 8 and 8_8 sRGB textures through an RGBA8 sRGB copy #6054
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6054"
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 Dextroid17 on 2026-10-14T20:56:40Z.
What
On a Vulkan device that cannot sample R8_SRGB or R8G8_SRGB, 8_SRGB and 8_8_SRGB textures were decoded in the shader. A shader decode runs after the sampler has filtered, so bilinear and gather results were wrong: the sRGB decode has to come before the filter. This samples those textures through an RGBA8 UNORM image viewed as RGBA8 sRGB, filled by a one-to-one blit of the R8 or RG8 texels (a snapshot's upload, or a storage image's texels, refreshed when its Version changes). The sampler then decodes and filters in the right order.
APS5_SRGB_SHADER_DECODE=1forces the old path.CanSrgbExpandFrom).SampledTextureMemory.Relation to #5371: it decodes in the shader for direct single-mip 2D images. This PR decodes before filtering through the device for the same formats. They can coexist: the shader path stays for devices that cannot blit and under the flag. Happy to rebase or drop whichever the maintainers prefer.
Docs:
docs/dev/debt/shader.mdandlibSceAgcDriver.mdupdated.Tested
Linux (CachyOS, kernel 7.2.9), lavapipe only. The CI device is lavapipe; no real GPU and no title or homebrew were run.
ImageSrgbSampleCopy: point, bilinear and gather on 8_SRGB and 8_8_SRGB including the second channel. Bilinear of a 0/255 pair must be 0.5 (filtering before decoding would give 0.21). A pending-storage-image case (store, sample, second store with different data, sample) checks the Version refresh.APS5_SRGB_SHADER_DECODE=1makes the new test exit 1. DisablingrefreshSrgbExpandmakes the storage case fail ("thread 4 sampled 0.0, expected 0.0144").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 github-actions[bot] on 2026-10-14T21:02:34Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/CMakeLists.txtL1890core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppL240, L388-389core/libs/prx/libSceAgcDriver/CMakeLists.txtL1890core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppL388-389core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppL3517-3518Some 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.
core/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/shader.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Context.hppdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/Texture.hppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppdocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/libSceAgcDriver.mddocs/dev/debt/shader.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/debt/libSceAgcDriver.mdImported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-14T23:16:59Z.
Status check on the current head 913052267, merged into main
6239ceffc(66 commits ahead of this PR's base): no conflicts, and the merge builds.Run on lavapipe (llvmpipe, Mesa 26.2.4, LLVM 23.1.1; CachyOS, Linux 7.2.9; default CMake build with CMAKE_BUILD_TYPE empty, so unoptimized), 3 runs each, all exit 0:
By reading, not run: #4487 (already in this PR's base) gives R8/R8G8 no sRGB twin when
context.srgbDecodeFormatshas their bit (12d07b8ed). This PR leaves that field as the full mask (VulkanDevice.cpp:3437) and narrows only the copy given to the recompiler (:3310), so the two agree.The logs show lavapipe here decodes 8_SRGB/8_8_SRGB in the shader (textures created as R8_UNORM/R8G8_UNORM), and the storage case logs "sRGB copy of storage image", so the copy path ran.
Not checked: a run with the test's source reverted, any other GPU or OS, and any title.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Jacmd on 2026-10-15T11:27:56Z.
Tested on Windows hardware. There's one build break on Windows. Otherwise the PR passes on both GPUs here, but neither GPU takes the new copy path.
Setup: Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON. The PR head913052267was merged intomain8276a1d05with no conflicts.ANYPS5_REQUIRE_VULKAN=1.10de:2684), driver 617.421002:164e, RDNA2 iGPU), AMD proprietary driver 25.10.30.021.
ImageSrgbSampleCopy.cppdoesn't compile with MinGWnearandfarare empty macros in<windows.h>(minwindef.h). Renaming the two locals fixes it, and it's the only change I made:2. Results with that rename
agc_driver_image_srgb_sample_copyagc_driver_image_srgb_load,agc_driver_srgb8_color_target,agc_driver_emulated_color_compare_srgb_decodeAPS5_SRGB_SHADER_DECODE=1samples or gathers an sRGB image the device cannot sample, which is not implemented)All runs used
ANYPS5_NO_SHADER_CACHE=1.Full suite on the 4090: 1,272 of 1,274 passed. The same 15 skips as unmodified
mainon this machine (display, Linux-only and extension skips). The two failures don't look related to this PR:check_main_sync: thePYTHONIOENCODINGcase from #5818agc_shader_disk_cache: timed out at 120 s under--parallel 4, and passed alone in 2.25 s3. Coverage caveat
Both devices report
SAMPLED_IMAGEandSAMPLED_IMAGE_FILTER_LINEARwith optimal tiling forR8_SRGBandR8G8_SRGB. SoSrgbDecodeFormatsreturns 0 andSrgbCopyFormatsreturns 0 on both. The runs above cover:They don't cover the RGBA8 copy itself on hardware. As far as I can tell, there's no switch that forces the copy path on a device that samples these formats natively.
APS5_SRGB_SHADER_DECODE=1only forces the old shader decode. If you want hardware coverage of the copy path, a switch that forces it would let any GPU run it.Tested with Claude Code.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-15T18:31:54Z.
@Jacmd thanks for testing on Windows, and for the fix. Both points are now on the branch:
b6359f04brenamesnearandfartolowandhigh, as in your diff. You are listed as co-author.b29b0476faddsAPS5_SRGB_SHADER_DECODE=copy. It forces the RGBA8 copy for 8_SRGB and 8_8_SRGB on a device that samples those formats natively, as long as it can blit R8 and RG8 to RGBA8. If it cannot, the forced entry fails with its own message. A second ctest entry,agc_driver_image_srgb_sample_copy_forced, runs the same test with it set. The test also checks the selection with a stub device that samples R8_SRGB and R8G8_SRGB natively: withcopyit must select both formats for the copy; unset or with=1, neither. So that check runs even without a GPU. The debt note indocs/dev/debt/shader.mdnames the switch.APS5_SRGB_SHADER_DECODE=1is unchanged.Results on lavapipe (llvmpipe, Mesa 26.2.4, LLVM 23.1.1). The tests ran on
5cc034a6c; the pushedb29b0476fdiffers from it only in the wording of the debt note.5cc034a6cwas merged intomainb7cedd900with no conflicts. Each run used a clean environment (env -iwithHOME,PATH,VK_ICD_FILENAMES,ANYPS5_REQUIRE_VULKAN=1andGALLIUM_OVERRIDE_CPU_CAPS=avx; ctest addsANYPS5_NO_SHADER_CACHE=1). lavapipe cannot sample R8_SRGB or R8G8_SRGB, so on lavapipe both entries take the copy on the device, and the two entries differ only in the stub check.agc_driver_image_srgb_sample_copy,agc_driver_image_srgb_sample_copy_forced,agc_driver_image_srgb_load,agc_driver_srgb8_color_target,agc_driver_emulated_color_compare,agc_driver_emulated_color_compare_srgb_decode: 6/6 passed, 3 runs out of 3.TextureFormat.cppreverted (socopyis ignored), the forced entry fails 3 runs out of 3:selected sRGB copy formats 0 with APS5_SRGB_SHADER_DECODE='copy', expected 3. The unforced entry still passes.On your RTX 4090 or Radeon 610M,
agc_driver_image_srgb_sample_copy_forcedshould now run the copy on hardware. If you have time to run it again, that would cover the case lavapipe cannot: the copy on a GPU that also samples these formats natively.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T19:55:56Z.
Review: COMMENTED
Hardware run of the copy path, for the request above. On this NVIDIA device the copy is taken even without the switch, for 8_8_SRGB.
Ubuntu 26.04 (kernel 7.0.0-38), NVIDIA GeForce RTX 3070, driver 595.99.02, GCC 15.2, Release,
BUILD_TESTING=ON,ANYPS5_GPUset to the 3070 (the log showsSelected GPU name=NVIDIA GeForce RTX 3070 vendor=0x10de). Headb29b0476fmerged ontomain44df21632, no conflicts.vulkaninfo --show-formatson this driver listsR8_SRGBwithSAMPLED_IMAGEandSAMPLED_IMAGE_FILTER_LINEAR, and listsR8G8_SRGBunder "Unsupported Formats". This device is the mixed case: native sampling for 8_SRGB, none for 8_8_SRGB.agc_driver_image_srgb_sample_copyandagc_driver_image_srgb_sample_copy_forced: pass, 3 of 3 runs each.vk=15(R8_SRGB) and the 8_8_SRGB textures asvk=16(R8G8_UNORM). WithAPS5_SRGB_SHADER_DECODE=copy, the 8_SRGB texture becomesvk=9(R8_UNORM), and the storage case logssRGB copy of storage image (guest format 128). Going bySrgbCopyFormats, 8_8_SRGB takes the RGBA8 copy here in both entries, becauseR8G8_SRGBcannot be sampled andR8G8_UNORMcan be blitted.main, the test does not compile (SrgbCopyFormatsis not a member ofAgcDriver::Graphics), as expected for a new function.ctest -R "^agc" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display" -j1: 594 of 595 pass, 3 skipped. The failure isagc_driver_store_over_untracked, which also fails on unmodifiedmainon this machine: 9 of 10 runs with other builds running, all withthe result did not reach a block the CPU left alone. It is the same test as #6347 and #6383, which report it on Windows. On an idle machine,mainpasses 593 of 593 with the same 3 skips.Not run: any title.
GPUs tested: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, Ubuntu 26.04 (kernel 7.0.0-38)
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-16T11:41:39Z.
@jotitadev, thanks for the 3070 run. On the 3070, 8_SRGB samples natively and 8_8_SRGB takes the RGBA8 copy without the switch (going by
SrgbCopyFormats; its textures were created asR8G8_UNORM). Withcopy, 8_SRGB takes it too. lavapipe cannot show that mixed case.The branch is now rebased onto
main3f171d03eas4a6f4df41, and it still merges cleanly intomainaff725bf6. There was a one-line conflict indocs/dev/debt/libSceAgcDriver.md, wheremainadded the PM4 ring entry next to the sRGB one; both entries are kept.Re-run on Linux, lavapipe (llvmpipe, Mesa 26.2.4, LLVM 23.1.1), Release build, clean environment (
env -iwith the lavapipe ICD andANYPS5_REQUIRE_VULKAN=1).agc_driver_image_srgb_sample_copy,agc_driver_image_srgb_sample_copy_forced,agc_driver_image_srgb_load,agc_driver_srgb8_color_target,agc_driver_emulated_color_compareandagc_driver_emulated_color_compare_srgb_decodepass, 6/6, 3 runs out of 3. Not run: any non-lavapipe GPU, any title.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T21:35:48Z.
Checked on lavapipe:
agc_driver_image_srgb_sample_copy,_forced,image_srgb_load,image_sample_force_degammaand the other sRGB tests pass; the new test does not build without the change and fails withAPS5_SRGB_SHADER_DECODE=1. Blit/barrier/layout sequence, the upload image lifetime and the debt entries look right, and the MinGWnear/farfix from @Jacmd is in. Hardware confirmations from @Jacmd (Windows, RTX 4090 / Radeon 610M) and @jotitadev (RTX 3070, mixed case). Merging once the full Build is green.Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-18T12:48:56Z.
Fresh lavapipe run of the current head, after today's push (
192a37d0test,c81cfce7docs).Setup: head
c81cfce7cmerged ontoupstream/main0d078f75d(merges with no conflict), Release,BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON, GCC 16.2.1, devicellvmpipe (LLVM 23.1.1, 256 bits), Mesa 26.2.4,GALLIUM_OVERRIDE_CPU_CAPS=avxas inbuild.yml.sRGB tests,
ctest -R "srgb|degamma" --repeat until-fail:3: 6/6 pass (18/18 runs), among them:agc_driver_image_srgb_sample_copyagc_driver_image_srgb_sample_copy_forcedagc_driver_image_srgb_loadagc_driver_image_sample_force_degammaagc_driver_srgb8_color_targetThe switch decides the path. Same binary,
tests/agc_driver_image_srgb_sample_copy_tests, only the variable changed:APS5_SRGB_SHADER_DECODE=copy: exit 0,image sRGB sample copy tests passedAPS5_SRGB_SHADER_DECODE=1: exit 1,ShaderRecompiler::Recompile: samples or gathers an sRGB image the device cannot sample, which is not implementedSo the forced test only passes through the copy, which matches the lavapipe result above from @adriadam10.
Full suite: 1447/1448 pass. The one failure is
agc_compute_pipeline_replay(replay did not export a pipeline cache header). It fails the same way, 3 of 3, on plainupstream/main0d078f75dwithout this PR, and it passes in the main CI run 39125777568 on the same commit, so it is not from this PR. It is specific to my machine: CI ran Ubuntu 24.04mesa-vulkan-drivers 25.2.8, and I ran Mesa 26.2.4 / LLVM 23.1.1 / GCC 16.2.1, so I have not narrowed it down to Mesa alone.