mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a/vk: Process pending surface upload just in time for display
This commit is contained in:
committed by
mborgerson
parent
0c5b41d6f7
commit
5527e908b7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user