Skip to content

Commit

Permalink
nv2a: Prevent GPU download after blit operation
Browse files Browse the repository at this point in the history
  • Loading branch information
abaire authored and mborgerson committed May 17, 2022
1 parent aec2883 commit a6cd0c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hw/xbox/nv2a/pgraph.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,11 @@ static void pgraph_image_blit(NV2AState *d)
if (image_blit->height < surf_dest->height ||
image_blit->width < surf_dest->width) {
pgraph_download_surface_data_if_dirty(d, surf_dest);
} else {
// The blit will completely replace the surface so any pending
// download should be discarded.
surf_dest->download_pending = false;
surf_dest->draw_dirty = false;
}
surf_dest->upload_pending = true;
}
Expand Down

0 comments on commit a6cd0c2

Please sign in to comment.