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:
authorDan Sinclair <dsinclair@google.com>2019-12-03 00:17:21 +0300
committerDan Sinclair <dsinclair@google.com>2019-12-03 00:17:21 +0300
commitf40c6298211ccff43a4953f83d84e6fba04c4cad (patch)
tree922a079d06b1e79b0e817d74d704476b516b05fa /shaders
parent4b51963c542861ce698f60ce963ade48e1e9d769 (diff)
Roll SPIRV-Tools, SPIRV-Headers and GLSLang
This CL updates the three depdencies and updates the tests to handle the new validation errors which are produced.
Diffstat (limited to 'shaders')
-rw-r--r--shaders/asm/comp/phi-temporary-copy-loop-variable.asm.comp68
-rw-r--r--shaders/asm/frag/loop-merge-to-continue.asm.frag85
-rw-r--r--shaders/asm/frag/selection-merge-to-continue.asm.frag85
-rw-r--r--shaders/asm/frag/switch-merge-to-continue.asm.frag85
4 files changed, 0 insertions, 323 deletions
diff --git a/shaders/asm/comp/phi-temporary-copy-loop-variable.asm.comp b/shaders/asm/comp/phi-temporary-copy-loop-variable.asm.comp
deleted file mode 100644
index 61159124..00000000
--- a/shaders/asm/comp/phi-temporary-copy-loop-variable.asm.comp
+++ /dev/null
@@ -1,68 +0,0 @@
-; SPIR-V
-; Version: 1.0
-; Generator: Google spiregg; 0
-; Bound: 42
-; Schema: 0
- OpCapability Shader
- OpMemoryModel Logical GLSL450
- OpEntryPoint GLCompute %cs_test "main" %gl_GlobalInvocationID %gl_LocalInvocationIndex
- OpExecutionMode %cs_test LocalSize 8 8 1
- OpSource HLSL 600
- OpName %type_2d_image "type.2d.image"
- OpName %outImageTexture "outImageTexture"
- OpName %cs_test "cs_test"
- OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
- OpDecorate %gl_LocalInvocationIndex BuiltIn LocalInvocationIndex
- OpDecorate %outImageTexture DescriptorSet 0
- OpDecorate %outImageTexture Binding 1
- %float = OpTypeFloat 32
- %float_5 = OpConstant %float 5
- %float_1 = OpConstant %float 1
- %int = OpTypeInt 32 1
- %int_7 = OpConstant %int 7
- %int_0 = OpConstant %int 0
- %int_1 = OpConstant %int 1
-%type_2d_image = OpTypeImage %float 2D 2 0 0 2 Rgba32f
-%_ptr_UniformConstant_type_2d_image = OpTypePointer UniformConstant %type_2d_image
- %uint = OpTypeInt 32 0
- %v3uint = OpTypeVector %uint 3
-%_ptr_Input_v3uint = OpTypePointer Input %v3uint
-%_ptr_Input_uint = OpTypePointer Input %uint
- %void = OpTypeVoid
- %19 = OpTypeFunction %void
- %v2uint = OpTypeVector %uint 2
- %v4float = OpTypeVector %float 4
- %bool = OpTypeBool
-%outImageTexture = OpVariable %_ptr_UniformConstant_type_2d_image UniformConstant
-%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
-%gl_LocalInvocationIndex = OpVariable %_ptr_Input_uint Input
- %cs_test = OpFunction %void None %19
- %23 = OpLabel
- %24 = OpLoad %v3uint %gl_GlobalInvocationID
- %25 = OpVectorShuffle %v2uint %24 %24 0 1
- OpBranch %26
- %26 = OpLabel
- %27 = OpPhi %int %int_7 %23 %28 %29
- %30 = OpPhi %int %int_7 %23 %27 %29
- %31 = OpSGreaterThanEqual %bool %27 %int_0
- OpLoopMerge %32 %29 None
- OpBranchConditional %31 %33 %32
- %33 = OpLabel
- %34 = OpConvertSToF %float %27
- %35 = OpFOrdGreaterThan %bool %float_5 %34
- OpSelectionMerge %29 None
- OpBranchConditional %35 %36 %29
- %36 = OpLabel
- OpBranch %32
- %29 = OpLabel
- %28 = OpISub %int %27 %int_1
- OpBranch %26
- %32 = OpLabel
- %37 = OpISub %int %30 %int_1
- %38 = OpConvertSToF %float %37
- %39 = OpConvertSToF %float %30
- %40 = OpCompositeConstruct %v4float %38 %39 %float_1 %float_1
- %41 = OpLoad %type_2d_image %outImageTexture
- OpImageWrite %41 %25 %40 None
- OpReturn
- OpFunctionEnd
diff --git a/shaders/asm/frag/loop-merge-to-continue.asm.frag b/shaders/asm/frag/loop-merge-to-continue.asm.frag
deleted file mode 100644
index f2acc436..00000000
--- a/shaders/asm/frag/loop-merge-to-continue.asm.frag
+++ /dev/null
@@ -1,85 +0,0 @@
-; SPIR-V
-; Version: 1.0
-; Generator: Khronos Glslang Reference Front End; 3
-; Bound: 51
-; Schema: 0
- OpCapability Shader
- %1 = OpExtInstImport "GLSL.std.450"
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main" %FragColor %v0
- OpExecutionMode %main OriginUpperLeft
- OpSource GLSL 450
- OpName %main "main"
- OpName %FragColor "FragColor"
- OpName %i "i"
- OpName %j "j"
- OpName %v0 "v0"
- OpDecorate %FragColor Location 0
- OpDecorate %v0 Location 0
- %void = OpTypeVoid
- %3 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %v4float = OpTypeVector %float 4
-%_ptr_Output_v4float = OpTypePointer Output %v4float
- %FragColor = OpVariable %_ptr_Output_v4float Output
- %float_1 = OpConstant %float 1
- %11 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
- %int = OpTypeInt 32 1
-%_ptr_Function_int = OpTypePointer Function %int
- %int_0 = OpConstant %int 0
- %int_4 = OpConstant %int 4
- %bool = OpTypeBool
-%_ptr_Input_v4float = OpTypePointer Input %v4float
- %v0 = OpVariable %_ptr_Input_v4float Input
- %int_3 = OpConstant %int 3
-%_ptr_Input_float = OpTypePointer Input %float
- %int_1 = OpConstant %int 1
- %main = OpFunction %void None %3
- %5 = OpLabel
- %i = OpVariable %_ptr_Function_int Function
- %j = OpVariable %_ptr_Function_int Function
- OpStore %FragColor %11
- OpStore %i %int_0
- OpBranch %16
- %16 = OpLabel
- OpLoopMerge %18 %19 None
- OpBranch %20
- %20 = OpLabel
- %21 = OpLoad %int %i
- %24 = OpSLessThan %bool %21 %int_4
- OpBranchConditional %24 %17 %18
- %17 = OpLabel
- OpStore %j %int_0
- OpBranch %26
- %26 = OpLabel
- OpLoopMerge %19 %29 None
- OpBranch %30
- %30 = OpLabel
- %31 = OpLoad %int %j
- %32 = OpSLessThan %bool %31 %int_4
- OpBranchConditional %32 %27 %19
- %27 = OpLabel
- %35 = OpLoad %int %i
- %36 = OpLoad %int %j
- %37 = OpIAdd %int %35 %36
- %39 = OpBitwiseAnd %int %37 %int_3
- %41 = OpAccessChain %_ptr_Input_float %v0 %39
- %42 = OpLoad %float %41
- %43 = OpLoad %v4float %FragColor
- %44 = OpCompositeConstruct %v4float %42 %42 %42 %42
- %45 = OpFAdd %v4float %43 %44
- OpStore %FragColor %45
- OpBranch %29
- %29 = OpLabel
- %46 = OpLoad %int %j
- %48 = OpIAdd %int %46 %int_1
- OpStore %j %48
- OpBranch %26
- %19 = OpLabel
- %49 = OpLoad %int %i
- %50 = OpIAdd %int %49 %int_1
- OpStore %i %50
- OpBranch %16
- %18 = OpLabel
- OpReturn
- OpFunctionEnd
diff --git a/shaders/asm/frag/selection-merge-to-continue.asm.frag b/shaders/asm/frag/selection-merge-to-continue.asm.frag
deleted file mode 100644
index ecc49159..00000000
--- a/shaders/asm/frag/selection-merge-to-continue.asm.frag
+++ /dev/null
@@ -1,85 +0,0 @@
-; SPIR-V
-; Version: 1.0
-; Generator: Khronos Glslang Reference Front End; 3
-; Bound: 55
-; Schema: 0
- OpCapability Shader
- %1 = OpExtInstImport "GLSL.std.450"
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main" %FragColor %v0
- OpExecutionMode %main OriginUpperLeft
- OpSource GLSL 450
- OpName %main "main"
- OpName %FragColor "FragColor"
- OpName %i "i"
- OpName %v0 "v0"
- OpDecorate %FragColor Location 0
- OpDecorate %v0 Location 0
- %void = OpTypeVoid
- %3 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %v4float = OpTypeVector %float 4
-%_ptr_Output_v4float = OpTypePointer Output %v4float
- %FragColor = OpVariable %_ptr_Output_v4float Output
- %float_1 = OpConstant %float 1
- %11 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
- %int = OpTypeInt 32 1
-%_ptr_Function_int = OpTypePointer Function %int
- %int_0 = OpConstant %int 0
- %int_4 = OpConstant %int 4
- %bool = OpTypeBool
-%_ptr_Input_v4float = OpTypePointer Input %v4float
- %v0 = OpVariable %_ptr_Input_v4float Input
- %uint = OpTypeInt 32 0
- %uint_0 = OpConstant %uint 0
-%_ptr_Input_float = OpTypePointer Input %float
- %float_20 = OpConstant %float 20
- %int_3 = OpConstant %int 3
- %int_1 = OpConstant %int 1
- %main = OpFunction %void None %3
- %5 = OpLabel
- %i = OpVariable %_ptr_Function_int Function
- OpStore %FragColor %11
- OpStore %i %int_0
- OpBranch %16
- %16 = OpLabel
- OpLoopMerge %18 %19 None
- OpBranch %20
- %20 = OpLabel
- %21 = OpLoad %int %i
- %24 = OpSLessThan %bool %21 %int_4
- OpBranchConditional %24 %17 %18
- %17 = OpLabel
- %30 = OpAccessChain %_ptr_Input_float %v0 %uint_0
- %31 = OpLoad %float %30
- %33 = OpFOrdEqual %bool %31 %float_20
- OpSelectionMerge %19 None
- OpBranchConditional %33 %34 %44
- %34 = OpLabel
- %36 = OpLoad %int %i
- %38 = OpBitwiseAnd %int %36 %int_3
- %39 = OpAccessChain %_ptr_Input_float %v0 %38
- %40 = OpLoad %float %39
- %41 = OpLoad %v4float %FragColor
- %42 = OpCompositeConstruct %v4float %40 %40 %40 %40
- %43 = OpFAdd %v4float %41 %42
- OpStore %FragColor %43
- OpBranch %19
- %44 = OpLabel
- %45 = OpLoad %int %i
- %47 = OpBitwiseAnd %int %45 %int_1
- %48 = OpAccessChain %_ptr_Input_float %v0 %47
- %49 = OpLoad %float %48
- %50 = OpLoad %v4float %FragColor
- %51 = OpCompositeConstruct %v4float %49 %49 %49 %49
- %52 = OpFAdd %v4float %50 %51
- OpStore %FragColor %52
- OpBranch %19
- %19 = OpLabel
- %53 = OpLoad %int %i
- %54 = OpIAdd %int %53 %int_1
- OpStore %i %54
- OpBranch %16
- %18 = OpLabel
- OpReturn
- OpFunctionEnd
diff --git a/shaders/asm/frag/switch-merge-to-continue.asm.frag b/shaders/asm/frag/switch-merge-to-continue.asm.frag
deleted file mode 100644
index 94ef5f53..00000000
--- a/shaders/asm/frag/switch-merge-to-continue.asm.frag
+++ /dev/null
@@ -1,85 +0,0 @@
-; SPIR-V
-; Version: 1.0
-; Generator: Khronos Glslang Reference Front End; 3
-; Bound: 57
-; Schema: 0
- OpCapability Shader
- %1 = OpExtInstImport "GLSL.std.450"
- OpMemoryModel Logical GLSL450
- OpEntryPoint Fragment %main "main" %FragColor %v0
- OpExecutionMode %main OriginUpperLeft
- OpSource GLSL 450
- OpName %main "main"
- OpName %FragColor "FragColor"
- OpName %i "i"
- OpName %v0 "v0"
- OpDecorate %FragColor Location 0
- OpDecorate %v0 Location 0
- %void = OpTypeVoid
- %3 = OpTypeFunction %void
- %float = OpTypeFloat 32
- %v4float = OpTypeVector %float 4
-%_ptr_Output_v4float = OpTypePointer Output %v4float
- %FragColor = OpVariable %_ptr_Output_v4float Output
- %float_1 = OpConstant %float 1
- %11 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
- %int = OpTypeInt 32 1
-%_ptr_Function_int = OpTypePointer Function %int
- %int_0 = OpConstant %int 0
- %int_4 = OpConstant %int 4
- %bool = OpTypeBool
- %uint = OpTypeInt 32 0
- %uint_0 = OpConstant %uint 0
-%_ptr_Output_float = OpTypePointer Output %float
- %float_3 = OpConstant %float 3
- %uint_1 = OpConstant %uint 1
- %uint_2 = OpConstant %uint 2
- %int_1 = OpConstant %int 1
-%_ptr_Input_v4float = OpTypePointer Input %v4float
- %v0 = OpVariable %_ptr_Input_v4float Input
- %main = OpFunction %void None %3
- %5 = OpLabel
- %i = OpVariable %_ptr_Function_int Function
- OpStore %FragColor %11
- OpStore %i %int_0
- OpBranch %16
- %16 = OpLabel
- OpLoopMerge %18 %19 None
- OpBranch %20
- %20 = OpLabel
- %21 = OpLoad %int %i
- %24 = OpSLessThan %bool %21 %int_4
- OpBranchConditional %24 %17 %18
- %17 = OpLabel
- %25 = OpLoad %int %i
- OpSelectionMerge %19 None
- OpSwitch %25 %28 0 %26 1 %27
- %28 = OpLabel
- %46 = OpAccessChain %_ptr_Output_float %FragColor %uint_2
- %47 = OpLoad %float %46
- %48 = OpFAdd %float %47 %float_3
- %49 = OpAccessChain %_ptr_Output_float %FragColor %uint_2
- OpStore %49 %48
- OpBranch %19
- %26 = OpLabel
- %33 = OpAccessChain %_ptr_Output_float %FragColor %uint_0
- %34 = OpLoad %float %33
- %35 = OpFAdd %float %34 %float_1
- %36 = OpAccessChain %_ptr_Output_float %FragColor %uint_0
- OpStore %36 %35
- OpBranch %19
- %27 = OpLabel
- %40 = OpAccessChain %_ptr_Output_float %FragColor %uint_1
- %41 = OpLoad %float %40
- %42 = OpFAdd %float %41 %float_3
- %43 = OpAccessChain %_ptr_Output_float %FragColor %uint_1
- OpStore %43 %42
- OpBranch %19
- %19 = OpLabel
- %52 = OpLoad %int %i
- %54 = OpIAdd %int %52 %int_1
- OpStore %i %54
- OpBranch %16
- %18 = OpLabel
- OpReturn
- OpFunctionEnd