summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/gsp_sema_service.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c
index 180979b..aeddb7f 100644
--- a/kernel/gsp_sema_service.c
+++ b/kernel/gsp_sema_service.c
@@ -10959,6 +10959,27 @@ static void svc_gl_field(u32 addr, u32 count, const u8 *data, u32 dlen)
}
return;
}
+ /*
+ * eng82: the client's VERTEX_STREAM_TURING CALL(2) (0x3810) payload
+ * carries the VTG vertex-buffer VA (e.g. 0x0450e100). Collect the
+ * plausible address words into the section's page set so the
+ * forward fill resolves/maps the VB page and the release's
+ * synthesized stream-location pair can be relocated (c840:
+ * VS-BLOB2 va=0x450e100 unresolved - the VB page was never in the
+ * candidate set).
+ */
+ if (addr == 0x3810u) {
+ u32 k;
+
+ for (k = 1; k < count && k < 4u; k++) {
+ u32 w = v[k];
+
+ if (w >= 0x100000u && w < 0x1000000000ULL &&
+ !(w & 3u))
+ svc_gl_add_ptr((u64)w);
+ }
+ return;
+ }
if (addr == 0x1b00) {
if (count >= 2)
svc_gl_add_ptr(((u64)(v[0] & 0xffu) << 32) |