AGC: image-table test passes with invalid linear filtering of R32_UINT #7699

Closed
opened 2026-10-19 01:11:32 +00:00 by Amoenus · 1 comment
Amoenus commented 2026-10-19 01:11:32 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T01:11:32Z.


Recheck, 2026-10-19

Still present on unmodified main 97d5d7a52aedb162c17ff48c13553af25a9d7ba1: three fresh runs on each of the RTX 5080 and Radeon Graphics pass behaviorally but each logs one magFilter-04553 error. Our refreshed Sonic integration has the same six errors, not additional ones.

#7707 by milescoviello resolves this validation case in our current-main composition: its corrected test assertion fails on main in 3/3 runs per GPU; applying the implementation produces 3/3 passing image-table tests per GPU with zero VUID/errors/warnings. The related cache-bounds/prepared-graphics tests also pass on both GPUs, plus three CPU shader-memory checks: 21 passing executions total. Full default and explicit runtime builds pass. This validates composition 567c7ecc3945e6df652ed3b85e83a15200cecd76, using PR head 193c540162683175b74a1e8963a5b85f29d58096 on main97d; it is not an unchanged-old-head test or a new Sonic run. AMD's wave32-only per-wave-key subcases remain skipped on subgroup64, as on main. Current main advanced to f6eeca4f5f afterward; that newer composition was not tested here.

Environment and reproduction settings remain those below. The correction is tracked in the existing PR; this issue stays open pending its merge. AI-assisted validation: Codex.

Reproduction on unmodified main

At 0c25997a5a, a clean full Windows relinker/libs build plus agc_driver_image_table_tests succeeds. agc_driver_image_table then returns success in 3/3 runs on each physical GPU, but Khronos validation reports one error per process, six errors total:

Validation Error: [ VUID-vkCmdDispatch-magFilter-04553 ]
vkCmdDispatch(): the sampled image descriptor (Set 0, Binding 10, Index 0,
variable "image_10") uses VK_FILTER_LINEAR with compareEnable VK_FALSE,
but its VK_FORMAT_R32_UINT view lacks
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT.

The descriptor handles are omitted above; the identifier, binding, sampler settings and format are unchanged. No other validation error, warning, whole-test skip or timeout appeared. Device identities and Khronos insertion were verified from each process's loader output. The behavioral exit code alone therefore does not establish valid Vulkan usage.

How to reproduce

Use the repository's full Windows build/toolchain, with BUILD_TESTING=ON, and Khronos validation available:

git checkout 0c25997a5a19dede15c8b0da5fb4bc3683bd14d3
cmake --build build --parallel --target relinker libs agc_driver_image_table_tests
$env:ANYPS5_GPU = 'NVIDIA GeForce RTX 5080'
$env:ANYPS5_REQUIRE_VULKAN = '1'
$env:ANYPS5_NO_SHADER_CACHE = '1'
$env:VK_LAYER_PATH = '<VulkanSDK>/Bin'
$env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation'
$env:VK_LOADER_DEBUG = 'driver,layer'
ctest --test-dir build -V -j1 --timeout 30 --no-tests=error --repeat until-fail:3 -R '^agc_driver_image_table$'

Repeat with ANYPS5_GPU=AMD Radeon(TM) Graphics. Other inherited ANYPS5_*, APS5_* and VK_* overrides were cleared before these runs. Project shader cache was disabled; driver caches were uncontrolled.

Actual device Driver Behavioral passes Validation errors
NVIDIA GeForce RTX 5080 (10de:2c02) 32.0.16.1062 / 610.62 3/3 3, all magFilter-04553
AMD Radeon(TM) Graphics (1002:13c0) 32.0.21036.18 3/3 3, all magFilter-04553

Windows 11 Enterprise 26200; WinLibs GCC 15.2 r7; Vulkan validation 1.4.363. Each test process had a 30-second bound.

Existing context and scope

