SPIR-V: Add early fragment tests support

This commit is contained in:
gdk 2022-02-19 18:14:01 -03:00 committed by riperiperi
parent 387333454b
commit c260ef7b0a

View file

@ -191,6 +191,11 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
context.AddExecutionMode(spvFunc, ExecutionMode.DepthReplacing);
}
if (context.Config.GpuAccessor.QueryEarlyZForce())
{
context.AddExecutionMode(spvFunc, ExecutionMode.EarlyFragmentTests);
}
if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderInterlock())
{
context.AddExecutionMode(spvFunc, ExecutionMode.PixelInterlockOrderedEXT);