Fix some Vulkan validation errors (#5452)
* Fix some validation errors and silence the annoying pipeline barrier error * Remove bogus decref/incref on index buffer state * Make unsafe blit opt-in rather than opt-out * Remove Vulkan debugger messages blacklist * Adjust GetImageUsage to not set the storage bit for multisample textures if not supported
This commit is contained in:
parent
e5261228d7
commit
c5d9e67cb2
8 changed files with 43 additions and 41 deletions
|
@ -168,6 +168,16 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
return ComponentType.Float;
|
||||
}
|
||||
|
||||
public ImageAspectFlags GetDepthStencilAspectFlags()
|
||||
{
|
||||
if (_depthStencil == null)
|
||||
{
|
||||
return ImageAspectFlags.None;
|
||||
}
|
||||
|
||||
return _depthStencil.Info.Format.ConvertAspectFlags();
|
||||
}
|
||||
|
||||
public bool IsValidColorAttachment(int bindIndex)
|
||||
{
|
||||
return (uint)bindIndex < Constants.MaxRenderTargets && (_validColorAttachments & (1u << bindIndex)) != 0;
|
||||
|
@ -226,7 +236,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
_depthStencil?.Storage.SetModification(
|
||||
AccessFlags.DepthStencilAttachmentWriteBit,
|
||||
PipelineStageFlags.ColorAttachmentOutputBit);
|
||||
PipelineStageFlags.LateFragmentTestsBit);
|
||||
}
|
||||
|
||||
public void InsertClearBarrier(CommandBufferScoped cbs, int index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue