rsx: Implement stencil mirror views

- Implements a mirror view of D24S8 data that accesses the stencil components.
  Finishes the implementation of TEX2D_DEPTH_RGBA as the stencil component was previously missing from the reconstructed data
- Add a few missing destructors
  Image classes are inherited a lot and I forgot to make the dtors virtual
This commit is contained in:
kd-11 2018-11-24 15:54:46 +03:00 committed by kd-11
parent 696b91cb9b
commit 4b79ef1ad9
19 changed files with 401 additions and 156 deletions

View file

@ -116,7 +116,12 @@ void GLFragmentDecompilerThread::insertConstants(std::stringstream & OS)
const auto mask = (1 << index);
if (m_prog.shadow_textures & mask)
if (m_prog.redirected_textures & mask)
{
// Provide a stencil view of the main resource for the S channel
OS << "uniform u" << samplerType << " " << PI.name << "_stencil;\n";
}
else if (m_prog.shadow_textures & mask)
{
if (m_shadow_sampled_textures & mask)
{