forked from eden-emu/eden
[GPU]: Call TickGPU
This is my last try lol
This commit is contained in:
parent
eed010964e
commit
c0a1818bbf
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,7 @@ struct GPU::Impl {
|
|||
if (fast_path) {
|
||||
// Execute immediately and publish the result
|
||||
action();
|
||||
gpu_thread.TickGPU();
|
||||
const u64 fence = ++last_sync_fence;
|
||||
// Mirror the normal path: advance current and wake any waiters
|
||||
current_sync_fence.store(fence, std::memory_order_release);
|
||||
|
@ -293,6 +294,8 @@ struct GPU::Impl {
|
|||
auto raster_area = rasterizer->GetFlushArea(addr, size);
|
||||
rasterizer->FlushRegion(raster_area.start_address, raster_area.end_address - raster_area.start_address);
|
||||
raster_area.preemtive = true;
|
||||
// Give GPU thread a chance to run that flush
|
||||
gpu_thread.TickGPU();
|
||||
return raster_area;
|
||||
}
|
||||
auto raster_area = rasterizer->GetFlushArea(addr, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue