linux CI + NVIDIA: agc_driver_emulated_color_compare fails on main since #3438 (8-bit sRGB compare refused on the decode path) #3526

Closed
opened 2026-10-11 12:25:02 +00:00 by orishamir · 1 comment
orishamir commented 2026-10-11 12:25:02 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-11T12:25:02Z.


agc_driver_emulated_color_compare fails on main since #3438 (merged 11:43Z), @ivica00, in CI's linux job and on NVIDIA:

ShaderRecompiler::Recompile: samples or gathers an sRGB image the device cannot sample, which is not implemented
  • CI linux (lavapipe, LLVM 20.1.2), run 38136987742 on daa13905c: fails at the first 8 srgb row (no format=128 texture is created before the refusal). The windows job skips the test (no GPU).
  • Windows 11 + RTX 4080 (driver 616.56), main 8b679d8d: 3 full suites + 3 isolated runs fail; it passed here on 0f863c10, before #3438. The RTX 4080 reports no format features for VK_FORMAT_R8G8_SRGB (R8_SRGB and R8G8_UNORM are sampled; vulkaninfo JSON), so here the 8 srgb rows pass and the refusal comes at the first 8_8 srgb row: with only EmulatedColorCompare.cpp:355-356 removed the test passes 3/3, restored it fails again. With APS5_SRGB_SHADER_DECODE=1 the refusal moves to the first 8 srgb row, as on lavapipe.

Mechanism: SrgbDecodeFormats (Graphics/src/TextureFormat.cpp:116) puts an 8-bit sRGB format the device cannot sample on the shader-decode path, and the compare, a sampler op, is refused at ResourceMaterializer.cpp:196, before the ReferenceZero select from #3438 is emitted. It is the refusal RequireRefused in ImageSrgbLoad.cpp expects for sample/gather on that path.

Whether the test should expect the refusal where the device decodes the format, or the constant-zero compare should not need the decode path, is your call.

AI-assisted: yes (Claude Code Opus 5.5 xhigh)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5801023020 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3526). Originally posted by [orishamir](https://github.com/orishamir) on 2026-10-11T12:25:02Z. --- `agc_driver_emulated_color_compare` fails on `main` since #3438 (merged 11:43Z), @ivica00, in CI's linux job and on NVIDIA: ``` ShaderRecompiler::Recompile: samples or gathers an sRGB image the device cannot sample, which is not implemented ``` - CI linux (lavapipe, LLVM 20.1.2), run 38136987742 on daa13905c: fails at the first `8 srgb` row (no `format=128` texture is created before the refusal). The windows job skips the test (no GPU). - Windows 11 + RTX 4080 (driver 616.56), `main` 8b679d8d: 3 full suites + 3 isolated runs fail; it passed here on 0f863c10, before #3438. The RTX 4080 reports no format features for `VK_FORMAT_R8G8_SRGB` (`R8_SRGB` and `R8G8_UNORM` are sampled; vulkaninfo JSON), so here the `8 srgb` rows pass and the refusal comes at the first `8_8 srgb` row: with only `EmulatedColorCompare.cpp:355-356` removed the test passes 3/3, restored it fails again. With `APS5_SRGB_SHADER_DECODE=1` the refusal moves to the first `8 srgb` row, as on lavapipe. Mechanism: `SrgbDecodeFormats` (`Graphics/src/TextureFormat.cpp:116`) puts an 8-bit sRGB format the device cannot sample on the shader-decode path, and the compare, a sampler op, is refused at `ResourceMaterializer.cpp:196`, before the `ReferenceZero` select from #3438 is emitted. It is the refusal `RequireRefused` in `ImageSrgbLoad.cpp` expects for sample/gather on that path. Whether the test should expect the refusal where the device decodes the format, or the constant-zero compare should not need the decode path, is your call. AI-assisted: yes (Claude Code Opus 5.5 xhigh)
Amoenus commented 2026-10-11 13:33:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-11T13:33:06Z.


Additional RTX5080 Windows reproduction on a11-based integration (2026-10-11)

Reproduced agc_driver_emulated_color_compare failing with the same refusal on Windows11 Enterprise26200 / RTX5080 (driver32.0.16.1062), WinLibs GCC15.2r7, Release/BUILD_TESTING=ON. Exact integration f7a2bf691 is based on maina11c8f7f and carries kernel/math/D64 and sampled-MSAA proposals; not unchanged main. Full build/all122 libraries pass. Full CTest:835pass,5skip,2fail of842; this is one of the two failures. A following serial isolated recheck reproduces it on the first run (not a GPU timeout).

Texture ... 2x2 mips=1 layers=1 dim=1 tile=0 format=128 vk=15 element=1
ShaderRecompiler::Recompile: samples or gathers an sRGB image the device cannot sample, which is not implemented
$env:ANYPS5_GPU='RTX 5080'
$env:ANYPS5_REQUIRE_VULKAN='1'
$env:ANYPS5_NO_SHADER_CACHE='1'
ctest --test-dir build-review -R '^agc_driver_emulated_color_compare$' --parallel 1 --timeout 30 --output-on-failure

The runs also set ANYPS5_REQUIRE_MSAA_ALL=1 for the integration's MSAA tests. I have not measured the RTX5080 format-feature table, isolated the failing matrix row, bisected #3438, or validated #3532/#3540. This confirms a matching refusal on another NVIDIA host, not an independent root-cause or fix claim. Logs/XML are retained outside the repository. No duplicate issue or PR. AI-assisted validation/reporting: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109566645 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3526#issuecomment-6109566645). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-11T13:33:06Z. --- ### Additional RTX5080 Windows reproduction on a11-based integration (2026-10-11) Reproduced `agc_driver_emulated_color_compare` failing with the same refusal on Windows11 Enterprise26200 / RTX5080 (driver32.0.16.1062), WinLibs GCC15.2r7, Release/BUILD_TESTING=ON. Exact [integration f7a2bf691](https://github.com/Amoenus/AnyPS5/commit/f7a2bf691d8237b8ccaab4cfd526213a90de13b1) is based on maina11c8f7f and carries kernel/math/D64 and sampled-MSAA proposals; **not unchanged main**. Full build/all122 libraries pass. Full CTest:835pass,5skip,2fail of842; this is one of the two failures. A following serial isolated recheck reproduces it on the first run (not a GPU timeout). ```text Texture ... 2x2 mips=1 layers=1 dim=1 tile=0 format=128 vk=15 element=1 ShaderRecompiler::Recompile: samples or gathers an sRGB image the device cannot sample, which is not implemented ``` ```powershell $env:ANYPS5_GPU='RTX 5080' $env:ANYPS5_REQUIRE_VULKAN='1' $env:ANYPS5_NO_SHADER_CACHE='1' ctest --test-dir build-review -R '^agc_driver_emulated_color_compare$' --parallel 1 --timeout 30 --output-on-failure ``` The runs also set ANYPS5_REQUIRE_MSAA_ALL=1 for the integration's MSAA tests. I have not measured the RTX5080 format-feature table, isolated the failing matrix row, bisected #3438, or validated #3532/#3540. This confirms a matching refusal on another NVIDIA host, not an independent root-cause or fix claim. Logs/XML are retained outside the repository. No duplicate issue or PR. AI-assisted validation/reporting: Codex.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#3526
No description provided.