0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 04:35:46 +00:00

Workaround bug on logic op with float framebuffer (#6858)

* intel workaround

built on top of the amd workaround

* forgot to update the note

* Logic Change

Enabled workaround for all vendors that aren't nvidia

* Applied Suggestions
This commit is contained in:
Piplup 2024-05-24 02:57:26 +01:00 committed by GitHub
parent e65effcb05
commit c98b7fc702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -560,9 +560,9 @@ namespace Ryujinx.Graphics.Vulkan
} }
} }
// AMD has a bug where it enables logical operations even for float formats, // Vendors other than NVIDIA have a bug where it enables logical operations even for float formats,
// so we need to force disable them here. // so we need to force disable them here.
bool logicOpEnable = LogicOpEnable && (gd.Vendor != Vendor.Amd || Internal.LogicOpsAllowed); bool logicOpEnable = LogicOpEnable && (gd.Vendor == Vendor.Nvidia || Internal.LogicOpsAllowed);
var colorBlendState = new PipelineColorBlendStateCreateInfo var colorBlendState = new PipelineColorBlendStateCreateInfo
{ {