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
This commit is contained in:
gdkchan 2021-04-20 07:33:54 -03:00 committed by GitHub
parent 7de1734e98
commit b04d0dd5d3
12 changed files with 79 additions and 23 deletions

View file

@ -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));
}
}