mirror of https://github.com/xemu-project/xemu.git
nv2a/vk: Create surface if one not currently bound
This commit is contained in:
parent
c802468d05
commit
9161e3e14a
|
@ -1178,7 +1178,11 @@ static void update_surface_part(NV2AState *d, bool upload, bool color)
|
||||||
d->vram, target.vram_addr,
|
d->vram, target.vram_addr,
|
||||||
target.size, DIRTY_MEMORY_NV2A);
|
target.size, DIRTY_MEMORY_NV2A);
|
||||||
|
|
||||||
if (upload && (pg_surface->buffer_dirty || mem_dirty)) {
|
SurfaceBinding *current_binding = color ? r->color_binding
|
||||||
|
: r->zeta_binding;
|
||||||
|
|
||||||
|
if (!current_binding ||
|
||||||
|
(upload && (pg_surface->buffer_dirty || mem_dirty))) {
|
||||||
// FIXME: We don't need to be so aggressive flushing the command list
|
// FIXME: We don't need to be so aggressive flushing the command list
|
||||||
// pgraph_vk_finish(pg, VK_FINISH_REASON_SURFACE_CREATE);
|
// pgraph_vk_finish(pg, VK_FINISH_REASON_SURFACE_CREATE);
|
||||||
pgraph_vk_ensure_not_in_render_pass(pg);
|
pgraph_vk_ensure_not_in_render_pass(pg);
|
||||||
|
|
Loading…
Reference in New Issue