Fix crash in ocean-far with invalid DMA size (#3746)

DMA sizes are 16-bits, not 12-bits. This would cause rare crashes when
the ocean far renderer uses more than this.

I'm not really sure what the ocean far rendering is doing at this time,
but it happens as stuff is loading in.

There's a chance this fixes crashes in jak 2 as well, since we used to
see errors that would be explained by this.

Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
water111 2024-11-12 13:38:51 -05:00 committed by GitHub
parent af5cb9b1cb
commit 7553877e57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ struct DmaTag {
DmaTag(u64 value) {
spr = (value >> 63);
addr = (value >> 32) & 0x7fffffff;
qwc = value & 0xfff;
qwc = value & 0xffff;
kind = Kind((value >> 28) & 0b111);
}