gsdx-tc: add support of pseudo 8 bits RT conversion

Code is obviously slow but at least it works.

It fixes the blur effect of VP2
This commit is contained in:
Gregory Hainaut 2015-06-25 09:12:03 +02:00
parent 77e718c61f
commit 9802ba6621
1 changed files with 10 additions and 1 deletions

View File

@ -129,7 +129,16 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
if(t->m_used && t->m_dirty.empty()) {
if (GSUtil::HasSharedBits(bp, psm, t->m_TEX0.TBP0, t->m_TEX0.PSM)) {
dst = t;
if (psm == PSM_PSMT8) {
// It is a complex to convert the code in shader. As a reference, let's do it on the CPU, it will
// be slow but
// 1/ it just works :)
// 2/ even with upscaling
// 3/ for both DX and OpenGL
Read(t, t->m_valid);
} else {
dst = t;
}
break;