More Tweaks

This commit is contained in:
Luke Usher 2018-04-02 19:59:37 +01:00
parent 1a2bbc2d1a
commit 64f60f7189
4 changed files with 5 additions and 4 deletions

View File

@ -467,8 +467,6 @@ DEVICE_WRITE32(PGRAPH)
% GET_MASK(d->pgraph.regs[NV_PGRAPH_SURFACE], % GET_MASK(d->pgraph.regs[NV_PGRAPH_SURFACE],
NV_PGRAPH_SURFACE_MODULO_3D)); NV_PGRAPH_SURFACE_MODULO_3D));
qemu_cond_broadcast(&d->pgraph.flip_3d); qemu_cond_broadcast(&d->pgraph.flip_3d);
NV2ADevice::SwapBuffers(d);
} }
break; break;
case NV_PGRAPH_FIFO: case NV_PGRAPH_FIFO:

View File

@ -28,12 +28,12 @@ DEVICE_WRITE32(PVIDEO)
switch (addr) { switch (addr) {
case NV_PVIDEO_BUFFER: case NV_PVIDEO_BUFFER:
d->pvideo.regs[addr] = value; d->pvideo.regs[addr] = value;
// TODO : d->vga.enable_overlay = true; d->enable_overlay = true;
pvideo_vga_invalidate(d); pvideo_vga_invalidate(d);
break; break;
case NV_PVIDEO_STOP: case NV_PVIDEO_STOP:
d->pvideo.regs[NV_PVIDEO_BUFFER] = 0; d->pvideo.regs[NV_PVIDEO_BUFFER] = 0;
// TODO : d->vga.enable_overlay = false; d->enable_overlay = false;
pvideo_vga_invalidate(d); pvideo_vga_invalidate(d);
break; break;
default: default:

View File

@ -450,6 +450,8 @@ static void nv2a_vblank_thread(NV2AState *d)
d->pcrtc.pending_interrupts |= NV_PCRTC_INTR_0_VBLANK; d->pcrtc.pending_interrupts |= NV_PCRTC_INTR_0_VBLANK;
update_irq(d); update_irq(d);
nextVBlankTime = GetNextVBlankTime(); nextVBlankTime = GetNextVBlankTime();
NV2ADevice::SwapBuffers(d);
} }
} }
} }

View File

@ -495,6 +495,7 @@ typedef struct NV2AState {
// PCIDevice dev; // PCIDevice dev;
// qemu_irq irq; // qemu_irq irq;
bool exiting; bool exiting;
bool enable_overlay = false;
// VGACommonState vga; // VGACommonState vga;
// GraphicHwOps hw_ops; // GraphicHwOps hw_ops;