summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 01:30:20 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 01:30:20 -0500
commitd9967fbe057457c07081585f350242f8024fd6af (patch)
tree271cc6810760ba37bfa3987662c5d45f3a9f0a3e /kernel/gsp_phys_booter.c
parentec6704d03ea41677d36da5e7dde4d98ad3e714c0 (diff)
downloadopen-iov-d9967fbe057457c07081585f350242f8024fd6af.tar.gz
open-iov-d9967fbe057457c07081585f350242f8024fd6af.zip
vgsp: eng80 - prefer the window carrying the VERTEX_STREAM CALL(2)
c835: the 151-word DRAW window (slot 34, no 0x3810 call) was saved and released; the client's VERTEX_STREAM_TURING CALL(2) was captured 11 s later from the 247-word state push, too late for that save. The 247-word window carries BOTH slot 34 and the 0x3810 call (relocated d2=0x1e22100). release_save now supersedes a saved record without a 0x3810 run when the new window carries one, so the release uses the window that has the VTG stream state (and eng79's slot-2 VA synth pair can bind the real VB base).
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index a1fefa9..deb8adc 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -19445,6 +19445,7 @@ static void gsp_phys_gr_mme_release_save(const struct gsp_phys_gr_submit *req,
struct gsp_phys_gr_mme_release_state *s = &gsp_phys_gr_mme_release;
unsigned long flags;
bool draw_ia, keep = false;
+ bool call2;
const char *prefer = NULL;
u32 old_h = 0, old_win = 0;
u32 vs_pre[24];
@@ -19470,6 +19471,7 @@ static void gsp_phys_gr_mme_release_save(const struct gsp_phys_gr_submit *req,
}
draw_ia = gsp_phys_gr_mme_window_has_draw_ia(req->stream,
req->stream_n);
+ call2 = gsp_phys_gr_mme_window_has_call2(req->stream, req->stream_n);
gsp_phys_gr_mme_call_census(req, held, win_n);
spin_lock_irqsave(&gsp_phys_gr_mme_release_lock, flags);
/*
@@ -19479,7 +19481,17 @@ static void gsp_phys_gr_mme_release_save(const struct gsp_phys_gr_submit *req,
* released or consumed record is never protected, so the no-DRAW_IAB
* case keeps the historical last-held-window-wins behaviour.
*/
- if (s->valid && !s->consumed && s->draw_ia && !draw_ia) {
+ /*
+ * eng80: the window that carries the client's VERTEX_STREAM_TURING
+ * CALL(2) (0x3810) supplies the VTG stream state; prefer it over a
+ * DRAW-only window without the call, even when the latter is the
+ * smaller draw window (c835: the 151-word draw window lacks the
+ * 0x3810 call; the 247-word state window carries it and slot 34).
+ */
+ if (s->valid && !s->consumed && call2 &&
+ !gsp_phys_gr_mme_window_has_call2(s->win, s->stream_n)) {
+ keep = false;
+ } else if (s->valid && !s->consumed && s->draw_ia && !draw_ia) {
old_h = s->h_object;
old_win = s->win_n;
keep = true;