From 4770cfa920b606b1496ca9348c3dd69b476dbbbf Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 20 Apr 2021 07:33:54 -0300 Subject: Only enable clip distance if written to on shader (#2217) * Only enable clip distance if written to on shader * Signal InstanceId use through FeatureFlags * Shader cache version bump --- Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Ryujinx.Graphics.Shader/Instructions') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs index 81d5c7af..7afdbf4e 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitMemory.cs @@ -53,6 +53,8 @@ namespace Ryujinx.Graphics.Shader.Instructions Operand dest = Attribute(op.AttributeOffset + index * 4); + context.FlagAttributeWritten(dest.Value); + context.Copy(dest, Register(rd)); } } -- cgit v1.2.3