瀏覽代碼

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
Piplup 1 年之前
父節點
當前提交
c98b7fc702
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Ryujinx.Graphics.Vulkan/PipelineState.cs

+ 2 - 2
src/Ryujinx.Graphics.Vulkan/PipelineState.cs

@@ -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.
-                bool logicOpEnable = LogicOpEnable && (gd.Vendor != Vendor.Amd || Internal.LogicOpsAllowed);
+                bool logicOpEnable = LogicOpEnable && (gd.Vendor == Vendor.Nvidia || Internal.LogicOpsAllowed);
 
                 var colorBlendState = new PipelineColorBlendStateCreateInfo
                 {