Revert "Relax Vulkan requirements (#4228)" (#4279)

This reverts commit a0cf0b80c7.
This commit is contained in:
Ac_K 2023-01-13 07:04:59 +01:00 committed by GitHub
parent a0cf0b80c7
commit 0233c15960
8 changed files with 36 additions and 120 deletions

View file

@ -1344,7 +1344,8 @@ namespace Ryujinx.Graphics.Vulkan
var dstAttachmentFormats = _newState.Internal.AttachmentFormats.AsSpan();
FramebufferParams.AttachmentFormats.CopyTo(dstAttachmentFormats);
for (int i = FramebufferParams.AttachmentFormats.Length; i < dstAttachmentFormats.Length; i++)
int maxAttachmentIndex = FramebufferParams.MaxColorAttachmentIndex + (FramebufferParams.HasDepthStencil ? 1 : 0);
for (int i = FramebufferParams.AttachmentFormats.Length; i <= maxAttachmentIndex; i++)
{
dstAttachmentFormats[i] = 0;
}