diff options
author | Bill Hollings <bill.hollings@brenwill.com> | 2021-09-05 23:51:04 +0300 |
---|---|---|
committer | Bill Hollings <bill.hollings@brenwill.com> | 2021-09-05 23:51:04 +0300 |
commit | 472f9d4f6d647c8af7a9e3b7516624fe2c0b5d6f (patch) | |
tree | b6b940525207b21a6cf7e28fd3f7c28fa6b6be08 /reference/opt/shaders-msl | |
parent | 5fb1ca4f0d04f2b169086e1a48a465bc2dc29169 (diff) |
Add tests for OpSpecConstantOp ops OpQuantizeToF16 and OpSRem.
Tests provided by @cdavis5e.
Diffstat (limited to 'reference/opt/shaders-msl')
-rw-r--r-- | reference/opt/shaders-msl/asm/vert/spec-constant-op-composite.asm.vert | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/reference/opt/shaders-msl/asm/vert/spec-constant-op-composite.asm.vert b/reference/opt/shaders-msl/asm/vert/spec-constant-op-composite.asm.vert index ed5c5f9a..2ee6cd76 100644 --- a/reference/opt/shaders-msl/asm/vert/spec-constant-op-composite.asm.vert +++ b/reference/opt/shaders-msl/asm/vert/spec-constant-op-composite.asm.vert @@ -9,9 +9,10 @@ constant int _20 = (_7 + 2); constant uint _8_tmp [[function_constant(202)]]; constant uint _8 = is_function_constant_defined(_8_tmp) ? _8_tmp : 100u; constant uint _25 = (_8 % 5u); -constant int4 _30 = int4(20, 30, _20, _20); -constant int2 _32 = int2(_30.y, _30.x); -constant int _33 = _30.y; +constant int _30 = _7 - (-3) * (_7 / (-3)); +constant int4 _32 = int4(20, 30, _20, _30); +constant int2 _34 = int2(_32.y, _32.x); +constant int _35 = _32.y; struct main0_out { @@ -22,14 +23,14 @@ struct main0_out vertex main0_out main0() { main0_out out = {}; - float4 _63 = float4(0.0); - _63.y = float(_20); - float4 _66 = _63; - _66.z = float(_25); - float4 _52 = _66 + float4(_30); - float2 _56 = _52.xy + float2(_32); - out.gl_Position = float4(_56.x, _56.y, _52.z, _52.w); - out.m_4 = _33; + float4 _66 = float4(0.0); + _66.y = float(_20); + float4 _69 = _66; + _69.z = float(_25); + float4 _55 = _69 + float4(_32); + float2 _59 = _55.xy + float2(_34); + out.gl_Position = float4(_59.x, _59.y, _55.z, _55.w); + out.m_4 = _35; return out; } |