rsx: Fixups

This commit is contained in:
kd-11 2017-09-18 20:22:34 +03:00
parent 571dbfb7b1
commit 3836b40bf7
6 changed files with 252 additions and 192 deletions

View file

@ -1355,8 +1355,14 @@ namespace rsx
case CELL_GCM_TEXTURE_DEPTH16:
case CELL_GCM_TEXTURE_DEPTH24_D8:
case CELL_GCM_TEXTURE_DEPTH16_FLOAT:
{
const auto compare_mode = (rsx::comparison_function)tex.zfunc();
if (result.textures_alpha_kill[i] == 0 &&
compare_mode < rsx::comparison_function::always &&
compare_mode > rsx::comparison_function::never)
result.shadow_textures |= (1 << i);
break;
break;
}
default:
LOG_ERROR(RSX, "Depth texture bound to pipeline with unexpected format 0x%X", format);
}