mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Reduce some includes under GPU/.
This commit is contained in:
parent
58237d976f
commit
a4327702f1
11 changed files with 26 additions and 15 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "Core/MemMap.h"
|
||||
#include "Core/Reporting.h"
|
||||
#include "Core/HLE/HLE.h"
|
||||
#include "Core/HLE/sceKernel.h"
|
||||
#include "Core/HLE/FunctionWrappers.h"
|
||||
#include "Core/Debugger/Breakpoints.h"
|
||||
#include "GPU/GPUInterface.h"
|
||||
|
|
|
@ -173,7 +173,7 @@ void __GeExecuteSync(u64 userdata, int cyclesLate)
|
|||
int listid = userdata >> 32;
|
||||
WaitType waitType = (WaitType) (userdata & 0xFFFFFFFF);
|
||||
bool wokeThreads = __GeTriggerWait(waitType, listid);
|
||||
gpu->SyncEnd(waitType, listid, wokeThreads);
|
||||
gpu->SyncEnd(waitType == WAITTYPE_GELISTSYNC ? GPU_SYNC_LIST : GPU_SYNC_DRAW, listid, wokeThreads);
|
||||
}
|
||||
|
||||
void __GeExecuteInterrupt(u64 userdata, int cyclesLate)
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
#ifndef _JIT64ASM_H
|
||||
#define _JIT64ASM_H
|
||||
|
||||
#include "../MIPS.h"
|
||||
#include <ArmEmitter.h>
|
||||
#include "Core/MIPS/MIPS.h"
|
||||
|
||||
// Runtime generated assembly routines, like the Dispatcher.
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include "GPU/GPUCommon.h"
|
||||
#include "GPU/GLES/Framebuffer.h"
|
||||
#include "GPU/GLES/VertexDecoder.h"
|
||||
#include "GPU/GLES/TransformPipeline.h"
|
||||
#include "GPU/GLES/TextureCache.h"
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "Core/Config.h"
|
||||
#include "GPU/GPUState.h"
|
||||
#include "GPU/Math3D.h"
|
||||
#include "GPU/Common/VertexDecoderCommon.h"
|
||||
#include "GPU/GLES/ShaderManager.h"
|
||||
#include "GPU/GLES/TransformPipeline.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "TransformPipeline.h"
|
||||
#include "GPU/GLES/TransformPipeline.h"
|
||||
#include "GPU/GLES/VertexDecoder.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/MemMap.h"
|
||||
#include "GPU/Math3D.h"
|
||||
|
|
|
@ -843,6 +843,10 @@ bool TransformDrawEngine::TestBoundingBox(void* control_points, int vertexCount,
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TransformDrawEngine::IsCodePtrVertexDecoder(const u8 *ptr) const {
|
||||
return decJitCache_->IsInSpace(ptr);
|
||||
}
|
||||
|
||||
// TODO: Probably move this to common code (with normalization?)
|
||||
|
||||
static Vec3f ClipToScreen(const Vec4f& coords) {
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include "GPU/Common/GPUDebugInterface.h"
|
||||
#include "GPU/Common/IndexGenerator.h"
|
||||
#include "GPU/GLES/VertexDecoder.h"
|
||||
#include "gfx/gl_common.h"
|
||||
#include "gfx/gl_lost_manager.h"
|
||||
|
||||
|
@ -29,6 +28,9 @@ class LinkedShader;
|
|||
class ShaderManager;
|
||||
class TextureCache;
|
||||
class FramebufferManager;
|
||||
class VertexDecoder;
|
||||
class VertexDecoderJitCache;
|
||||
struct TransformedVertex;
|
||||
|
||||
struct DecVtxFormat;
|
||||
|
||||
|
@ -134,9 +136,7 @@ public:
|
|||
DoFlush();
|
||||
}
|
||||
|
||||
bool IsCodePtrVertexDecoder(const u8 *ptr) const {
|
||||
return decJitCache_->IsInSpace(ptr);
|
||||
}
|
||||
bool IsCodePtrVertexDecoder(const u8 *ptr) const;
|
||||
|
||||
// Really just for convenience to share with softgpu.
|
||||
static u32 NormalizeVertices(u8 *outPtr, u8 *bufPtr, const u8 *inPtr, VertexDecoder *dec, int lowerBound, int upperBound, u32 vertType);
|
||||
|
|
|
@ -1031,9 +1031,9 @@ void GPUCommon::InterruptEnd(int listid) {
|
|||
}
|
||||
|
||||
// TODO: Maybe cleaner to keep this in GE and trigger the clear directly?
|
||||
void GPUCommon::SyncEnd(WaitType waitType, int listid, bool wokeThreads) {
|
||||
void GPUCommon::SyncEnd(GPUSyncType waitType, int listid, bool wokeThreads) {
|
||||
easy_guard guard(listLock);
|
||||
if (waitType == WAITTYPE_GEDRAWSYNC && wokeThreads)
|
||||
if (waitType == GPU_SYNC_DRAW && wokeThreads)
|
||||
{
|
||||
for (int i = 0; i < DisplayListMaxCount; ++i) {
|
||||
if (dls[i].state == PSP_GE_DL_STATE_COMPLETED) {
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
virtual void InterruptStart(int listid);
|
||||
virtual void InterruptEnd(int listid);
|
||||
virtual void SyncEnd(WaitType waitType, int listid, bool wokeThreads);
|
||||
virtual void SyncEnd(GPUSyncType waitType, int listid, bool wokeThreads);
|
||||
virtual void EnableInterrupts(bool enable) {
|
||||
interruptsEnabled_ = enable;
|
||||
}
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
#include <string>
|
||||
|
||||
#include "GPU/GPUState.h"
|
||||
#include "Core/HLE/sceKernelThread.h"
|
||||
#include "Core/HLE/sceGe.h"
|
||||
#include "Core/MemMap.h"
|
||||
|
||||
struct PspGeListArgs;
|
||||
class PointerWrap;
|
||||
|
||||
enum DisplayListStatus {
|
||||
|
@ -98,6 +98,12 @@ enum GPUState
|
|||
GPUSTATE_ERROR = 4,
|
||||
};
|
||||
|
||||
enum GPUSyncType
|
||||
{
|
||||
GPU_SYNC_DRAW,
|
||||
GPU_SYNC_LIST,
|
||||
};
|
||||
|
||||
// Used for debug
|
||||
struct FramebufferInfo
|
||||
{
|
||||
|
@ -203,7 +209,7 @@ public:
|
|||
|
||||
virtual void InterruptStart(int listid) = 0;
|
||||
virtual void InterruptEnd(int listid) = 0;
|
||||
virtual void SyncEnd(WaitType waitType, int listid, bool wokeThreads) = 0;
|
||||
virtual void SyncEnd(GPUSyncType waitType, int listid, bool wokeThreads) = 0;
|
||||
|
||||
virtual void PreExecuteOp(u32 op, u32 diff) = 0;
|
||||
virtual void ExecuteOp(u32 op, u32 diff) = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue