From 29feece4b849bd40cc6dcef6c60f4bc58707557a Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 16 Mar 2018 20:32:44 -0500 Subject: GPU: Process command mode 5 (IncreaseOnce) differently from other commands. Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode? --- src/video_core/gpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core/gpu.h') diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index ba7781756..c5ec6fdef 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -41,6 +41,9 @@ private: /// Writes a single register in the engine bound to the specified subchannel void WriteReg(u32 method, u32 subchannel, u32 value); + /// Calls a method in the engine bound to the specified subchannel with the input parameters. + void CallMethod(u32 method, u32 subchannel, const std::vector& parameters); + /// Mapping of command subchannels to their bound engine ids. std::unordered_map bound_engines; -- cgit v1.2.3