[DXBC] Remove alphatest/A2C with [earlydepthstencil]

This commit is contained in:
Triang3l
2022-06-26 15:31:08 +03:00
parent b787f2dec1
commit e0b890fe5c
3 changed files with 21 additions and 12 deletions

View File

@@ -656,6 +656,14 @@ class DxbcShaderTranslator : public ShaderTranslator {
GetDxbcShaderModification().vertex.host_vertex_shader_type);
}
bool IsForceEarlyDepthStencilGlobalFlagEnabled() const {
return is_pixel_shader() &&
GetDxbcShaderModification().pixel.depth_stencil_mode ==
Modification::DepthStencilMode::kEarlyHint &&
!edram_rov_used_ &&
current_shader().implicit_early_z_write_allowed();
}
// Whether to use switch-case rather than if (pc >= label) for control flow.
bool UseSwitchForControlFlow() const;