gsdx-ogl: add a variable to select FB output

Either 32bits/24bits/16bits
This commit is contained in:
Gregory Hainaut 2015-05-26 14:59:07 +02:00
parent 93c0d5a268
commit d31bd97d59
3 changed files with 7 additions and 1 deletions

View File

@ -627,6 +627,7 @@ GLuint GSDeviceOGL::CompilePS(PSSelector sel)
+ format("#define PS_WMT %d\n", sel.wmt)
+ format("#define PS_FMT %d\n", sel.fmt)
+ format("#define PS_IFMT %d\n", sel.ifmt)
+ format("#define PS_DFMT %d\n", sel.dfmt)
+ format("#define PS_AEM %d\n", sel.aem)
+ format("#define PS_TFX %d\n", sel.tfx)
+ format("#define PS_TCC %d\n", sel.tcc)

View File

@ -321,7 +321,9 @@ class GSDeviceOGL : public GSDevice
// Word 2
uint32 blend:8;
uint32 _free2:24;
uint32 dfmt:2;
uint32 _free2:22;
};
uint64 key;

View File

@ -249,6 +249,9 @@ void GSRendererOGL::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sour
GSDeviceOGL::OMColorMaskSelector om_csel;
GSDeviceOGL::OMDepthStencilSelector om_dssel;
// Format of the output
ps_sel.dfmt = GSLocalMemory::m_psm[context->FRAME.PSM].fmt;
// Blend
if (!IsOpaque())