Skip to content

Commit

Permalink
Gsdx-d3d: Allow Direct3D11 to skip psm.depth on texture sampler.
Browse files Browse the repository at this point in the history
depth fmt is not yet supported. This ensures there are no regressions,
and we are skipping the draw calls for depth fmt not yet supported.
  • Loading branch information
lightningterror committed Dec 9, 2018
1 parent 7928cff commit 9a5bf12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/GSdx/Renderers/DXCommon/GSRendererDX.cpp
Expand Up @@ -242,6 +242,12 @@ void GSRendererDX::EmulateTextureSampler(const GSTextureCache::Source* tex)

GSVector4 WH(tw, th, w, h);

if (psm.depth)
{
// Depth fmt not supported yet, ensure draw calls are skipped to make sure convert depth works properly.
throw GSDXRecoverableError();
}

// Performance note:
// 1/ Don't set 0 as it is the default value
// 2/ Only keep aem when it is useful (avoid useless shader permutation)
Expand Down

0 comments on commit 9a5bf12

Please sign in to comment.