feat(agc): accept 8_8_8_8 UINT color targets #1736
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1736"
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 TheAggie on 2026-10-08T17:52:33Z.
What
COLOR_8_8_8_8with number type UINT threwunsupported color format 10 number type 4 component swap 0. RADV renders intoR8G8B8A8_UINTimages through it. With #1073, ccleste (PPSA59322) writes such a target with aUINT16_ABGRexport, and it was the last draw ccleste dropped.This builds on #1073, which accepts that export and validates the
uvec4output. Its first commit is #1073's and drops out once that merges.COLOR_8_8_8_8UINT decodes toVK_FORMAT_R8G8B8A8_UINTfor component swaps 0, 2 and 3, with the same reversed export mappings as the other 8_8_8_8 types.B8G8R8A8_UINT, which Vulkan does not require as a color attachment, unlikeR8G8B8A8_UINT.agc_driver_graphics(uint8x4TargetTests): the target decodes asR8G8B8A8_UINTwithuintExportset, swaps 2 and 3 decode, and swap 1 throws.agc_driver_uint8x4_color_targetdraws a compressedUINT16_ABGRexport into a linear 256x648_8_8_8_UINTtarget. It requires every channel's byte inside the scissor and the untouched bytes outside it. It fails withunsupported color format 10 number type 4 component swap 0without this change.Tested
Windows 11 Pro (26200), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, NVIDIA GeForce RTX 5070 Ti.
agc_driver_pixel_uint16_export) passes on this branch. It was run from the generatedCTestTestfile.cmakecommands because antivirus blocksctest.exeon this machine.RADV_DEBUG=nonggcset. I found #1073 only afterwards, so this is now based on it.Not tested on AMD, Intel or Linux.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-08T18:59:13Z.
Linux run, since the description lists AMD and Linux as not tested: Ubuntu 24.04.5 (kernel 6.8), GCC 13.3, Release, AMD Radeon RX 7600 (RADV NAVI33, Mesa 25.2.8). This PR's head
0b9b70fa(including #1073's commit), merged onto main6b56175a.Full ctest: 481/481 pass, with the GPU tests running on the RX 7600 (none skipped). That includes the new
agc_driver_uint8x4_color_target, #1073'sagc_driver_pixel_uint16_export, andagc_driver_graphicswithuint8x4TargetTests.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-10T05:59:57Z.
Checked on RADV (Radeon 660M):
agc_driver_graphicsandagc_driver_uint8x4_color_targetpass, and both fail without theState.cppchange. The GPU test pins every channel byte and the untouched bytes outside the scissor. The existing UINT16_ABGR TechnicalDebt entry already covers out-of-range values into a narrower target. Also confirmed by @johnmaia on RX 7600 (481/481). Merging.