diff options
author | Jason Ekstrand <[email protected]> | 2017-02-24 15:44:03 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-01 15:31:44 -0800 |
commit | 2c587090236c30b4daa761026db931cf60b3fca0 (patch) | |
tree | 5141580c66393b934ac447b4902538a5dac16c65 /src/compiler/glsl/int64.glsl | |
parent | e647c4fbd9a186d9df9d5b0e50507f33180214a8 (diff) |
glsl/int64: Fix a typo in imod64
The zy swizzle gives us one component of quotient and one component of
remainder. What we wanted was zw for the remainder.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/int64.glsl')
-rw-r--r-- | src/compiler/glsl/int64.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/int64.glsl b/src/compiler/glsl/int64.glsl index b1036e379c9..1ac8d128ac3 100644 --- a/src/compiler/glsl/int64.glsl +++ b/src/compiler/glsl/int64.glsl @@ -115,7 +115,7 @@ imod64(ivec2 _n, ivec2 _d) uvec2 n = unpackUint2x32(uint64_t(abs(packInt2x32(_n)))); uvec2 d = unpackUint2x32(uint64_t(abs(packInt2x32(_d)))); - uvec2 rem = udivmod64(n, d).zy; + uvec2 rem = udivmod64(n, d).zw; return negate ? unpackInt2x32(-int64_t(packUint2x32(rem))) : ivec2(rem); } |