sceAgcDcbResetQueue writes a different packet sequence on hardware than on main #1581

Closed
opened 2026-10-08 13:29:03 +00:00 by hugodearaujo · 5 comments
hugodearaujo commented 2026-10-08 13:29:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T13:29:03Z.


sceAgcDcbResetQueue on main writes a single CLEAR_STATE packet (c0001200 <state>) and ignores op. That comes from KytyPS5. I measured the real function on a PS5 (firmware 13.60) by loading libSceAgc.sprx with dlopen from a homebrew payload and calling it on a command buffer I own. It writes something very different, and none of the three references gets it right:

Source sceAgcDcbResetQueue(buf, op, state)
AnyPS5 / KytyPS5 c0001200 state (CLEAR_STATE), op ignored
OpenAGC 3-dword 0x79 "ACB reset", single argument
sharpemu 2-dword NOP "DRAW_RESET", only op == 0x3FF && state == 0
PS5 an envelope plus one packet group per op bit (below)

Title: New Joe & Mac: Caveman Ninja (PPSA02801) imports it. It is in OpenAGC's game_compat.c, the list of AGC functions taken from that game's eboot.bin, which is the evidence accepted on #975/#977.

What the console writes

The output is always wrapped in the same envelope:

ffff1000                              type-3 NOP with count 0x3FFF (a one-dword NOP)
c0027904 00000342 ce20<op & 0xffff> <flag>
  ... one group per op bit, in bit order ...
c0017904 00000342 cea00000

The return value is the start of the envelope. With op = 0 it is 8 dwords.

op bit Group written (state 0)
0x001 c0039f00 00000000 00000000 80000000 00000000
0x002 c0036300 00000000 00000000 80000000 00000000
0x004 c0036400 00000000 00000000 80000000 00000000
0x008 c0002f00 00000001
0x010 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff
0x020 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000
0x040 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c
0x080 c0004600 00000407
0x100 c0004600 00000410
0x200 c0024600 00000138 07fffc00 00000000
0x400 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006
0x800 c0036400 00000000 00000000 80000000 00000000 (the same as 0x004)
0x1000-0x4000 nothing (the bit only shows in the envelope)
0x8000 the call never returned (crash or hang)
0x10000 and up nothing, and the bit is dropped from the envelope too

state is a value, not a mask. Of the values 0, 1, 2, 3, 4, 8 and 0xF, only two change the output. state = 2 sets the envelope's flag dword to 8. state = 3 sets the second payload dword of the 0x64 group (bits 0x004 and 0x800) to 00840f80. op = 0x3FF, which sharpemu suggests is what titles pass, is 61 dwords. sceAgcDcbClearState matched main exactly (c0001200 command) in the same run.

What main's driver does with it

I ran each measured packet through AgcDriver::Pm4::Validate. 17 kinds pass and 4 are rejected:

Packet From Pm4::Validate
ffff1000 every call "invalid PM4 packet size": count 0x3FFF is read as 16 K dwords instead of a one-dword NOP
c0065800 86007fc0 fffffffe 000000ff … (ACQUIRE_MEM over the whole address space) 0x040 "ACQUIRE_MEM ranges above 40 bits are not implemented"
c0024600 00000138 … (EVENT_WRITE event 56) 0x200 "EVENT_WRITE event type 56 is not implemented"
c0071e00 … (opcode 0x1E) 0x400 "opcode is not known in the reference"

So writing the console's packets from the builder alone would make titles stop in the driver: op = 0x3FF contains 0x040 and 0x200. The order would have to be the driver first, then the builder.

Proposed plan

  1. Driver: accept the one-dword NOP (count 0x3FFF).
  2. Driver: accept the whole-range ACQUIRE_MEM and EVENT_WRITE event 56.
  3. Builder: write the measured envelope and groups for bits 0x000-0x3FF and 0x800, and the two state variants. Keep throwing for 0x400 (opcode 0x1E is unknown to the driver), 0x8000, and the state values not measured.

I'll do these as separate PRs, unless you'd rather keep the current CLEAR_STATE approximation or take a different approach. Do you know whether Dreaming Sarah, or another title you test, goes through sceAgcDcbResetQueue, and with which op?

Probe (ps5-payload-sdk v0.43, prospero-clang -O1 -rdynamic)
#include "../probe/probe.h"
#include <dlfcn.h>
#include <stdint.h>
#include <string.h>
typedef struct CommandBuffer CommandBuffer;
typedef int (*Callback)(CommandBuffer*, uint32_t, void*);
struct CommandBuffer {
    uint32_t* bottom;
    uint32_t* top;
    uint32_t* cursor_up;
    uint32_t* cursor_down;
    Callback callback;
    void* user_data;
    uint32_t reserved_dw;
};
typedef uint32_t* (*Reset3Fn)(CommandBuffer*, uint32_t, uint32_t);
typedef uint32_t* (*Clear2Fn)(CommandBuffer*, uint32_t);
static uint32_t words[1024];
static int callbacks;
static int onCallback(CommandBuffer* cb, uint32_t count, void* user) {
    (void)cb; (void)user;
    ++callbacks;
    printf("  callback count=%u\n", count);
    return 0;
}
static void fresh(CommandBuffer* cb) {
    for (int i = 0; i < 1024; ++i) words[i] = 0xCCCCCCCCu;
    cb->bottom = words; cb->top = words + 1024; cb->cursor_up = words; cb->cursor_down = words + 1024;
    cb->callback = onCallback; cb->user_data = NULL; cb->reserved_dw = 0;
    callbacks = 0;
}
static void report(const char* name, uint32_t a, uint32_t b, CommandBuffer* cb, uint32_t* ret) {
    int written = 0;
    for (int i = 0; i < 1024; ++i) if (words[i] != 0xCCCCCCCCu) written = i + 1;
    printf("R|%s|a=%x|b=%x|ret=%s%ld|up=%ld|down=%ld|cb=%d|", name, a, b, ret ? "+" : "NULL", ret ? (long)(ret - words) : 0L,
        (long)(cb->cursor_up - words), (long)(words + 1024 - cb->cursor_down), callbacks);
    for (int i = 0; i < written; ++i) printf("%08x ", words[i]);
    printf("\n");
    fflush(stdout);
}
int main(void) {
    int client = probe_begin();
    if (client < 0) return 1;
    void* lib = dlopen("libSceAgc.sprx", RTLD_LAZY);
    if (!lib) { printf("dlopen failed: %s\n", dlerror()); probe_end(client); return 1; }
    Reset3Fn reset = (Reset3Fn)dlsym(lib, "sceAgcDcbResetQueue");
    Clear2Fn clear = (Clear2Fn)dlsym(lib, "sceAgcDcbClearState");
    Clear2Fn acbReset = (Clear2Fn)dlsym(lib, "sceAgcAcbResetQueue");
    printf("dlsym reset=%p clear=%p acbReset=%p\n", (void*)reset, (void*)clear, (void*)acbReset);
    CommandBuffer cb;
    for (int bit = -1; bit < 32; ++bit) {
        if (bit == 15) continue;
        uint32_t op = bit < 0 ? 0 : (1u << bit);
        fresh(&cb);
        printf("STEP reset bit %d\n", bit); fflush(stdout);
        uint32_t* ret = reset(&cb, op, 0);
        report("bit", op, 0, &cb, ret);
    }
    static const uint32_t states[] = {1, 2, 3, 4, 8, 0xf};
    for (int bit = 0; bit < 12; ++bit)
        for (unsigned s = 0; s < sizeof(states) / sizeof(states[0]); ++s) {
            fresh(&cb);
            printf("STEP reset bit %d state %x\n", bit, states[s]); fflush(stdout);
            uint32_t* ret = reset(&cb, 1u << bit, states[s]);
            report("bitstate", 1u << bit, states[s], &cb, ret);
        }
    static const uint32_t clearArgs[] = {0, 1, 3, 0xf};
    for (unsigned i = 0; clear && i < sizeof(clearArgs) / sizeof(clearArgs[0]); ++i) {
        fresh(&cb);
        printf("STEP clear %x\n", clearArgs[i]); fflush(stdout);
        uint32_t* ret = clear(&cb, clearArgs[i]);
        report("DcbClearState", clearArgs[i], 0, &cb, ret);
    }
    probe_end(client);
    return 0;
}