The integer/linear-sampler problem and a point-copy correction were discussed in merged #757: original report, author's correction and sampler-word checks. The current fixture retains its uint-through-linear-sampler check. These links are context; this report does not establish which current subcase or production path causes the remaining invalid pairing, or that #6417 caused it.

Found while checking our Sonic bring-up composition, then independently reproduced on unmodified main without our fork fixes. No Sonic reproduction, game blocker, wrong texel result, performance claim or proposed semantic fallback is asserted. The actionable gap is valid sampler/image pairing in the existing regression test; an implementation correction should preserve the intended direct/table integer behavior and existing refusal rules.

Searched open/closed issues and PRs for the exact VUID, magFilter, image-table filtering and integer/linear pairing; found the historical #757 discussion but no current issue for this validation result. Original full logs and matching build/test receipts are preserved locally. AI-assisted investigation/report: Codex; author responsible.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5916107654 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7699). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-19T01:11:32Z. --- <!-- codex-7699-main97d-7707-validation-v1 --> ### Recheck, 2026-10-19 Still present on unmodified main `97d5d7a52aedb162c17ff48c13553af25a9d7ba1`: three fresh runs on each of the RTX 5080 and Radeon Graphics pass behaviorally but each logs one `magFilter-04553` error. Our refreshed Sonic integration has the same six errors, not additional ones. **#7707 by milescoviello resolves this validation case in our current-main composition**: its corrected test assertion fails on main in 3/3 runs per GPU; applying the implementation produces 3/3 passing image-table tests per GPU with zero VUID/errors/warnings. The related cache-bounds/prepared-graphics tests also pass on both GPUs, plus three CPU shader-memory checks: 21 passing executions total. Full default and explicit runtime builds pass. This validates composition `567c7ecc3945e6df652ed3b85e83a15200cecd76`, using PR head `193c540162683175b74a1e8963a5b85f29d58096` on main97d; it is not an unchanged-old-head test or a new Sonic run. AMD's wave32-only per-wave-key subcases remain skipped on subgroup64, as on main. Current main advanced to `f6eeca4f5f` afterward; that newer composition was not tested here. Environment and reproduction settings remain those below. The correction is tracked in the existing PR; this issue stays open pending its merge. AI-assisted validation: Codex. <!-- /codex-7699-main97d-7707-validation-v1 --> ### Reproduction on unmodified main At [`0c25997a5a`](https://github.com/boykopovar/AnyPS5/commit/0c25997a5a19dede15c8b0da5fb4bc3683bd14d3), a clean full Windows `relinker`/`libs` build plus `agc_driver_image_table_tests` succeeds. `agc_driver_image_table` then **returns success in 3/3 runs on each physical GPU**, but Khronos validation reports **one error per process, six errors total**: ```text Validation Error: [ VUID-vkCmdDispatch-magFilter-04553 ] vkCmdDispatch(): the sampled image descriptor (Set 0, Binding 10, Index 0, variable "image_10") uses VK_FILTER_LINEAR with compareEnable VK_FALSE, but its VK_FORMAT_R32_UINT view lacks VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT. ``` The descriptor handles are omitted above; the identifier, binding, sampler settings and format are unchanged. No other validation error, warning, whole-test skip or timeout appeared. Device identities and Khronos insertion were verified from each process's loader output. The behavioral exit code alone therefore does not establish valid Vulkan usage. ### How to reproduce Use the repository's full Windows build/toolchain, with `BUILD_TESTING=ON`, and Khronos validation available: ```powershell git checkout 0c25997a5a19dede15c8b0da5fb4bc3683bd14d3 cmake --build build --parallel --target relinker libs agc_driver_image_table_tests $env:ANYPS5_GPU = 'NVIDIA GeForce RTX 5080' $env:ANYPS5_REQUIRE_VULKAN = '1' $env:ANYPS5_NO_SHADER_CACHE = '1' $env:VK_LAYER_PATH = '<VulkanSDK>/Bin' $env:VK_INSTANCE_LAYERS = 'VK_LAYER_KHRONOS_validation' $env:VK_LOADER_DEBUG = 'driver,layer' ctest --test-dir build -V -j1 --timeout 30 --no-tests=error --repeat until-fail:3 -R '^agc_driver_image_table$' ``` Repeat with `ANYPS5_GPU=AMD Radeon(TM) Graphics`. Other inherited `ANYPS5_*`, `APS5_*` and `VK_*` overrides were cleared before these runs. Project shader cache was disabled; driver caches were uncontrolled. | Actual device | Driver | Behavioral passes | Validation errors | | --- | --- | --- | --- | | NVIDIA GeForce RTX 5080 (10de:2c02) | 32.0.16.1062 / 610.62 | 3/3 | 3, all `magFilter-04553` | | AMD Radeon(TM) Graphics (1002:13c0) | 32.0.21036.18 | 3/3 | 3, all `magFilter-04553` | Windows 11 Enterprise 26200; WinLibs GCC 15.2 r7; Vulkan validation 1.4.363. Each test process had a 30-second bound. ### Existing context and scope The integer/linear-sampler problem and a point-copy correction were discussed in merged #757: [original report](https://github.com/boykopovar/AnyPS5/pull/757#issuecomment-6004893127), [author's correction and sampler-word checks](https://github.com/boykopovar/AnyPS5/pull/757#issuecomment-6006325206). The [current fixture](https://github.com/boykopovar/AnyPS5/blob/0c25997a5a19dede15c8b0da5fb4bc3683bd14d3/core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp#L784) retains its uint-through-linear-sampler check. These links are context; this report does **not** establish which current subcase or production path causes the remaining invalid pairing, or that #6417 caused it. Found while checking our Sonic bring-up composition, then independently reproduced on **unmodified main without our fork fixes**. No Sonic reproduction, game blocker, wrong texel result, performance claim or proposed semantic fallback is asserted. The actionable gap is valid sampler/image pairing in the existing regression test; an implementation correction should preserve the intended direct/table integer behavior and existing refusal rules. Searched open/closed issues and PRs for the exact VUID, `magFilter`, image-table filtering and integer/linear pairing; found the historical #757 discussion but no current issue for this validation result. Original full logs and matching build/test receipts are preserved locally. AI-assisted investigation/report: Codex; author responsible.
milescoviello commented 2026-10-19 02:00:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T02:00:48Z.


@Amoenus thanks for the report. #7707 fixes it. Under the validation layer on Linux (NVIDIA and lavapipe), the error comes from the test's direct-binding control, RunDirect(device, LinearWrap, uintImage).

Direct bindings point-filter the sampler for signed integer, converted and depth views only (samplerMode in DescriptorBindingBuilder.cpp). Unsigned integer views kept the guest's linear filter. Image table entries already point-filter both integer classes, and #757 had made the direct path do the same.

#7707 adds the unsigned class to the direct rule, and the test's control now expects PointWrap for the direct uint binding. With it there's no magFilter-04553 on either device, and with main's rule the updated test fails.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258050188 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7699#issuecomment-6258050188). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-19T02:00:48Z. --- @Amoenus thanks for the report. #7707 fixes it. Under the validation layer on Linux (NVIDIA and lavapipe), the error comes from the test's direct-binding control, `RunDirect(device, LinearWrap, uintImage)`. Direct bindings point-filter the sampler for signed integer, converted and depth views only (`samplerMode` in `DescriptorBindingBuilder.cpp`). Unsigned integer views kept the guest's linear filter. Image table entries already point-filter both integer classes, and #757 had made the direct path do the same. #7707 adds the unsigned class to the direct rule, and the test's control now expects `PointWrap` for the direct `uint` binding. With it there's no `magFilter-04553` on either device, and with `main`'s rule the updated test fails. AI-assisted: yes (Claude Code)
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#7699
No description provided.