Skip to content

feat(shader): load R10_G10_B10_A2 float images through a 32-bit view - #17701

Merged
oneandonlydean merged 8 commits into
boykopovar:mainfrom
SHOnnay:feat/agc-image-format-131
Nov 21, 2026
Merged

oneandonlydean merged 8 commits into
boykopovar:mainfrom
SHOnnay:feat/agc-image-format-131

Conversation

@SHOnnay

@SHOnnay SHOnnay commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

What

Guest image format 131 (Format10_10_10_2Float) packs R, G and B as unsigned floats with a 4-bit exponent (bias 7) and a 6-bit mantissa, and A as a 2-bit UNORM. Vulkan has no format for it, so a T# using it made the draw or dispatch fail with the NumericClass reason, and the driver threw unsupported guest texture format 131.

The format is now held in an R32_UINT image like the other packed formats without a host equivalent, and an image_load that uses no sampler decodes it in the shader. R, G and B follow the layout in the shader debt entry (bits 0-9, 10-19 and 20-29, denormal at exponent 0, finite at exponent 15, 0x3ff reads 508); A is bits 30-31 as UNORM. The layout was measured with image_load on RDNA2 (gfx1036) through the hardware oracle, not on the PS5's gfx1013.

Refused with an error, as before or newly: a write, a packed MIMG access, an atomic, a sample, a gather, a LOD query, and DCC fast-clear codes 0001, 1110 and 1111 (a raw R32_UINT fill would not read as white in this layout). A runtime image mode for the format is generated only for images that are not written.

