summaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-20 11:55:32 -0400
committerGravatar Fernando Sahmkow2020-04-22 11:36:17 -0400
commit1fb516cd979ed0dbf8fa7cb4f6a334932dfb6434 (patch)
tree123d3f3e906e1af35c4bbced2d9029bc93fb4653 /src/video_core/gpu_thread.h
parentFenceManager: Manage syncpoints and rename fences to semaphores. (diff)
downloadyuzu-1fb516cd979ed0dbf8fa7cb4f6a334932dfb6434.tar.gz
yuzu-1fb516cd979ed0dbf8fa7cb4f6a334932dfb6434.tar.xz
yuzu-1fb516cd979ed0dbf8fa7cb4f6a334932dfb6434.zip
GPU: Implement Flush Requests for Async mode.
Diffstat (limited to 'src/video_core/gpu_thread.h')
-rw-r--r--src/video_core/gpu_thread.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/gpu_thread.h b/src/video_core/gpu_thread.h
index 9d0877921..5a28335d6 100644
--- a/src/video_core/gpu_thread.h
+++ b/src/video_core/gpu_thread.h
@@ -70,12 +70,16 @@ struct FlushAndInvalidateRegionCommand final {
70 u64 size; 70 u64 size;
71}; 71};
72 72
73/// Command to signal to the GPU thread that processing has ended 73/// Command called within the gpu, to schedule actions after a command list end
74struct OnCommandListEndCommand final {}; 74struct OnCommandListEndCommand final {};
75 75
76/// Command to make the gpu look into pending requests
77struct GPUTickCommand final {};
78
76using CommandData = 79using CommandData =
77 std::variant<EndProcessingCommand, SubmitListCommand, SwapBuffersCommand, FlushRegionCommand, 80 std::variant<EndProcessingCommand, SubmitListCommand, SwapBuffersCommand, FlushRegionCommand,
78 InvalidateRegionCommand, FlushAndInvalidateRegionCommand, OnCommandListEndCommand>; 81 InvalidateRegionCommand, FlushAndInvalidateRegionCommand, OnCommandListEndCommand,
82 GPUTickCommand>;
79 83
80struct CommandDataContainer { 84struct CommandDataContainer {
81 CommandDataContainer() = default; 85 CommandDataContainer() = default;