gsdx: add a depth format flag

This commit is contained in:
Gregory Hainaut 2016-04-21 19:35:13 +02:00
parent 5035c8bd48
commit dd98a0b913
2 changed files with 7 additions and 1 deletions

View File

@ -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()

View File

@ -111,7 +111,7 @@ public:
GSVector2i bs, pgs;
int* rowOffset[8];
short* blockOffset;
uint8 msk;
uint8 msk, depth;
};
static psm_t m_psm[64];