The shader debt entry for format 131 now lists only what is still open: the value of a denormal (decoded as the mantissa times 2^-12, which is the format's defined math, not a measured hardware result), the rounding of the 2-bit alpha (within 1 ULP of alpha/3), and the alpha of a D16 load.

Tests: agc_driver_image_format_131 loads 2048 texels that cover every 10-bit value in each of R, G and B, with swizzles X Y Z W, W Z Y X and X 0 1 W, and compares R, G and B bit-exactly with values computed from the documented layout in the test (not by calling the decoder); alpha is compared within 1 ULP for 1/3 and 2/3 and exactly for 0 and 1. It also loads with D16 on X Y Z 1, and checks that image_store, image_sample_lz, image_gather4, image_get_lod, image_load_pck and image_atomic_add of the format are refused. The atomic refusal predates this change (the existing 32-bit-only atomic format check) and is pinned, not new. agc_driver_graphics gains assertions for the driver remap, the numeric class and the DCC clear refusals. Both fail on main (unsupported guest texture format 131; sampled image descriptor uses an unsupported format) and pass here.

Evidence level: unit test bit-exact (decode, executed on a GPU through the recompiler); SPIR-V from Recompile is validated by SPIRV-Tools in a build with ANYPS5_ENABLE_SPIRV_TOOLS=ON. No title was run.

Tested

Windows 11, MinGW-w64 GCC 15.2 (UCRT, SEH), Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON, NVIDIA GeForce RTX 4070, driver 621.01, Vulkan 1.4.357. The GCC 15.2 runtime directory was first on PATH for the test session.

  • Full ctest --timeout 120 on main at c3112f0 (this change's files reverted to main): 4803 tests, 4801 passed, 2 failed: windows_integer_overflow_report (Timeout) and guest_timed_join_import_libkernel_web (libkernel_web.prx could not be loaded, GetLastError 126).
  • Full ctest --timeout 120 on this branch (same base): 4804 tests, 4802 passed, the same 2 failed. The 1 extra test is agc_driver_image_format_131.
  • Focused runs with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (agc_driver_graphics, agc_driver_image_packed16_storage_*, agc_driver_image_depth24*, plus agc_driver_image_format_131 here): neither log contains was not found but was requested by env var VK_INSTANCE_LAYERS, and neither contains VUID-. These were run on an earlier base, before the final rebase.
  • After the final rebase onto upstream/main c0d23c2: rebuilt, and the 1181 ctest tests matching agc_driver|shader|recompiler|spirv|rdna ran with the validation layer: 0 failed, 0 VUID-, 0 was not found but was requested; 10 skipped by the tests themselves (missing Vulkan features). Full suite not re-run on this base.
  • Only agc_driver_image_format_131 and agc_driver_graphics fail on main; the gather/LOD/pck/atomic refusal tests are regression guards for unsupported paths.
  • python tools/check_conventions.py --base upstream/main: all checks passed.
  • tools/pr_overlap.py failed closed (could not confirm overlap with a list of open PRs that share files); compared by hand, no open PR decodes format 131.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (conflicts with feat(agc): map scaled guest texture formats to native Vulkan formats #14709, which renames enumerator 131 to Format6E4Float; I will rebase whichever merges second)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070, driver 621.01, Windows 11
  • AI-assisted: yes

🤖 Generated with Claude Code

SHOnnay and others added 3 commits November 9, 2026 16:38
Image format 131 packs R, G and B as unsigned floats with a 4-bit exponent
(bias 7) and a 6-bit mantissa and A as a 2-bit UNORM, which Vulkan has no
format for. Keep it in an R32_UINT image and decode the texel in the shader
on an image_load that uses no sampler. Stores, packed accesses, atomics,
samples, gathers, LOD queries and the 0001, 1110 and 1111 DCC fast-clear
codes are refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added build shader core/shader docs agc libSceAgc* labels Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 17623 core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp L124
core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp L206-207
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L354-357, L2450
core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp L17, L170-171
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp L1133-1134
PR 20909 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L367
PR 21238 core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp L7-9, L528-529
PR 23111 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L367

Some 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.

Pull request Shared files not compared
PR 5371 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp
PR 6280 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 6412 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 6488 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7395 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7642 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake
core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 7684 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 7689 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 8939 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9508 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake
core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9633 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9749 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9790 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 9969 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10193 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake
core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 10652 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 11551 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 13928 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake
core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 13929 core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_converted_unorm_tests.cmake
core/libs/prx/libSceAgcDriver/tests/execution/ImageConvertedUnorm.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 14853 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 14871 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 14964 core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 15555 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16260 core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp
core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16472 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16631 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16812 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 16814 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 18106 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 18107 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 20248 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 20251 core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvFormatConvert.cpp
PR 20315 core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp
PR 20519 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 22424 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp
PR 23242 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp

@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Windows CPU check of head b988f1c168, merged onto main 5c26d4f13c (5e91393c9a, clean merge).

Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2.0 UCRT r7, Release, with Vulkan hidden.

  • 44 of the 46 selected tests pass in 3 of 3 runs each.
  • agc_driver_image_converted_unorm and agc_driver_image_format_131 report Skipped in every run, because they need a Vulkan device. I'll run them on this machine's AMD GPU and post the result here.
The 44 passing tests

agc_address_copy_cap, agc_address_copy_cap_mirror, agc_address_copy_cap_remembered, agc_address_space_unwatched_mirror_import, agc_command_batch_fence_failure, agc_compute_descriptor_layout_flags, agc_copy_input_kept_bytes, agc_depth_copy_kept_bytes, agc_descriptor_cache, agc_descriptor_pool_reset_failure, agc_driver_address_space_teardown, agc_driver_alpha_to_coverage_state, agc_driver_covered_centroid_state, agc_driver_depth_bounds_state, agc_driver_fault_only_template_records, agc_driver_fault_only_template_records_kept, agc_driver_fault_only_template_records_loop_guard, agc_driver_fault_only_template_records_loop_guard_kept, agc_driver_linear_volume_nonresident, agc_driver_msaa_dcc_state, agc_driver_sample_location_grid_fallback, agc_driver_sample_order_planning, agc_driver_undithered_alpha_to_coverage_state, agc_driver_unobserved_provoking_vertex, agc_driver_unused_viewport_depth, agc_graphics_profile_draw, agc_heap_mirror_reference_size, agc_heap_mirror_run_unwatch, agc_heap_mirror_run_unwatch_no_space_cache, agc_heap_mirror_unwatch, agc_heap_mirror_unwatch_no_space_cache, agc_pipeline_journal, agc_pipeline_journal_extended_paths, agc_pipeline_journal_long_paths, agc_pipeline_library_clear_waits_for_build, agc_pipeline_store_fixed_bound, agc_pipeline_store_growth, agc_pipeline_store_lazy_buffer_pool, agc_pipeline_store_replay_growth, agc_pipeline_store_touch, agc_sparse_buffer_holes, agc_sparse_heap_mirror_budget, agc_sparse_heap_mirror_unwatch, agc_sparse_heap_mirror_unwatch_no_space_cache

AI-assisted: yes.

@JJenkx

JJenkx commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

GPU follow-up for head b988f1c168, merged onto main 80a75599b4 (52e251550d, clean merge). Run through the Windows FIFO, job 042d23a962984d39a45b0e04c74627f6, exit 0 with cleanup verified.

Setup: Windows 11 Enterprise 22621, AMD Radeon RX 6700 XT (driver 32.0.21045.16010), WinLibs GCC 15.2 UCRT, Release, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1.

  • agc_driver_image_converted_unorm and agc_driver_image_format_131 pass in 3 of 3 runs each, 6 of 6, none skipped.

All test and .prx hashes matched the prepared build when the job started. With the 44 tests from the CPU run above, all 46 tests in this PR's gate have now passed on Windows.

AI-assisted: yes.

@Lucke0051

Copy link
Copy Markdown
Contributor

Ran this PR merged onto main 0245231 (PR head b988f1c) on two Linux GPUs and compared with main on the same machine (CachyOS, Linux 7.3.1, gcc 16.2.1 Release). These are the first Linux runs and the first on an Intel GPU, next to the Windows runs on an RTX 4070 (description) and an RX 6700 XT (above).

GPU AGC, shader and VideoOut tests
NVIDIA GeForce RTX 3070 Ti, NVIDIA 615.78.08 no difference from main; agc_driver_image_format_131 passes
Intel UHD Graphics 630 (CML GT2), Mesa 26.2.6 no difference from main; agc_driver_image_format_131 passes
Failures main has too on this machine

Command: ANYPS5_GPU=<NVIDIA|UHD> ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -j8 --timeout 120 -R '^(agc|video_out|shader)'. No validation layer installed here, so no VUID- comparison.

AI-assisted: yes (Claude ran the tests and drafted this comment)

@gabichuuuuu

Copy link
Copy Markdown
Contributor

Windows check of head b988f1c168, merged onto main 28237a8567 (clean merge, built together with other open PRs that touch different files).

Setup: Windows 11 x64, WinLibs GCC 15.2.0 (r7), Ninja, Release, BUILD_TESTING=ON, Python 3.15.

  • Tests built from this PR's test files: agc_address_copy_cap, agc_address_copy_cap_mirror, agc_address_copy_cap_remembered, agc_address_space_unwatched_mirror_import, agc_command_batch_fence_failure, agc_compute_descriptor_layout_flags, agc_copy_input_failure_lifetime, agc_copy_input_kept_bytes, agc_depth_copy_kept_bytes, agc_descriptor_cache, agc_descriptor_pool_reset_failure, agc_driver_address_space_teardown, agc_driver_alpha_to_coverage_state, agc_driver_covered_centroid_state, agc_driver_depth_bounds_state, agc_driver_fault_only_template_records, agc_driver_fault_only_template_records_kept, agc_driver_fault_only_template_records_loop_guard, agc_driver_fault_only_template_records_loop_guard_kept, agc_driver_graphics, agc_driver_image_converted_unorm, agc_driver_image_depth24, agc_driver_image_depth24_float, agc_driver_image_format_131, agc_driver_image_packed16_storage_133, agc_driver_image_packed16_storage_134, agc_driver_image_packed16_storage_136, agc_driver_linear_volume_nonresident, agc_driver_msaa_dcc_state, agc_driver_sample_location_grid_fallback, agc_driver_sample_order_planning, agc_driver_undithered_alpha_to_coverage_state, agc_driver_unobserved_provoking_vertex, agc_driver_unused_viewport_depth, agc_graphics_profile_draw, agc_heap_mirror_reference_size, agc_heap_mirror_run_unwatch, agc_heap_mirror_run_unwatch_no_space_cache, agc_heap_mirror_unwatch, agc_heap_mirror_unwatch_no_space_cache, agc_pipeline_journal, agc_pipeline_journal_extended_paths, agc_pipeline_journal_long_paths, agc_pipeline_library_clear_waits_for_build, agc_pipeline_store_fixed_bound, agc_pipeline_store_growth, agc_pipeline_store_lazy_buffer_pool, agc_pipeline_store_replay_growth, agc_pipeline_store_touch, agc_sparse_buffer_holes, agc_sparse_heap_mirror_budget, agc_sparse_heap_mirror_unwatch, agc_sparse_heap_mirror_unwatch_no_space_cache.
  • All of them pass in 3 of 3 runs.
  • Negative control: with this PR's code reverted to main (files it adds removed) and rebuilt, agc_driver_graphics, agc_driver_image_format_131, agc_graphics_profile_draw fail in 2 of 2 runs, so the tests detect the change; agc_address_copy_cap, agc_address_copy_cap_mirror, agc_address_copy_cap_remembered, agc_address_space_unwatched_mirror_import, agc_command_batch_fence_failure, agc_compute_descriptor_layout_flags, agc_copy_input_failure_lifetime, agc_copy_input_kept_bytes, agc_depth_copy_kept_bytes, agc_descriptor_cache, agc_descriptor_pool_reset_failure, agc_driver_address_space_teardown, agc_driver_alpha_to_coverage_state, agc_driver_covered_centroid_state, agc_driver_depth_bounds_state, agc_driver_fault_only_template_records, agc_driver_fault_only_template_records_kept, agc_driver_fault_only_template_records_loop_guard, agc_driver_fault_only_template_records_loop_guard_kept, agc_driver_image_converted_unorm, agc_driver_image_depth24, agc_driver_image_depth24_float, agc_driver_image_packed16_storage_133, agc_driver_image_packed16_storage_134, agc_driver_image_packed16_storage_136, agc_driver_linear_volume_nonresident, agc_driver_msaa_dcc_state, agc_driver_sample_location_grid_fallback, agc_driver_sample_order_planning, agc_driver_undithered_alpha_to_coverage_state, agc_driver_unobserved_provoking_vertex, agc_driver_unused_viewport_depth, agc_heap_mirror_reference_size, agc_heap_mirror_run_unwatch, agc_heap_mirror_run_unwatch_no_space_cache, agc_heap_mirror_unwatch, agc_heap_mirror_unwatch_no_space_cache, agc_pipeline_journal, agc_pipeline_journal_extended_paths, agc_pipeline_journal_long_paths, agc_pipeline_library_clear_waits_for_build, agc_pipeline_store_fixed_bound, agc_pipeline_store_growth, agc_pipeline_store_lazy_buffer_pool, agc_pipeline_store_replay_growth, agc_pipeline_store_touch, agc_sparse_buffer_holes, agc_sparse_heap_mirror_budget, agc_sparse_heap_mirror_unwatch, agc_sparse_heap_mirror_unwatch_no_space_cache still pass.

AI-assisted: yes.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 13, 2026
…at-131

# Conflicts:
#	core/libs/prx/libSceAgcDriver/Graphics/src/TextureFormat.cpp
#	core/libs/prx/libSceAgcDriver/tests/TextureFormat.cpp
#	core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
#	core/shader/recompiler/RdnaDecoder/src/RdnaDescriptorFormat.cpp
#	docs/dev/debt/shader.md
@SHOnnay

SHOnnay commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

I merged main into this branch (62ec3e6), because it conflicted with #15450 (unsigned 10_11_11 and 2_10_10_10 images). #15450 doesn't touch format 131, so I added 131 next to it in the remap lists. It now uses #15450's IsConvertedUnormTextureFormat. The 131 DCC refusals and tests are unchanged.

I ran this on macOS (AppleClang, Release): agc_driver_graphics, agc_driver_image_converted_unorm, agc_shader_memory and agc_shader_helpers gave 97 of 97 passed. 11 of those are Vulkan execution tests that skip on this Mac. One of them is agc_driver_image_format_131, so the GPU decode has not been re-run since the merge. The Windows and RTX results in the description are from c0d23c2, before this merge.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 14, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 15, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 16, 2026
@domx4q

domx4q commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

NVIDIA Linux run with the Khronos validation layer of the head after the merge with #15450; the earlier GPU runs were on b988f1c168.

Setup: Arch Linux, kernel 7.3.4, GCC 16.2.1 Release, NVIDIA GeForce RTX 4090 (10de:2684), driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head 222b61a590 merged with --no-ff onto main e4caa07950 (ec477f3590, clean merge).

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R '^agc_driver_(image_converted_unorm|image_format_131|graphics)$' -V
main e4caa07950 this PR
Result 2/2 passed 3/3 passed
agc_driver_image_format_131 does not exist on main passed (R10_G10_B10_A2_FLOAT image tests passed, not skipped)
Insert instance layer "VK_LAYER_KHRONOS_validation" 1 2
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- 0 0

agc_driver_image_converted_unorm and agc_driver_graphics pass on both sides. Both logs show Selected GPU name=NVIDIA GeForce RTX 4090. agc_driver_graphics also passes on main here, unlike the Windows baseline in the description.

No new VUID- errors; all focused tests pass on Ada.

AI-assisted: yes (Claude Code)

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — looks good

Nothing blocks this change; the targeted implementation and regression coverage support the stated load-only behavior, though I did not run checks myself.

What I ran

Reviewed head f3ef4514e80aa6cc4c68f8f90a068e500b0b3fea using the prepared diff and repo_read.py source reads. No commands or tests were run; the test results in the description are author-reported.

Results

Check Result Note
Diff and implementation review passed All changed files read
Automated checks not run Results in description are author-reported
PS5 hardware behavior not run No title was run

Findings

Blocking

None.

Non-blocking

None.

Not verified

No automated checks were run during this review. The PR description reports focused test success on the final rebase and full-suite results on an earlier base; these were not independently verified. No title or PS5 gfx1013 behavior was tested. Read all 11 changed files listed in manifest.json, including every added line. No changed files were excluded.

To get this to a good state

Nothing is required.

@oneandonlydean
oneandonlydean merged commit d2fff81 into boykopovar:main Nov 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants