Stored TA command stream persists on TA_LIST_INIT, until first actual write.

Fixes #141, "Main menus on POD and Speed Devil show up black"

Seems like the TA doesn't touch any of the memory structures before first write (and probably later on, but we're not gonna support corrupted ta streams for now)

According to p1pkin

«At least in SpeedDevils, at title screen game do a bit weird thing
 - Init TA context
 - Send lists to TA
 - Init the same context again
 - Start Render

so, if you are clear stored poly/vertex data at "TA_LIST_INIT" pvr2 reg write - you'll get black screen instead game title»
This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2014-04-25 19:57:34 +03:00 committed by ptitSeb
parent 1cf68c7b38
commit b55fbef3a6
1 changed files with 4 additions and 0 deletions

View File

@ -146,7 +146,11 @@ struct TA_context
void MarkRend() void MarkRend()
{ {
<<<<<<< HEAD
rend.proc_start = tad.thd_root; rend.proc_start = tad.thd_root;
=======
rend.proc_start = rend.proc_end;
>>>>>>> Stored TA command stream persists on TA_LIST_INIT, until first actual write.
rend.proc_end = tad.End(); rend.proc_end = tad.End();
} }
void Alloc() void Alloc()