mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
shader_recompiler: Relax dual source blending assert to allow up to two targets. (#3495)
This commit is contained in:
@@ -658,8 +658,10 @@ void EmitContext::DefineOutputs() {
|
|||||||
frag_outputs[i] = GetAttributeInfo(num_format, id, num_components, true);
|
frag_outputs[i] = GetAttributeInfo(num_format, id, num_components, true);
|
||||||
++num_render_targets;
|
++num_render_targets;
|
||||||
}
|
}
|
||||||
ASSERT_MSG(!runtime_info.fs_info.dual_source_blending || num_render_targets == 2,
|
// Dual source blending allows at most 2 render targets, one for each source.
|
||||||
"Dual source blending enabled, there must be exactly two MRT exports");
|
// Fewer targets are allowed but the missing blending source values will be undefined.
|
||||||
|
ASSERT_MSG(!runtime_info.fs_info.dual_source_blending || num_render_targets <= 2,
|
||||||
|
"Dual source blending enabled, there must be at most two MRT exports");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LogicalStage::Geometry: {
|
case LogicalStage::Geometry: {
|
||||||
|
|||||||
Reference in New Issue
Block a user