Skip to content

feat(agc): draw into 2_10_10_10 UINT color targets - #22609

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:fix/agc-2-10-10-10-uint-target
Nov 21, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
milescoviello:fix/agc-2-10-10-10-uint-target

Conversation

@milescoviello

@milescoviello milescoviello commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Crimson Desert (PPSA25286) stops with AGC graphics: unsupported color format 9 number type 4 component swap 0 once it gets past the cube store fixed in #22534. The draw renders into a 2_10_10_10 colour target with NUMBER_TYPE UINT, and DecodeColorFormatRaw only knew the UNORM version of that format.

  • CB_COLOR_INFO FORMAT 9, NUMBER_TYPE 4, COMP_SWAP 0 now decodes to VK_FORMAT_A2B10G10R10_UINT_PACK32. That is the same bit layout as the UNORM case already uses (red in the low 10 bits), and Vulkan requires colour attachment support for it. COMP_SWAP 1 (A2R10G10B10_UINT, optional in Vulkan) still throws.
  • A raw 32-bit export into a narrow UINT channel is masked (32_R) or clamped (32_GR, 32_ABGR, FP16_ABGR) in the shader by the packings from GTA V (PPSA04264) stops before the menu: color export format 4 into an unsigned integer target is unsupported #11513 and fix(libSceAgcDriver): store 32-bit exports into narrow UINT targets as Navi21 does #15693, because Vulkan leaves an out-of-range integer attachment write undefined. Those packings apply one limit to all four channels, which can't express 10/10/10/2. Two new packings, UintMask10_10_10_2 and UintClamp10_10_10_2, limit the first three channels to 10 bits and the fourth to 2. NarrowUintPacking picks them for A2B10G10R10_UINT. 32_AR stays unpacked, as it is for every UINT target.
  • The serializer and prepared-specialization bounds take the two new values.

The hardware result for a word wider than a 10- or 2-bit channel is not measured. The debt entry says the new packings follow the Navi21 8- and 16-bit measurement.

Tested

11-20, title run past the stop: main 93f62d93f8 plus #22534, this PR, #22778, #23864, #23880, #22690 and #22703 (all mine) runs Crimson Desert (PPSA25286) for the whole 602 s and reaches the settings menu over the title screen at about 1.7 fps (shot at 600 s, D#16802 post). All 12 rotation runs on main since 11-19 end on the format-71 cube store #22534 fixes, before this PR's draw, 196 to 301 s in. I haven't checked which of the other six PRs that run needed.

Linux (Ubuntu 26.04.1, kernel 7.0), GCC 15.2, Ninja, Release, -DBUILD_TESTING=ON, RTX 4070 Ti on NVIDIA 615.71:

  • agc_driver_graphics:
    • The 2_10_10_10 UINT target decodes to A2B10G10R10_UINT_PACK32 with identity mapping.
    • Its packing per export format is UintMask10_10_10_2 for 32_R, UintClamp10_10_10_2 for 32_GR, 32_ABGR and FP16_ABGR, and Uint for 32_AR, and the blend is dropped.
    • The out-of-range packing check now uses the value past the last packing.
  • agc_driver_uint_color_target draws into A2B10G10R10_UINT (tiled and linear) and reads each 10- and 2-bit field back:
    • in-range words through Uint;
    • wider words through the clamp (32_ABGR, 32_GR) and the mask (32_R);
    • halves through the clamp.
      It also draws through both new packings into R32_UINT and R32G32B32A32_UINT, where the attachment can hold the whole word, so the 10- and 2-bit limits must come from the shader.
  • Both tests pass, 3 runs.
  • Negative control: with main's State.cpp and SpirvModuleEmitter.cpp and the new tests, both fail.

Windows 11 (VM, GeForce GT 1030, WinLibs GCC 16.2, Ninja, Release, ANYPS5_REQUIRE_VULKAN=1): agc_driver_graphics and agc_driver_uint_color_target pass 3 runs on fd2918a, the pre-squash commit with this tree.

