gsdx-d3d11: Fetch the texture PSM format rather than the context format in texture sampler.

Match opengl behavior.
This commit is contained in:
lightningterror 2019-10-11 12:33:31 +02:00
parent 70c2778686
commit b34338a500
1 changed files with 3 additions and 1 deletions

View File

@ -613,7 +613,9 @@ void GSRendererDX11::EmulateBlending()
void GSRendererDX11::EmulateTextureSampler(const GSTextureCache::Source* tex)
{
const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[m_context->TEX0.PSM];
// Warning fetch the texture PSM format rather than the context format. The latter could have been corrected in the texture cache for depth.
//const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[m_context->TEX0.PSM];
const GSLocalMemory::psm_t &psm = GSLocalMemory::m_psm[tex->m_TEX0.PSM];
const GSLocalMemory::psm_t &cpsm = psm.pal > 0 ? GSLocalMemory::m_psm[m_context->TEX0.CPSM] : psm;
const uint8 wms = m_context->CLAMP.WMS;