Move SetDisplayFramebuffer to GPUCommonHW

This commit is contained in:
Henrik Rydgård
2023-02-25 17:42:46 +01:00
parent 71ed265c57
commit 8520e1dec5
4 changed files with 6 additions and 5 deletions
-4
View File
@@ -2031,10 +2031,6 @@ void GPUCommon::SetCmdValue(u32 op) {
downcount = 0;
}
void GPUCommon::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
framebufferManager_->SetDisplayFramebuffer(framebuf, stride, format);
}
void GPUCommon::DoBlockTransfer(u32 skipDrawReason) {
u32 srcBasePtr = gstate.getTransferSrcAddress();
u32 srcStride = gstate.getTransferSrcStride();
-1
View File
@@ -127,7 +127,6 @@ public:
uint32_t SetAddrTranslation(uint32_t value) override;
uint32_t GetAddrTranslation() override;
void SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) override;
void CopyDisplayToOutput(bool reallyDirty) override = 0;
bool PerformMemoryCopy(u32 dest, u32 src, int size, GPUCopyFlag flags = GPUCopyFlag::NONE) override;
bool PerformMemorySet(u32 dest, u8 v, int size) override;
+4
View File
@@ -466,6 +466,10 @@ void GPUCommonHW::BeginFrame() {
}
}
void GPUCommonHW::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
framebufferManager_->SetDisplayFramebuffer(framebuf, stride, format);
}
void GPUCommonHW::CheckFlushOp(int cmd, u32 diff) {
const u8 cmdFlags = cmdInfo_[cmd].flags;
if (diff && (cmdFlags & FLAG_FLUSHBEFOREONCHANGE)) {
+2
View File
@@ -17,6 +17,8 @@ public:
u32 CheckGPUFeatures() const override;
void SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) override;
// Using string because it's generic - makes no assumptions on the size of the shader IDs of this backend.
std::vector<std::string> DebugGetShaderIDs(DebugShaderType shader) override;
std::string DebugGetShaderString(std::string id, DebugShaderType shader, DebugShaderStringType stringType) override;