From cfaa336dade3dbe6dba070bb1d29e59f8481079a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Franch?= Date: Wed, 7 Oct 2026 23:24:14 +0200 Subject: [PATCH] test(agc): pin newest-fill order and unfilled keys in pending key reads Co-Authored-By: Claude --- .../libSceAgcDriver/tests/execution/DccKeysFirstWrite.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/libs/prx/libSceAgcDriver/tests/execution/DccKeysFirstWrite.cpp b/core/libs/prx/libSceAgcDriver/tests/execution/DccKeysFirstWrite.cpp index 3d5bd1b37..0375be15f 100644 --- a/core/libs/prx/libSceAgcDriver/tests/execution/DccKeysFirstWrite.cpp +++ b/core/libs/prx/libSceAgcDriver/tests/execution/DccKeysFirstWrite.cpp @@ -287,6 +287,12 @@ void Run(AgcDriver::VulkanDevice& device, std::uint8_t* block) { Require(fill(0, KeyBytes / 2, 0x40), "the 0001 fill of the first key half was not recorded"); Dispatch(device, ClearKeysCode, clearTailData, false); readPending(DccKeys::Uncompressed, true, "a pending 0001 fill over half the keys and a kernel's 0000 store over the other half"); + Require(fill(0, KeyBytes, 0x10) && fill(0, KeyBytes, 0x00), "the 0x10 and 0000 fills of the keys were not recorded"); + readPending(DccKeys::Clear0000, true, "a pending 0x10 fill of the keys overwritten by a pending 0000 fill"); + Require(fill(KeyBytes / 2, KeyBytes / 2, 0x10), "the 0x10 fill of the second key half was not recorded"); + device.WaitIdle(); + Require(fill(0, KeyBytes / 2, 0x00), "the 0000 fill of the first key half was not recorded"); + readPending(DccKeys::Uncompressed, false, "a pending 0000 fill over half the keys whose other half holds 0x10"); Require(fill(0, KeyBytes, 0x10), "the 0x10 fill of the keys was not recorded"); device.WaitIdle(); Require(fill(0, KeyBytes / 2, 0x00) && fill(KeyBytes / 2, KeyBytes / 2, 0x00), "the 0000 fills of the key halves were not recorded");