mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-07-01 19:20:46 -07:00
Support multiple destination operands on shader IR and shuffle predicates (#1964)
* Support multiple destination operands on shader IR and shuffle predicates * Cache version change
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
float Helper_ShuffleUp(float x, uint index, uint mask)
|
||||
float Helper_ShuffleUp(float x, uint index, uint mask, out bool valid)
|
||||
{
|
||||
uint clamp = mask & 0x1fu;
|
||||
uint segMask = (mask >> 8) & 0x1fu;
|
||||
uint minThreadId = gl_SubGroupInvocationARB & segMask;
|
||||
uint srcThreadId = gl_SubGroupInvocationARB - index;
|
||||
return (srcThreadId >= minThreadId) ? readInvocationARB(x, srcThreadId) : x;
|
||||
valid = srcThreadId >= minThreadId;
|
||||
return valid ? readInvocationARB(x, srcThreadId) : x;
|
||||
}
|
Reference in New Issue
Block a user