aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-26 14:20:43 -0400
committerFernandoS27 <fsahmkow27@gmail.com>2019-07-26 16:54:22 -0400
commite82d6413572a2fc6c7d7f53e57414c3f4b0bd0c8 (patch)
tree455f64cda5b55086ca10d8841d8b4a77ae900276 /src/video_core/rasterizer_interface.h
parent6b8b59ee750ccceaa51463c1e2aa619134146bcd (diff)
GPU: Flush commands on every dma pusher step.
This commit ensures that the host gpu is constantly fed with commands to work with, while the guest gpu keeps producing the rest of the commands. This reduces syncing time between host and guest gpu.
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-rw-r--r--src/video_core/rasterizer_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index 9881df0d59..6e44d51cf9 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -50,6 +50,9 @@ public:
/// and invalidated
virtual void FlushAndInvalidateRegion(CacheAddr addr, u64 size) = 0;
+ // Notify the rasterizer to send all written commands to the host GPU.
+ virtual void FlushCommands() = 0;
+
/// Notify rasterizer that a frame is about to finish
virtual void TickFrame() = 0;