From 01c22a8d96d9de45a02d7556178445b3eed89f2b Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sun, 15 Nov 2026 18:41:45 -0500 Subject: vgsp: eng70 - census the vertex-stream family and dump VS size/attribute state The per-draw VB bind is still located: extend sema_mme_census to 0x1c00..0x1cf8 (vertex stream FORMAT/LOCATION/SIZE) and 0x600..0x61c (stream sizes), print up to 3 data words per hit (the location pairs need UPPER,LOWER), and add a second DRAW-STATE line with the stream sizes (SZ0/SZ1/SZ3) and the first SET_VERTEX_ATTRIBUTE_A(0..2) words (ATTR0), so a zero-size stream or a mismatched attribute format is visible next to VS0 and the viewport. --- kernel/gsp_sema_service.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'kernel/gsp_sema_service.c') diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 20b52cb..6eb3547 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -18286,7 +18286,7 @@ static void svc_mme_census(const u8 *buf, u32 len, u64 push_va, u32 h_object) { u32 off = 0; u32 nhit = 0; - char line[512]; + char line[900]; int lc = 0; if (!READ_ONCE(svc_mme_census_flag) || svc_mme_census_n >= 128) @@ -18317,15 +18317,21 @@ static void svc_mme_census(const u8 *buf, u32 len, u64 push_va, u32 h_object) if ((addr >= 0x114u && addr <= 0x124u) || addr == 0x234u || (addr >= 0x550u && addr <= 0x568u) || + (addr >= 0x600u && addr <= 0x61cu) || + (addr >= 0x1c00u && addr <= 0x1cf8u) || (addr >= 0x3400u && addr <= 0x34fcu) || (addr >= 0x3800u && addr <= 0x39fcu)) { - u32 v0 = 0; + u32 v0 = 0, v1 = 0, v2 = 0; if (off + 8 <= len) memcpy(&v0, buf + off + 4, 4); + if (off + 12 <= len) + memcpy(&v1, buf + off + 8, 4); + if (off + 16 <= len) + memcpy(&v2, buf + off + 12, 4); lc += scnprintf(line + lc, sizeof(line) - lc, - "%s0x%x@0x%x(%08x)", - nhit ? "," : "", addr, off, v0); + "%s0x%x@0x%x(%08x,%08x,%08x)", + nhit ? "," : "", addr, off, v0, v1, v2); nhit++; } off += (op == 1u || op == 3u || op == 5u) && cnt ? -- cgit v1.2.3