This commit is contained in:
sunshineinabox 2024-05-22 22:05:01 -07:00
parent 74a1ab031d
commit 0000a7ac9c
2 changed files with 40 additions and 16 deletions

View file

@ -1024,14 +1024,18 @@ namespace Ryujinx.Graphics.Vulkan
_newState.LogicOp = op.Convert();
}
// AMD has a bug where it enables logical operations even for float formats,
// so we need to force disable them here.
bool logicOpEnable = enable && (Gd.Vendor != Vendor.Amd || _newState.Internal.LogicOpsAllowed);
if (Gd.ExtendedDynamicState3Features.ExtendedDynamicState3LogicOpEnable)
{
DynamicState.SetLogicOpEnable(enable);
DynamicState.SetLogicOpEnable(logicOpEnable);
}
else
{
_newState.LogicOpEnable = enable;
_newState.LogicOpEnable = logicOpEnable;
}
SignalStateChange();