2023-02-25 13:24:59 +00:00
|
|
|
#include "Common/GPU/thin3d.h"
|
|
|
|
#include "GPU/GPUCommonHW.h"
|
2023-02-25 13:28:22 +00:00
|
|
|
#include "GPU/Common/DrawEngineCommon.h"
|
|
|
|
#include "GPU/Common/FramebufferManagerCommon.h"
|
2023-02-25 13:24:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
GPUCommonHW::GPUCommonHW(GraphicsContext *gfxCtx, Draw::DrawContext *draw) : GPUCommon(gfxCtx, draw) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
GPUCommonHW::~GPUCommonHW() {}
|
|
|
|
|
|
|
|
void GPUCommonHW::PreExecuteOp(u32 op, u32 diff) {
|
|
|
|
CheckFlushOp(op >> 24, diff);
|
|
|
|
}
|
2023-02-25 13:28:22 +00:00
|
|
|
|
|
|
|
void GPUCommonHW::CopyDisplayToOutput(bool reallyDirty) {
|
|
|
|
// Flush anything left over.
|
|
|
|
drawEngineCommon_->DispatchFlush();
|
|
|
|
|
|
|
|
shaderManager_->DirtyLastShader();
|
|
|
|
|
|
|
|
framebufferManager_->CopyDisplayToOutput(reallyDirty);
|
|
|
|
|
|
|
|
gstate_c.Dirty(DIRTY_TEXTURE_IMAGE);
|
|
|
|
}
|