Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Hollings <bill.hollings@brenwill.com>2021-09-05 23:51:04 +0300
committerBill Hollings <bill.hollings@brenwill.com>2021-09-05 23:51:04 +0300
commit472f9d4f6d647c8af7a9e3b7516624fe2c0b5d6f (patch)
treeb6b940525207b21a6cf7e28fd3f7c28fa6b6be08 /shaders
parent5fb1ca4f0d04f2b169086e1a48a465bc2dc29169 (diff)
Add tests for OpSpecConstantOp ops OpQuantizeToF16 and OpSRem.
Tests provided by @cdavis5e.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/asm/vert/spec-constant-op-composite.asm.vk.vert4
1 files changed, 3 insertions, 1 deletions
diff --git a/shaders/asm/vert/spec-constant-op-composite.asm.vk.vert b/shaders/asm/vert/spec-constant-op-composite.asm.vk.vert
index b566a3d1..1ff67798 100644
--- a/shaders/asm/vert/spec-constant-op-composite.asm.vk.vert
+++ b/shaders/asm/vert/spec-constant-op-composite.asm.vk.vert
@@ -49,8 +49,10 @@
%28 = OpConstant %17 2
%33 = OpConstant %12 20
%34 = OpConstant %12 30
+ %int_3 = OpConstant %12 -3
+ %bar = OpSpecConstantOp %12 SRem %13 %int_3
%35 = OpTypeVector %12 4
- %36 = OpSpecConstantComposite %35 %33 %34 %15 %15
+ %36 = OpSpecConstantComposite %35 %33 %34 %15 %bar
%40 = OpTypeVector %12 2
%41 = OpSpecConstantOp %40 VectorShuffle %36 %36 1 0
%foo = OpSpecConstantOp %12 CompositeExtract %36 1