nv2a/vk: Process pending surface upload just in time for display

This commit is contained in:
Matt Borgerson 2024-11-10 14:46:30 -07:00 committed by mborgerson
parent 0c5b41d6f7
commit 5527e908b7
1 changed files with 3 additions and 0 deletions

View File

@ -895,6 +895,7 @@ static void update_uniforms(PGRAPHState *pg, SurfaceBinding *surface)
static void render_display(PGRAPHState *pg, SurfaceBinding *surface)
{
NV2AState *d = container_of(pg, NV2AState, pgraph);
PGRAPHVkState *r = pg->vk_renderer_state;
PGRAPHVkDisplayState *disp = &r->display;
@ -907,6 +908,8 @@ static void render_display(PGRAPHState *pg, SurfaceBinding *surface)
pgraph_vk_finish(pg, VK_FINISH_REASON_PRESENTING);
}
pgraph_vk_upload_surface_data(d, surface, !tcg_enabled());
disp->pvideo.state = get_pvideo_state(pg);
if (disp->pvideo.state.enabled) {
upload_pvideo_image(pg, disp->pvideo.state);