From dd98a0b9133e4598bda9bfd66586b679931e4775 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Thu, 21 Apr 2016 19:35:13 +0200 Subject: [PATCH] gsdx: add a depth format flag --- plugins/GSdx/GSLocalMemory.cpp | 6 ++++++ plugins/GSdx/GSLocalMemory.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSLocalMemory.cpp b/plugins/GSdx/GSLocalMemory.cpp index 95371af473..db48b7b112 100644 --- a/plugins/GSdx/GSLocalMemory.cpp +++ b/plugins/GSdx/GSLocalMemory.cpp @@ -222,6 +222,7 @@ GSLocalMemory::GSLocalMemory() for(int j = 0; j < 8; j++) m_psm[i].rowOffset[j] = rowOffset32; m_psm[i].blockOffset = blockOffset32; m_psm[i].msk = 0xff; + m_psm[i].depth = 0; } m_psm[PSM_PSMCT16].pa = &GSLocalMemory::PixelAddress16; @@ -447,6 +448,11 @@ GSLocalMemory::GSLocalMemory() m_psm[PSM_PSMT8H].msk = 0xc0; m_psm[PSM_PSMT4HL].msk = 0x40; m_psm[PSM_PSMT4HH].msk = 0x80; + + m_psm[PSM_PSMZ32].depth = 1; + m_psm[PSM_PSMZ24].depth = 1; + m_psm[PSM_PSMZ16].depth = 1; + m_psm[PSM_PSMZ16S].depth = 1; } GSLocalMemory::~GSLocalMemory() diff --git a/plugins/GSdx/GSLocalMemory.h b/plugins/GSdx/GSLocalMemory.h index 3b24eb0b1e..1888abdc3c 100644 --- a/plugins/GSdx/GSLocalMemory.h +++ b/plugins/GSdx/GSLocalMemory.h @@ -111,7 +111,7 @@ public: GSVector2i bs, pgs; int* rowOffset[8]; short* blockOffset; - uint8 msk; + uint8 msk, depth; }; static psm_t m_psm[64];