mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-20 12:45:57 +00:00
Return 0 from storage_rewritten when write tracking is unavailable
This commit is contained in:
1 parent
a2819a0bb4
commit
45430366b1
1 file changed
+1
-1
@@ -751,7 +751,7 @@ static int storage_rewritten(const Tex *e, uint32_t since, uint32_t *now) {
|
||||
uint64_t lo = (e->pub.addr + 0xfff) & ~0xfffull, hi = (e->pub.addr + e->t.L.size) & ~0xfffull;
|
||||
if (hi <= lo) lo = e->pub.addr, hi = e->pub.addr + e->t.L.size;
|
||||
int ch = vk_mem_changed(lo, hi - lo, since, now);
|
||||
if (ch != 1 || !since || !e->snap || memcmp(e->snap, (const void *)(uintptr_t)e->pub.addr, e->t.L.size)) return ch;
|
||||
if (ch != 1 || !since || !e->snap || memcmp(e->snap, (const void *)(uintptr_t)e->pub.addr, e->t.L.size)) return ch == 1;
|
||||
log_limited(&n_kept, "write-back of %#llx kept: fmt %#x %ux%u, %llu bytes; a neighbour wrote its page",
|
||||
(unsigned long long)e->pub.addr, e->t.d.format, e->t.d.width, e->t.d.height,
|
||||
(unsigned long long)e->t.L.size);
|
||||
|
||||
Reference in new issue
Block a user