mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Small simplification
This commit is contained in:
1 parent
f1e3399916
commit
794fa28035
5 files changed
+11
-10
No files matched your search
@@ -140,14 +140,12 @@ bool FramebufferManagerCommon::PresentedThisFrame() const {
|
||||
return presentation_->PresentedThisFrame();
|
||||
}
|
||||
|
||||
void FramebufferManagerCommon::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format, GPURecord::Recorder *recorder) {
|
||||
void FramebufferManagerCommon::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
|
||||
displayFramebufPtr_ = framebuf & 0x3FFFFFFF;
|
||||
if (Memory::IsVRAMAddress(displayFramebufPtr_))
|
||||
displayFramebufPtr_ = framebuf & 0x041FFFFF;
|
||||
displayStride_ = stride;
|
||||
displayFormat_ = format;
|
||||
GPUDebug::NotifyDisplay(framebuf, stride, format);
|
||||
recorder->NotifyDisplay(framebuf, stride, format);
|
||||
}
|
||||
|
||||
VirtualFramebuffer *FramebufferManagerCommon::GetVFBAt(u32 addr) const {
|
||||
|
||||
@@ -273,10 +273,6 @@ namespace Draw {
|
||||
class DrawContext;
|
||||
}
|
||||
|
||||
namespace GPURecord {
|
||||
class Recorder;
|
||||
}
|
||||
|
||||
struct DrawPixelsEntry {
|
||||
Draw::Texture *tex;
|
||||
uint64_t contentsHash;
|
||||
@@ -306,7 +302,7 @@ public:
|
||||
|
||||
void Init(int msaaLevel);
|
||||
virtual void BeginFrame();
|
||||
void SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format, GPURecord::Recorder *recorder);
|
||||
void SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format);
|
||||
void DestroyFramebuf(VirtualFramebuffer *v);
|
||||
|
||||
VirtualFramebuffer *DoSetRenderFrameBuffer(FramebufferHeuristicParams ¶ms, u32 skipDrawReason);
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <vector>
|
||||
#include "Common/Log.h"
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Common/TimeUtil.h"
|
||||
#include "GPU/GPU.h"
|
||||
#include "GPU/Debugger/Breakpoints.h"
|
||||
#include "GPU/Debugger/Debugger.h"
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace GPUDebug {
|
||||
@@ -35,6 +37,9 @@ enum class BreakNext {
|
||||
COUNT,
|
||||
};
|
||||
|
||||
const char *BreakNextToString(BreakNext next);
|
||||
bool ParsePrimRanges(std::string_view rule, std::vector<std::pair<int, int>> *output);
|
||||
|
||||
bool NeedsSlowInterpreter();
|
||||
|
||||
void SetBreakNext(BreakNext next, GPUBreakpoints *breakpoints);
|
||||
|
||||
+4
-1
@@ -13,6 +13,7 @@
|
||||
#include "GPU/Common/DrawEngineCommon.h"
|
||||
#include "GPU/Common/TextureCacheCommon.h"
|
||||
#include "GPU/Common/FramebufferManagerCommon.h"
|
||||
#include "GPU/Debugger/Debugger.h"
|
||||
|
||||
struct CommonCommandTableEntry {
|
||||
uint8_t cmd;
|
||||
@@ -512,7 +513,9 @@ void GPUCommonHW::BeginHostFrame() {
|
||||
}
|
||||
|
||||
void GPUCommonHW::SetDisplayFramebuffer(u32 framebuf, u32 stride, GEBufferFormat format) {
|
||||
framebufferManager_->SetDisplayFramebuffer(framebuf, stride, format, &recorder_);
|
||||
framebufferManager_->SetDisplayFramebuffer(framebuf, stride, format);
|
||||
GPUDebug::NotifyDisplay(framebuf, stride, format);
|
||||
recorder_.NotifyDisplay(framebuf, stride, format);
|
||||
}
|
||||
|
||||
void GPUCommonHW::CheckFlushOp(int cmd, u32 diff) {
|
||||
|
||||
Reference in new issue
Block a user