From 5527e908b769bba1c179ee7b61a7cb29fbb7b5ec Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 10 Nov 2024 14:46:30 -0700 Subject: [PATCH] nv2a/vk: Process pending surface upload just in time for display --- hw/xbox/nv2a/pgraph/vk/display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xbox/nv2a/pgraph/vk/display.c b/hw/xbox/nv2a/pgraph/vk/display.c index 89a1cb87b3..19364aa3b0 100644 --- a/hw/xbox/nv2a/pgraph/vk/display.c +++ b/hw/xbox/nv2a/pgraph/vk/display.c @@ -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);