From b9ca947ae0c9d45a4f76a58d1a0e1e4924f32a72 Mon Sep 17 00:00:00 2001 From: iCatButler Date: Thu, 1 Sep 2016 09:00:00 +0100 Subject: Fix some edge cases and imprve depth visualisation: - Remove upper 4-bits of each vertex as they may contain bad data (THPS) - Check if memory block from DMA is as expected, some primitives are not the first data in the block and preceding data needs to be skipped (HT, A2) - Change depth visualisation to a colour gradient that makes inconsistencies easier to see - Add support for visualising low resolution but consistent depth found in the Ordering Table --- plugins/peopsxgl/pgxp_gpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/peopsxgl/pgxp_gpu.h') diff --git a/plugins/peopsxgl/pgxp_gpu.h b/plugins/peopsxgl/pgxp_gpu.h index aacc6912..789993d4 100644 --- a/plugins/peopsxgl/pgxp_gpu.h +++ b/plugins/peopsxgl/pgxp_gpu.h @@ -36,7 +36,8 @@ struct OGLVertexTag; typedef struct OGLVertexTag OGLVertex; void PGXP_SetMatrix(float left, float right, float bottom, float top, float zNear, float zFar); -void PGXP_SetAddress(unsigned int addr); +void PGXP_SetAddress(unsigned int addr, uint32_t *baseAddrL, int size); +void PGXP_SetDepth(unsigned int addr); int PGXP_GetVertices(unsigned int* addr, void* pOutput, int xOffs, int yOffs); void PGXP_glVertexfv(GLfloat* pVertex); -- cgit v1.2.3