mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 00:53:35 +00:00
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:
parent
2d6642d605
commit
c1517e5ee3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue