nv2a: Invalidate zeta when constructing non-matching color surface

This commit is contained in:
Erik Abair 2022-05-19 18:07:03 -07:00 committed by GitHub
parent 397957a36c
commit 66b57dca9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -5911,6 +5911,10 @@ static void pgraph_update_surface_part(NV2AState *d, bool upload, bool color)
pg->surface_binding_dim.height = entry.height;
pg->surface_binding_dim.clip_y = entry.shape.clip_y;
pg->surface_binding_dim.clip_height = entry.shape.clip_height;
if (color && pg->zeta_binding && (pg->zeta_binding->width != entry.width || pg->zeta_binding->height != entry.height)) {
pg->surface_zeta.buffer_dirty = true;
}
}
NV2A_XPRINTF(DBG_SURFACES,