[D3D12] ROV: Alpha to coverage (without dithering)

This commit is contained in:
Triang3l
2019-01-21 21:28:26 +03:00
parent 6f5d616372
commit 0a9feb5eca
3 changed files with 274 additions and 46 deletions

View File

@@ -2028,6 +2028,10 @@ void D3D12CommandProcessor::UpdateSystemConstantValues(
DxbcShaderTranslator::kSysFlag_AlphaPassIfEqual |
DxbcShaderTranslator::kSysFlag_AlphaPassIfGreater;
}
// Alpha to coverage.
if (rb_colorcontrol & 0x10) {
flags |= DxbcShaderTranslator::kSysFlag_AlphaToCoverage;
}
// Gamma writing.
if (((regs[XE_GPU_REG_RB_COLOR_INFO].u32 >> 16) & 0xF) ==
uint32_t(ColorRenderTargetFormat::k_8_8_8_8_GAMMA)) {