d3d9: Respect per-pixel depth rounding.

Using the 16-bit depth range.
This commit is contained in:
Unknown W. Brackets 2016-01-20 22:02:07 -08:00
parent 27dba51e70
commit f9970dba94

View File

@ -480,6 +480,9 @@ void DIRECTX9_GPU::CheckGPUFeatures() {
if (!g_Config.bHighQualityDepth) {
features |= GPU_SCALE_DEPTH_FROM_24BIT_TO_16BIT;
} else if (PSP_CoreParameter().compat.flags().PixelDepthRounding) {
// Assume we always have a 24-bit depth buffer.
features |= GPU_SCALE_DEPTH_FROM_24BIT_TO_16BIT;
} else if (PSP_CoreParameter().compat.flags().VertexDepthRounding) {
features |= GPU_ROUND_DEPTH_TO_16BIT;
}