Crimson Desert (PPSA25286), Linux, RTX 4070 Ti: offline (APS5_NET_DISCONNECTED=1), 22G cap. The title only reaches this draw with #22534, so both builds include it.

  • Base: 5e54d3fb1e (main b179497 plus fix(shader): give converted image stores the cube-face mode again #22534), warm cache, 300 s. Run 1 never reached the draw in 307 s. Run 2 failed presenting at 172 s, after its second present: [gpu] driver failure: AGC graphics: unsupported color format 9 number type 4 component swap 0, then EXIT-134.

  • This PR: 644f249933 (main 9f75bf0 plus fix(shader): give converted image stores the cube-face mode again #22534 plus this change), 420 s. The cold-cache run never presented. The warm run had no colour-format error, presented twice and ran on to 413 s. Its log shows work neither base run reached: seven 2D read of the 2D array ... built from slice 0 alone lines, a has 2 dynamic-resolution variants in one image table line, two more sampled-texture budget updates, and two more shaders prepared at use. It then stopped on something else: guest allocation 0x20037d0000+0x10000 is still pinned by GPU work or an import (waited 60000 ms for the lease).

  • The screen is black after the first present in every run, so I'm not claiming visible progress.

  • git merge-tree against main is clean. tools/check_conventions.py passes on the branch and this body, and tools/debt_fold.py --check reports nothing new for this fragment.

  • rafaconvaitis's Windows + AMD run of 4be6c4a707 merged onto main 9a50e1014e (Radeon 760M, AMD Software 26.11.2, WinLibs GCC 15.2.0, Khronos validation layer 1.4.363): agc_driver_uint_color_target passes 3/3 on both sides with no VUID- lines.

  • Colewiz7's RADV run of 4be6c4a707 merged onto main 26604382a5 as e2caaa4abd (Linux 7.3.4, GCC 16.2.1, Mesa 26.2.6, RX 7900 XT and the Ryzen 7 7800X3D iGPU, Khronos validation layer 1.4.363.1): no new failures against main and no VUID- or SYNC-HAZARD lines.

  • domx4q's Linux + NVIDIA run with the validation layer of 4be6c4a707 merged onto main fbaae8a79d (Arch Linux, GCC 16.2.1, RTX 4090, NVIDIA 620.70.06, Khronos validation layer 1.4.363.1): agc_driver_graphics and agc_driver_uint_color_target pass on both sides with no VUID- lines. With main's State.cpp and SpirvModuleEmitter.cpp and this PR's tests, agc_driver_uint_color_target fails with unsupported color format 9 number type 4 component swap 0.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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 (Crimson Desert reaches this draw only with fix(shader): give converted image stores the cube-face mode again #22534)
  • Fixes: none
  • Unblocks: PPSA25286 Crimson Desert (PPSA25286) #16802 (after fix(shader): give converted image stores the cube-face mode again #22534's stop; see Tested)
  • GPUs tested: NVIDIA RTX 4070 Ti (Linux), NVIDIA GeForce GT 1030 (Windows), AMD Radeon 760M (Windows, rafaconvaitis), AMD RX 7900 XT and the Ryzen 7 7800X3D iGPU (gfx1036) (Linux, RADV, Colewiz7), NVIDIA RTX 4090 (Linux, domx4q)
  • AI-assisted: yes

CB_COLOR_INFO FORMAT 9 (2_10_10_10) with NUMBER_TYPE 4 (UINT) and
COMP_SWAP 0 threw "unsupported color format 9 number type 4 component
swap 0". It now decodes to A2B10G10R10_UINT_PACK32, which keeps red in
the low bits as the UNORM twin does.

Raw 32-bit exports into narrow UINT channels are masked (32_R) or
clamped (32_GR, 32_ABGR, FP16_ABGR) in the shader, since Vulkan leaves
an out-of-range integer attachment write undefined. Those packings used
one limit for every channel. The new UintMask10_10_10_2 and
UintClamp10_10_10_2 packings limit the first three channels to 10 bits
and the fourth to 2 bits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 18, 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 23258 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L12885
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L248
core/shader/recompiler/FragmentOutputSpecialization.hpp L35
core/shader/recompiler/Recompiler.hpp L141
PR 23281 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L12885
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L248
core/shader/recompiler/FragmentOutputSpecialization.hpp L35
core/shader/recompiler/Recompiler.hpp L141
PR 24049 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L12885
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp L248
core/shader/recompiler/FragmentOutputSpecialization.hpp L35
core/shader/recompiler/Recompiler.hpp L141

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 1395 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4040 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5609 core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/shader/recompiler/Recompiler.hpp
PR 6235 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6412 core/shader/recompiler/Recompiler.hpp
PR 6481 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6804 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6808 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7085 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7642 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 7689 core/shader/recompiler/Recompiler.hpp
PR 9356 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 9387 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 9508 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 9712 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9852 core/shader/recompiler/Recompiler.hpp
PR 9895 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 9897 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 10193 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 10359 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 10652 core/shader/recompiler/Recompiler.hpp
PR 11483 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 12828 core/shader/recompiler/Recompiler.hpp
PR 12944 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 13928 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 13929 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 14032 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 14217 core/shader/recompiler/Recompiler.hpp
PR 14561 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 14871 core/shader/recompiler/Recompiler.hpp
PR 14944 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 15548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 16391 core/shader/recompiler/Recompiler.hpp
PR 17022 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 17611 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 18369 core/shader/recompiler/Recompiler.hpp
PR 19943 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20030 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 20111 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 20130 core/shader/recompiler/Recompiler.hpp
PR 20153 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 20187 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 20248 core/shader/recompiler/Recompiler.hpp
PR 20315 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 20519 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 20845 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22071 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 22251 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 22328 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 22424 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 22439 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 22647 core/shader/recompiler/Recompiler.hpp
PR 22687 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 22697 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 23242 core/shader/recompiler/Recompiler.hpp
PR 23243 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23244 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23252 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 23344 core/shader/recompiler/Recompiler.hpp
PR 23553 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23811 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23818 core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
PR 23982 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp

@rafaconvaitis

Copy link
Copy Markdown
Contributor

Windows + AMD run; I found no AMD run in the description or in the comments. Head 4be6c4a707 merged alone onto main 9a50e1014e with git merge --no-ff (clean merge).

Setup: Windows 11 25H2 (build 26200), AMD Radeon 760M integrated graphics (1002:15bf, Vulkan device name Radeon 5), AMD Software 26.11.2 (driver 32.0.32029.2010, Vulkan 1.4.359), selected with ANYPS5_GPU=Radeon, WinLibs GCC 15.2.0 r7 UCRT, Release, BUILD_TESTING=ON, Khronos validation layer 1.4.363 (LunarG SDK 1.4.363.1). Only the focused test targets were built; the other execution tests were left out with ANYPS5_AGC_EXECUTION_TESTS.

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer, ctest -R '^(agc_driver_uint_color_target)$' -V -j 1, 3 runs per side.

test main this PR
agc_driver_uint_color_target passes 3/3 passes 3/3
  • No negative control: the tests of this PR do not build on main's sources, because they use code the PR adds.
  • VUID- lines: 0 in the main and PR logs. Every run logs Selected GPU name=Radeon 5 vendor=0x1002 device=0x15bf and Insert instance layer "VK_LAYER_KHRONOS_validation", and none logs was not found but was requested.

AI-assisted: yes (build and runs scripted with an AI assistant, on the hardware above).

@milescoviello

milescoviello commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @rafaconvaitis for the Windows + AMD run with the validation layer, the first AMD result on this PR. I've added it to the Tested section, linked to your comment, and the Radeon 760M to the GPUs tested line.

@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 — no blocking findings

Nothing in the inspected changes blocks merge; the new UINT format decoding and per-channel shader packing are consistently represented in state decoding, specialization, serialization, and execution tests.

What I ran

Reviewed head 4be6c4a7070423af688cedeff654da50129a160a. No commands or tests were run; the author reports GPU and title runs in the PR description, which were not independently reproduced.

Results

Check Result Note
Source review passed Core implementation and execution test inspected
Automated checks not run No local command execution available
Merge preview not run Author reports a clean merge-tree

Findings

Blocking

None.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/tests/Graphics.cpp was excluded from the review folder because it exceeded the size limit. Its changed lines were visible in the diff, but its full text was not read. The reported build, GPU runs, negative control, and Crimson Desert behavior were not independently verified. Files read: description.md, commits.md, manifest.json, diff.patch, State.cpp, UintColorTarget.cpp, RequestSerializer.cpp, FragmentOutputSpecialization.hpp, Recompiler.hpp, and SpirvModuleEmitter.cpp. Excluded changed file: Graphics.cpp.

To get this to a good state

Nothing is required.

@Colewiz7

Copy link
Copy Markdown
Contributor

Head 4be6c4a707 merged onto main 26604382a5 as e2caaa4abd, no conflict. Linux 7.3.4, GCC 16.2.1 Release, Mesa 26.2.6 RADV, RX 7900 XT (gfx1100) and 7800X3D iGPU (gfx1036).

No new failures and no new validation messages on either GPU.

RX 7900 XT iGPU
tests run (6175 on the 7900 XT, the 2007 GPU ones on the iGPU), new failures vs main none none
-R '^agc' (1940 tests) with the layer, new failures vs main none none
VUID- / SYNC-HAZARD lines 0 / 0 0 / 0

Layer runs used VK_LAYER_KHRONOS_validation 1.4.363.1 with VK_LOADER_DEBUG=layer and ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1; the loader inserted the layer in every run, and the set of distinct validation messages matches main.

AI-assisted: yes

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @Colewiz7 for the RADV run on the RX 7900 XT and the 7800X3D iGPU with the validation layer. I've added it to the Tested section, linked to your comment, and both GPUs to the GPUs tested line.

@domx4q

domx4q commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Ran the focused tests with the Khronos validation layer on Linux and an NVIDIA GPU, since CI runs the GPU tests only on lavapipe and the RTX 4070 Ti run in the Tested section does not use the layer; the other runs are Windows AMD and RADV.

Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release, NVIDIA GeForce RTX 4090 (vendor 0x10de, device 0x2684, Ada), proprietary driver 620.70.06, Vulkan 1.4.357, Khronos validation layer 1.4.363.1. Head 4be6c4a707 merged onto main fbaae8a79d with --no-ff (clean, as c213bb32dd). Main baseline is a Release build of fbaae8a79d on the same machine.

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_(graphics|uint_color_target)$' -V
main fbaae8a79d this PR
Result 2 of 2 passed 2 of 2 passed
Insert instance layer "VK_LAYER_KHRONOS_validation" 1 1
was not found but was requested by env var VK_INSTANCE_LAYERS 0 0
VUID- none none

Every device selected the RTX 4090; agc_driver_graphics creates no Vulkan device, hence one layer insertion for two tests. agc_driver_uint_color_target prints UINT color target tests passed on both sides; on this PR it also draws into the A2B10G10R10_UINT targets and through the two new packings.

Negative control: with main's State.cpp and SpirvModuleEmitter.cpp and this PR's tests, agc_driver_uint_color_target fails with AGC graphics: unsupported color format 9 number type 4 component swap 0. With the change restored it passes.

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

AI-assisted: yes (Claude Code)

@milescoviello

Copy link
Copy Markdown
Contributor Author

Thanks @domx4q for the RTX 4090 run with the validation layer, the first layered NVIDIA result on this PR, and for the negative control. I've added it to the Tested section, linked to your comment, and the 4090 to the GPUs tested line.

@github-actions github-actions Bot added unblocks title Names a title ID on the Unblocks line review queue Next in the maintainer review queue: checks pass, no open change request, no conflict labels Nov 21, 2026
@oneandonlydean
oneandonlydean merged commit 6f3ee8b into boykopovar:main Nov 21, 2026
24 checks passed
@github-actions github-actions Bot removed the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs shader core/shader unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants