nv2a: Process pending surface uploads before render to texture

This commit is contained in:
Erik Abair 2022-05-10 17:56:58 -07:00 committed by GitHub
parent 496a7b7099
commit aec2883c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6327,7 +6327,11 @@ static void pgraph_bind_textures(NV2AState *d)
SurfaceBinding *surface = pgraph_surface_get(d, texture_vram_offset);
if (surface != NULL) {
surf_to_tex = pgraph_check_surface_to_texture_compatibility(
surface, &state);
surface, &state);
if (surf_to_tex && surface->upload_pending) {
pgraph_upload_surface_data(d, surface, false);
}
}
if (!surf_to_tex) {