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_phys_booter.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kernel/gsp_phys_booter.c') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 8da7478..ad55aab 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -5445,6 +5445,18 @@ static void gsp_phys_draw_state_log(void __iomem *bar0, u32 h_object, gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0274u), gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0d74u), gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0d78u)); + pr_info("vgsp-draw: DRAW-STATE h=0x%x SZ0=%08x/%08x SZ1=%08x/%08x SZ3=%08x/%08x ATTR0=%08x/%08x/%08x/%08x\n", + h_object, + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0600u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0604u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0608u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x060cu), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0618u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x061cu), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1160u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1164u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1170u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1174u)); } static bool gsp_phys_mme_fast_sample(void __iomem *bar0, const char *tag, -- cgit v1.2.3