Use copy dependencies for the Intel/AMD view format workaround (#2144)
* This might help AMD a bit * Removal of old workaround.
This commit is contained in:
parent
bec67dbef7
commit
212e472c9f
7 changed files with 15 additions and 68 deletions
|
@ -40,15 +40,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
FramebufferAttachment attachment = FramebufferAttachment.ColorAttachment0 + index;
|
||||
|
||||
if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Amd ||
|
||||
HwCapabilities.Vendor == HwCapabilities.GpuVendor.IntelWindows)
|
||||
{
|
||||
GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.GetIncompatibleFormatViewHandle() ?? 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.Handle ?? 0, 0);
|
||||
}
|
||||
GL.FramebufferTexture(FramebufferTarget.Framebuffer, attachment, color?.Handle ?? 0, 0);
|
||||
|
||||
_colors[index] = color;
|
||||
}
|
||||
|
@ -92,21 +84,6 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
}
|
||||
}
|
||||
|
||||
public void SignalModified()
|
||||
{
|
||||
if (HwCapabilities.Vendor == HwCapabilities.GpuVendor.Amd ||
|
||||
HwCapabilities.Vendor == HwCapabilities.GpuVendor.IntelWindows)
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
if (_colors[i] != null)
|
||||
{
|
||||
_colors[i].SignalModified();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDualSourceBlend(bool enable)
|
||||
{
|
||||
bool oldEnable = _dualSourceBlend;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue