SPIR-V: Use ConstantComposite for Texture Offset Vector

Fixes a bunch of freezes with SPIR-V on AMD hardware, and validation errors. Note: Obviously assumes input offsets are constant, which they currently are.
This commit is contained in:
riperiperi 2022-03-03 23:10:51 +00:00
parent 2d6642d605
commit c1517e5ee3

View file

@ -1465,7 +1465,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
}
var vectorType = context.TypeVector(context.TypeS32(), count);
return context.CompositeConstruct(vectorType, elems);
return context.ConstantComposite(vectorType, elems);
}
else
{