The table above combines three runs: the first stopped at bit 15, and the next ones skip it.

Raw output (R|name|op|state|ret|cursor_up|cursor_down|callbacks|words)
R|bit|a=0|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=10000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=1000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=100000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=10000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=1000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce201000 00000000 c0017904 00000342 cea00000 
R|bit|a=100|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bit|a=10|b=0|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bit|a=1|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bit|a=20000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=2000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=200000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=20000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=2000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce202000 00000000 c0017904 00000342 cea00000 
R|bit|a=200|b=0|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bit|a=20|b=0|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bit|a=2|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bit|a=40000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=4000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=400000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=40000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=4000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce204000 00000000 c0017904 00000342 cea00000 
R|bit|a=400|b=0|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bit|a=40|b=0|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bit|a=4|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bit|a=80000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=8000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=800000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=80000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 
R|bit|a=800|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bit|a=80|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bit|a=8|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=100|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=100|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000008 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=100|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=100|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=100|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=100|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 
R|bitstate|a=10|b=1|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=10|b=2|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000008 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=10|b=3|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=10|b=4|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=10|b=8|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=10|b=f|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 
R|bitstate|a=1|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=1|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000008 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=1|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=1|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=1|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=1|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=1|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=2|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000008 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=3|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=4|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=8|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=200|b=f|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=1|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=2|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000008 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=3|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=4|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=8|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=20|b=f|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000008 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=2|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=400|b=1|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=400|b=2|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000008 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=400|b=3|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=400|b=4|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=400|b=8|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=400|b=f|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 
R|bitstate|a=40|b=1|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=40|b=2|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000008 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=40|b=3|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=40|b=4|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=40|b=8|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=40|b=f|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 
R|bitstate|a=4|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=4|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000008 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=4|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00840f80 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=4|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=4|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=4|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000008 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00840f80 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=800|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 
R|bitstate|a=80|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=80|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000008 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=80|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=80|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=80|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=80|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 
R|bitstate|a=8|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=8|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000008 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=8|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=8|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=8|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|bitstate|a=8|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 
R|DcbClearState|a=0|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000000 
R|DcbClearState|a=1|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000001 
R|DcbClearState|a=3|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000003 
R|DcbClearState|a=f|b=0|ret=+0|up=2|down=0|cb=0|c0001200 0000000f 
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5762660278 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-08T13:29:03Z. --- `sceAgcDcbResetQueue` on `main` writes a single CLEAR_STATE packet (`c0001200 <state>`) and ignores `op`. That comes from KytyPS5. I measured the real function on a PS5 (firmware 13.60) by loading `libSceAgc.sprx` with `dlopen` from a homebrew payload and calling it on a command buffer I own. It writes something very different, and none of the three references gets it right: | Source | `sceAgcDcbResetQueue(buf, op, state)` | |---|---| | AnyPS5 / KytyPS5 | `c0001200 state` (CLEAR_STATE), `op` ignored | | [OpenAGC](https://github.com/OpenAGC/OpenAGC/blob/main/src/game_compat.c) | 3-dword `0x79` "ACB reset", single argument | | [sharpemu](https://github.com/sharpemu/sharpemu/blob/main/src/SharpEmu.Libs/Agc/AgcExports.CommandPackets.cs) | 2-dword NOP "DRAW_RESET", only `op == 0x3FF && state == 0` | | **PS5** | an envelope plus one packet group per `op` bit (below) | Title: New Joe & Mac: Caveman Ninja (PPSA02801) imports it. It is in OpenAGC's `game_compat.c`, the list of AGC functions taken from that game's `eboot.bin`, which is the evidence accepted on #975/#977. ### What the console writes The output is always wrapped in the same envelope: ``` ffff1000 type-3 NOP with count 0x3FFF (a one-dword NOP) c0027904 00000342 ce20<op & 0xffff> <flag> ... one group per op bit, in bit order ... c0017904 00000342 cea00000 ``` The return value is the start of the envelope. With `op = 0` it is 8 dwords. | `op` bit | Group written (state 0) | |---|---| | 0x001 | `c0039f00 00000000 00000000 80000000 00000000` | | 0x002 | `c0036300 00000000 00000000 80000000 00000000` | | 0x004 | `c0036400 00000000 00000000 80000000 00000000` | | 0x008 | `c0002f00 00000001` | | 0x010 | `c0017a00 20000243 00000480` `c0012600 00000000 00000000` `c0001300 ffffffff` | | 0x020 | `c0021102 00000001 00000000 00000000` `c0021100 00000001 00000000 00000000` | | 0x040 | `c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1` `c0004600 0000002e` `c0004600 0000002c` | | 0x080 | `c0004600 00000407` | | 0x100 | `c0004600 00000410` | | 0x200 | `c0024600 00000138 07fffc00 00000000` | | 0x400 | `c0032200 00000000 00000000 00000000 0000000b` `c0001200 00000002` `c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006` | | 0x800 | `c0036400 00000000 00000000 80000000 00000000` (the same as 0x004) | | 0x1000-0x4000 | nothing (the bit only shows in the envelope) | | 0x8000 | the call never returned (crash or hang) | | 0x10000 and up | nothing, and the bit is dropped from the envelope too | `state` is a value, not a mask. Of the values 0, 1, 2, 3, 4, 8 and 0xF, only two change the output. `state = 2` sets the envelope's flag dword to `8`. `state = 3` sets the second payload dword of the `0x64` group (bits 0x004 and 0x800) to `00840f80`. `op = 0x3FF`, which sharpemu suggests is what titles pass, is 61 dwords. `sceAgcDcbClearState` matched `main` exactly (`c0001200 command`) in the same run. ### What `main`'s driver does with it I ran each measured packet through `AgcDriver::Pm4::Validate`. 17 kinds pass and 4 are rejected: | Packet | From | `Pm4::Validate` | |---|---|---| | `ffff1000` | every call | "invalid PM4 packet size": count 0x3FFF is read as 16 K dwords instead of a one-dword NOP | | `c0065800 86007fc0 fffffffe 000000ff …` (ACQUIRE_MEM over the whole address space) | 0x040 | "ACQUIRE_MEM ranges above 40 bits are not implemented" | | `c0024600 00000138 …` (EVENT_WRITE event 56) | 0x200 | "EVENT_WRITE event type 56 is not implemented" | | `c0071e00 …` (opcode 0x1E) | 0x400 | "opcode is not known in the reference" | So writing the console's packets from the builder alone would make titles stop in the driver: `op = 0x3FF` contains 0x040 and 0x200. The order would have to be the driver first, then the builder. ### Proposed plan 1. Driver: accept the one-dword NOP (count 0x3FFF). 2. Driver: accept the whole-range ACQUIRE_MEM and EVENT_WRITE event 56. 3. Builder: write the measured envelope and groups for bits 0x000-0x3FF and 0x800, and the two `state` variants. Keep throwing for 0x400 (opcode 0x1E is unknown to the driver), 0x8000, and the `state` values not measured. I'll do these as separate PRs, unless you'd rather keep the current CLEAR_STATE approximation or take a different approach. Do you know whether Dreaming Sarah, or another title you test, goes through `sceAgcDcbResetQueue`, and with which `op`? <details><summary>Probe (ps5-payload-sdk v0.43, <code>prospero-clang -O1 -rdynamic</code>)</summary> ```c #include "../probe/probe.h" #include <dlfcn.h> #include <stdint.h> #include <string.h> typedef struct CommandBuffer CommandBuffer; typedef int (*Callback)(CommandBuffer*, uint32_t, void*); struct CommandBuffer { uint32_t* bottom; uint32_t* top; uint32_t* cursor_up; uint32_t* cursor_down; Callback callback; void* user_data; uint32_t reserved_dw; }; typedef uint32_t* (*Reset3Fn)(CommandBuffer*, uint32_t, uint32_t); typedef uint32_t* (*Clear2Fn)(CommandBuffer*, uint32_t); static uint32_t words[1024]; static int callbacks; static int onCallback(CommandBuffer* cb, uint32_t count, void* user) { (void)cb; (void)user; ++callbacks; printf(" callback count=%u\n", count); return 0; } static void fresh(CommandBuffer* cb) { for (int i = 0; i < 1024; ++i) words[i] = 0xCCCCCCCCu; cb->bottom = words; cb->top = words + 1024; cb->cursor_up = words; cb->cursor_down = words + 1024; cb->callback = onCallback; cb->user_data = NULL; cb->reserved_dw = 0; callbacks = 0; } static void report(const char* name, uint32_t a, uint32_t b, CommandBuffer* cb, uint32_t* ret) { int written = 0; for (int i = 0; i < 1024; ++i) if (words[i] != 0xCCCCCCCCu) written = i + 1; printf("R|%s|a=%x|b=%x|ret=%s%ld|up=%ld|down=%ld|cb=%d|", name, a, b, ret ? "+" : "NULL", ret ? (long)(ret - words) : 0L, (long)(cb->cursor_up - words), (long)(words + 1024 - cb->cursor_down), callbacks); for (int i = 0; i < written; ++i) printf("%08x ", words[i]); printf("\n"); fflush(stdout); } int main(void) { int client = probe_begin(); if (client < 0) return 1; void* lib = dlopen("libSceAgc.sprx", RTLD_LAZY); if (!lib) { printf("dlopen failed: %s\n", dlerror()); probe_end(client); return 1; } Reset3Fn reset = (Reset3Fn)dlsym(lib, "sceAgcDcbResetQueue"); Clear2Fn clear = (Clear2Fn)dlsym(lib, "sceAgcDcbClearState"); Clear2Fn acbReset = (Clear2Fn)dlsym(lib, "sceAgcAcbResetQueue"); printf("dlsym reset=%p clear=%p acbReset=%p\n", (void*)reset, (void*)clear, (void*)acbReset); CommandBuffer cb; for (int bit = -1; bit < 32; ++bit) { if (bit == 15) continue; uint32_t op = bit < 0 ? 0 : (1u << bit); fresh(&cb); printf("STEP reset bit %d\n", bit); fflush(stdout); uint32_t* ret = reset(&cb, op, 0); report("bit", op, 0, &cb, ret); } static const uint32_t states[] = {1, 2, 3, 4, 8, 0xf}; for (int bit = 0; bit < 12; ++bit) for (unsigned s = 0; s < sizeof(states) / sizeof(states[0]); ++s) { fresh(&cb); printf("STEP reset bit %d state %x\n", bit, states[s]); fflush(stdout); uint32_t* ret = reset(&cb, 1u << bit, states[s]); report("bitstate", 1u << bit, states[s], &cb, ret); } static const uint32_t clearArgs[] = {0, 1, 3, 0xf}; for (unsigned i = 0; clear && i < sizeof(clearArgs) / sizeof(clearArgs[0]); ++i) { fresh(&cb); printf("STEP clear %x\n", clearArgs[i]); fflush(stdout); uint32_t* ret = clear(&cb, clearArgs[i]); report("DcbClearState", clearArgs[i], 0, &cb, ret); } probe_end(client); return 0; } ``` </details> The table above combines three runs: the first stopped at bit 15, and the next ones skip it. <details><summary>Raw output (<code>R|name|op|state|ret|cursor_up|cursor_down|callbacks|words</code>)</summary> ``` R|bit|a=0|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=10000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=1000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=100000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=10000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=1000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce201000 00000000 c0017904 00000342 cea00000 R|bit|a=100|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bit|a=10|b=0|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bit|a=1|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bit|a=20000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=2000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=200000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=20000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=2000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce202000 00000000 c0017904 00000342 cea00000 R|bit|a=200|b=0|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bit|a=20|b=0|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bit|a=2|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bit|a=40000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=4000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=400000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=40000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=4000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce204000 00000000 c0017904 00000342 cea00000 R|bit|a=400|b=0|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bit|a=40|b=0|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bit|a=4|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bit|a=80000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=8000000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=800000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=80000|b=0|ret=+0|up=8|down=0|cb=0|ffff1000 c0027904 00000342 ce200000 00000000 c0017904 00000342 cea00000 R|bit|a=800|b=0|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bit|a=80|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bit|a=8|b=0|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=100|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=100|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000008 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=100|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=100|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=100|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=100|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200100 00000000 c0004600 00000410 c0017904 00000342 cea00000 R|bitstate|a=10|b=1|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=10|b=2|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000008 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=10|b=3|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=10|b=4|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=10|b=8|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=10|b=f|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200010 00000000 c0017a00 20000243 00000480 c0012600 00000000 00000000 c0001300 ffffffff c0017904 00000342 cea00000 R|bitstate|a=1|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=1|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000008 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=1|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=1|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=1|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=1|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200001 00000000 c0039f00 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=1|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=2|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000008 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=3|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=4|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=8|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=200|b=f|ret=+0|up=12|down=0|cb=0|ffff1000 c0027904 00000342 ce200200 00000000 c0024600 00000138 07fffc00 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=1|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=2|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000008 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=3|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=4|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=8|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=20|b=f|ret=+0|up=16|down=0|cb=0|ffff1000 c0027904 00000342 ce200020 00000000 c0021102 00000001 00000000 00000000 c0021100 00000001 00000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000008 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=2|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200002 00000000 c0036300 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=400|b=1|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=400|b=2|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000008 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=400|b=3|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=400|b=4|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=400|b=8|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=400|b=f|ret=+0|up=24|down=0|cb=0|ffff1000 c0027904 00000342 ce200400 00000000 c0032200 00000000 00000000 00000000 0000000b c0001200 00000002 c0071e00 40000267 00000000 00000000 00000000 00000001 00000000 00000000 00000006 c0017904 00000342 cea00000 R|bitstate|a=40|b=1|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=40|b=2|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000008 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=40|b=3|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=40|b=4|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=40|b=8|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=40|b=f|ret=+0|up=20|down=0|cb=0|ffff1000 c0027904 00000342 ce200040 00000000 c0065800 86007fc0 fffffffe 000000ff 00000001 00000000 00000019 0000c3e1 c0004600 0000002e c0004600 0000002c c0017904 00000342 cea00000 R|bitstate|a=4|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=4|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000008 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=4|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00840f80 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=4|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=4|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=4|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200004 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=1|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=2|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000008 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=3|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00840f80 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=4|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=8|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=800|b=f|ret=+0|up=13|down=0|cb=0|ffff1000 c0027904 00000342 ce200800 00000000 c0036400 00000000 00000000 80000000 00000000 c0017904 00000342 cea00000 R|bitstate|a=80|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=80|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000008 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=80|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=80|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=80|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=80|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200080 00000000 c0004600 00000407 c0017904 00000342 cea00000 R|bitstate|a=8|b=1|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=8|b=2|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000008 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=8|b=3|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=8|b=4|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=8|b=8|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|bitstate|a=8|b=f|ret=+0|up=10|down=0|cb=0|ffff1000 c0027904 00000342 ce200008 00000000 c0002f00 00000001 c0017904 00000342 cea00000 R|DcbClearState|a=0|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000000 R|DcbClearState|a=1|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000001 R|DcbClearState|a=3|b=0|ret=+0|up=2|down=0|cb=0|c0001200 00000003 R|DcbClearState|a=f|b=0|ret=+0|up=2|down=0|cb=0|c0001200 0000000f ``` </details>
aashishaxo commented 2026-10-08 15:32:30 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by aashishaxo on 2026-10-08T15:32:30Z.


Hi @hugodearaujo, thanks for the measurements. If you haven't started on step 1 yet, I'd like to take it (the driver accepting the one-dword NOP ffff1000). I have it ready locally: Pm4::FillerPacket also matches exactly 0xffff1000, so every walker steps over it as one dword, the same way d4f7ddaa handled it for sceAgcSetRangePredication. Tests cover Validate, a submission with your measured op = 0 output, and a COND_EXEC range containing the pad. I'll leave steps 2 and 3 to you unless you want me to take one. Happy to drop it if you already have it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6063381074 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581#issuecomment-6063381074). Originally posted by [aashishaxo](https://github.com/aashishaxo) on 2026-10-08T15:32:30Z. --- Hi @hugodearaujo, thanks for the measurements. If you haven't started on step 1 yet, I'd like to take it (the driver accepting the one-dword NOP ffff1000). I have it ready locally: Pm4::FillerPacket also matches exactly 0xffff1000, so every walker steps over it as one dword, the same way d4f7ddaa handled it for sceAgcSetRangePredication. Tests cover Validate, a submission with your measured op = 0 output, and a COND_EXEC range containing the pad. I'll leave steps 2 and 3 to you unless you want me to take one. Happy to drop it if you already have it.
hugodearaujo commented 2026-10-08 20:19:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-08T20:19:42Z.


@aashishaxo Go ahead with step 1, I haven't started it. Thanks!

Status of the plan:

  • Step 1 (driver accepts the one-dword NOP ffff1000): @aashishaxo.
  • Step 2 (driver accepts the whole-range ACQUIRE_MEM and EVENT_WRITE event 56): nobody has it yet, so it's open for anyone who wants it.
  • Step 3 (the builder): already in #1629 by @ahmedhamouda78. It writes the measured groups for the bits the driver accepts today and throws for 0x040, 0x200 and 0x400 until step 2 lands.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068308519 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581#issuecomment-6068308519). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-08T20:19:42Z. --- @aashishaxo Go ahead with step 1, I haven't started it. Thanks! Status of the plan: - **Step 1** (driver accepts the one-dword NOP `ffff1000`): @aashishaxo. - **Step 2** (driver accepts the whole-range ACQUIRE_MEM and EVENT_WRITE event 56): nobody has it yet, so it's open for anyone who wants it. - **Step 3** (the builder): already in #1629 by @ahmedhamouda78. It writes the measured groups for the bits the driver accepts today and throws for 0x040, 0x200 and 0x400 until step 2 lands.
aashishaxo commented 2026-10-08 22:26:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by aashishaxo on 2026-10-08T22:26:44Z.


Step 1 is up as #1862: the driver now steps over ffff1000 as one dword. CI passed on my fork; upstream checks are waiting for approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6070291775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581#issuecomment-6070291775). Originally posted by [aashishaxo](https://github.com/aashishaxo) on 2026-10-08T22:26:44Z. --- Step 1 is up as #1862: the driver now steps over ffff1000 as one dword. CI passed on my fork; upstream checks are waiting for approval.
MarcZX10 commented 2026-10-09 08:15:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T08:15:24Z.


I tried step 2 in #2048, then closed it after reviewing the full diff. The whole-range ACQUIRE_MEM validation was already covered by #1917. I also rechecked the measured EVENT_WRITE word 0x138: PAL classifies event type 0x38 as PIXEL_PIPE_STAT_CONTROL and 0x39 as PIXEL_PIPE_STAT_DUMP (source). My first draft incorrectly called 0x38 a cache-flush timestamp and only validated its packet shape; that would accept an effect the driver does not model.

So 0x200 should remain unsupported in #1629 until the pixel-pipe statistics effect is understood and implemented. The 0x040 range portion is covered by #1917 once that PR lands; event type 56 is still open work.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6077139024 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581#issuecomment-6077139024). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T08:15:24Z. --- I tried step 2 in #2048, then closed it after reviewing the full diff. The whole-range `ACQUIRE_MEM` validation was already covered by #1917. I also rechecked the measured EVENT_WRITE word `0x138`: PAL classifies event type `0x38` as `PIXEL_PIPE_STAT_CONTROL` and `0x39` as `PIXEL_PIPE_STAT_DUMP` ([source](https://github.com/GPUOpen-Drivers/pal/blob/dev/src/core/hw/gfxip/gfx9/gfx9CmdUtil.cpp#L99-L102)). My first draft incorrectly called `0x38` a cache-flush timestamp and only validated its packet shape; that would accept an effect the driver does not model. So `0x200` should remain unsupported in #1629 until the pixel-pipe statistics effect is understood and implemented. The `0x040` range portion is covered by #1917 once that PR lands; event type 56 is still open work.
EdouardSence commented 2026-10-10 08:12:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-10T08:12:36Z.


A retail title that needs the bits that are still unsupported: Astro Bot (PPSA21567) calls sceAgcDcbResetQueue with op = 0xfff, state = 0.

Linux, GCC, Release, RX 9070 XT, RADV / Mesa 26.2.4. The run is on main a29bae31 + #2347, which is needed to get past the heap stop in #1789.

  • As is: about 76 s in it stops on sceAgcDcbResetQueue: unsupported op bit 0x40.
  • With #1917 merged locally (it is on main now) and the measured 0x040 group from the table above added to resetQueueGroup and order: the driver accepts the group. It is the whole-range ACQUIRE_MEM plus EVENT_WRITE 0x2e and 0x2c with index 0, and those two events were already accepted. The title then stops on the next bit, unsupported op bit 0x200 (op 0xfff state 0). That is the EVENT_WRITE 0x38 (PIXEL_PIPE_STAT_CONTROL) group that @MarcZX100 says should stay unsupported until its effect is modelled. After it comes 0x400.

So since #1917, the 0x040 part is only the builder change. 0x200 and 0x400 still need someone who knows what the pixel-pipe statistics control and the 0x400 group do. I can't open a PR for the 0x040 change at the moment (pr-intake). Whoever carries it is welcome to use this run as the title evidence.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095563319 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1581#issuecomment-6095563319). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-10T08:12:36Z. --- A retail title that needs the bits that are still unsupported: Astro Bot (PPSA21567) calls `sceAgcDcbResetQueue` with `op = 0xfff`, `state = 0`. Linux, GCC, Release, RX 9070 XT, RADV / Mesa 26.2.4. The run is on `main` a29bae31 + #2347, which is needed to get past the heap stop in #1789. - **As is:** about 76 s in it stops on `sceAgcDcbResetQueue: unsupported op bit 0x40`. - **With #1917 merged locally (it is on `main` now) and the measured 0x040 group from the table above added to `resetQueueGroup` and `order`:** the driver accepts the group. It is the whole-range `ACQUIRE_MEM` plus `EVENT_WRITE` 0x2e and 0x2c with index 0, and those two events were already accepted. The title then stops on the next bit, `unsupported op bit 0x200 (op 0xfff state 0)`. That is the `EVENT_WRITE 0x38` (`PIXEL_PIPE_STAT_CONTROL`) group that @MarcZX100 says should stay unsupported until its effect is modelled. After it comes 0x400. So since #1917, the 0x040 part is only the builder change. 0x200 and 0x400 still need someone who knows what the pixel-pipe statistics control and the 0x400 group do. I can't open a PR for the 0x040 change at the moment (`pr-intake`). Whoever carries it is welcome to use this run as the title evidence. *Tested and written by Claude (AI assistant) on a contributor's machine.*
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#1581
No description provided.