From b34de74f81ef73a78d43d169b9f1ce7f175035b5 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 23 Jul 2022 11:15:58 -0300 Subject: Avoid adding shader buffer descriptors for constant buffers that are not used (#3478) * Avoid adding shader buffer descriptors for constant buffers that are not used * Shader cache version --- Ryujinx.Graphics.Shader/Instructions/InstEmitHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Instructions') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitHelper.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitHelper.cs index dd6ff8e9..0ba4667e 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitHelper.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitHelper.cs @@ -45,12 +45,12 @@ namespace Ryujinx.Graphics.Shader.Instructions if (isFP64) { return context.PackDouble2x32( - context.Config.CreateCbuf(cbufSlot, cbufOffset), - context.Config.CreateCbuf(cbufSlot, cbufOffset + 1)); + Cbuf(cbufSlot, cbufOffset), + Cbuf(cbufSlot, cbufOffset + 1)); } else { - return context.Config.CreateCbuf(cbufSlot, cbufOffset); + return Cbuf(cbufSlot, cbufOffset); } } -- cgit v1.2.3