mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 06:02:15 -04:00
[jak2] combined shadow work PR (#2632)
This PR is a combination of https://github.com/open-goal/jak-project/pull/2507 and some additional changes to port Shadow VU1 to OpenGL. As far as I can tell, it's working. --------- Co-authored-by: Hat Kid <6624576+Hat-Kid@users.noreply.github.com>
This commit is contained in:
@@ -106,6 +106,17 @@ class DmaFollower {
|
||||
return result;
|
||||
}
|
||||
|
||||
DmaTransfer advance_and_print_dma(DmaFollower& dma) {
|
||||
auto data = dma.read_and_advance();
|
||||
printf(
|
||||
"dma transfer:\n%ssize: %d\nvif0: %s, data: %d\nvif1: %s, data: %d, imm: "
|
||||
"%d\n\n",
|
||||
dma.current_tag().print().c_str(), data.size_bytes, data.vifcode0().print().c_str(),
|
||||
data.vif0(), data.vifcode1().print().c_str(), data.vifcode1().num,
|
||||
data.vifcode1().immediate);
|
||||
return data;
|
||||
}
|
||||
|
||||
DmaTag current_tag() const { return DmaTag(read_val<u64>(m_tag_offset)); }
|
||||
u32 current_tag_vif0() const { return read_val<u32>(m_tag_offset + 8); }
|
||||
u32 current_tag_vif1() const { return read_val<u32>(m_tag_offset + 12); }
|
||||
|
||||
Reference in New Issue
Block a user