From ea2c79d78996a09a67399a245a299194dcb4af23 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 3 Jun 2017 14:13:37 -0700 Subject: [PATCH] GPU: Add a debug method to grab list tick wait. So that we can wait until then when doing test drawing. --- GPU/GPUCommon.h | 9 ++++++++- GPU/GPUInterface.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/GPU/GPUCommon.h b/GPU/GPUCommon.h index da2eb6f11d..95e9d42465 100644 --- a/GPU/GPUCommon.h +++ b/GPU/GPUCommon.h @@ -203,7 +203,7 @@ public: const std::list& GetDisplayLists() override { return dlQueue; } - virtual bool DecodeTexture(u8* dest, const GPUgstate &state) override { + bool DecodeTexture(u8* dest, const GPUgstate &state) override { return false; } std::vector GetFramebufferList() override { @@ -212,6 +212,13 @@ public: void ClearShaderCache() override {} void CleanupBeforeUI() override {} + s64 GetListTicks(int listid) override { + if (listid >= 0 && listid < DisplayListMaxCount) { + return dls[listid].waitTicks; + } + return -1; + } + std::vector DebugGetShaderIDs(DebugShaderType shader) override { return std::vector(); }; std::string DebugGetShaderString(std::string id, DebugShaderType shader, DebugShaderStringType stringType) override { return "N/A"; diff --git a/GPU/GPUInterface.h b/GPU/GPUInterface.h index 9d7b44bd6e..ceed93eb15 100644 --- a/GPU/GPUInterface.h +++ b/GPU/GPUInterface.h @@ -299,6 +299,7 @@ public: virtual const std::list& GetDisplayLists() = 0; virtual bool DecodeTexture(u8* dest, const GPUgstate &state) = 0; virtual std::vector GetFramebufferList() = 0; + virtual s64 GetListTicks(int listid) = 0; // For debugging. The IDs returned are opaque, do not poke in them or display them in any way. virtual std::vector DebugGetShaderIDs(DebugShaderType type) = 0;