[GPU/D3D12] Add forgotten gamma conversion format check
This commit is contained in:
@@ -3652,9 +3652,12 @@ D3D12RenderTargetCache::GetOrCreateTransferPipelines(TransferShaderKey key) {
|
|||||||
dxbc::Src::R(1, dxbc::Src::kYYYY));
|
dxbc::Src::R(1, dxbc::Src::kYYYY));
|
||||||
} else {
|
} else {
|
||||||
color_packed_in_r1x = true;
|
color_packed_in_r1x = true;
|
||||||
for (uint32_t i = 0; i < 3; ++i) {
|
if (source_color_format ==
|
||||||
DxbcShaderTranslator::PreSaturatedLinearToPWLGamma(a, 1, i, 1, i,
|
xenos::ColorRenderTargetFormat::k_8_8_8_8_GAMMA) {
|
||||||
2, 0, 2, 1);
|
for (uint32_t i = 0; i < 3; ++i) {
|
||||||
|
DxbcShaderTranslator::PreSaturatedLinearToPWLGamma(
|
||||||
|
a, 1, i, 1, i, 2, 0, 2, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
a.OpMAd(dxbc::Dest::R(1), dxbc::Src::R(1), dxbc::Src::LF(255.0f),
|
a.OpMAd(dxbc::Dest::R(1), dxbc::Src::R(1), dxbc::Src::LF(255.0f),
|
||||||
dxbc::Src::LF(0.5f));
|
dxbc::Src::LF(0.5f));
|
||||||
|
|||||||
Reference in New Issue
Block a user