Making the GPU counter a vblank counter, not a timer.

This commit is contained in:
Ben Vanik
2013-10-20 02:00:51 -07:00
parent 39adeef2e3
commit fbea5a6394
6 changed files with 18 additions and 8 deletions

View File

@@ -160,6 +160,10 @@ void GraphicsSystem::WriteRegister(uint32_t r, uint64_t value) {
regs->values[r].u32 = (uint32_t)value;
}
void GraphicsSystem::MarkVblank() {
worker_->increment_counter();
}
void GraphicsSystem::DispatchInterruptCallback(
uint32_t source, uint32_t cpu) {
// Pick a CPU, if needed. We're going to guess 2. Because.