mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
(Graphics.Shader): Handle EmitSuatom constant dests and EmitSuld zero dest reg. (#5504)
* (Graphics.Shader): Handle EmitSuatom constant dests. * Proper fix for EmitSuatom; fix EmitSuld.
This commit is contained in:
parent
2be8b6ea45
commit
86931cc3f1
1 changed files with 6 additions and 1 deletions
|
@ -218,7 +218,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
||||||
return context.Copy(Register(srcB++, RegisterType.Gpr));
|
return context.Copy(Register(srcB++, RegisterType.Gpr));
|
||||||
}
|
}
|
||||||
|
|
||||||
Operand d = dest != RegisterConsts.RegisterZeroIndex ? Register(dest, RegisterType.Gpr) : null;
|
Operand d = Register(dest, RegisterType.Gpr);
|
||||||
|
|
||||||
List<Operand> sourcesList = new();
|
List<Operand> sourcesList = new();
|
||||||
|
|
||||||
|
@ -304,6 +304,11 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
||||||
bool byteAddress,
|
bool byteAddress,
|
||||||
bool isBindless)
|
bool isBindless)
|
||||||
{
|
{
|
||||||
|
if (srcB == RegisterConsts.RegisterZeroIndex)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
context.Config.SetUsedFeature(FeatureFlags.IntegerSampling);
|
context.Config.SetUsedFeature(FeatureFlags.IntegerSampling);
|
||||||
|
|
||||||
SamplerType type = ConvertSamplerType(dimensions);
|
SamplerType type = ConvertSamplerType(dimensions);
|
||||||
|
|
Loading…
Reference in a new issue