Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / tests / sksl / intrinsics / Transpose.asm.frag
1 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5 OpExecutionMode %_entrypoint_v OriginUpperLeft
6 OpName %sk_FragColor "sk_FragColor"
7 OpName %sk_Clockwise "sk_Clockwise"
8 OpName %_UniformBuffer "_UniformBuffer"
9 OpMemberName %_UniformBuffer 0 "testMatrix2x2"
10 OpMemberName %_UniformBuffer 1 "testMatrix3x3"
11 OpMemberName %_UniformBuffer 2 "colorGreen"
12 OpMemberName %_UniformBuffer 3 "colorRed"
13 OpName %_entrypoint_v "_entrypoint_v"
14 OpName %main "main"
15 OpName %testMatrix2x3 "testMatrix2x3"
16 OpDecorate %sk_FragColor RelaxedPrecision
17 OpDecorate %sk_FragColor Location 0
18 OpDecorate %sk_FragColor Index 0
19 OpDecorate %sk_Clockwise BuiltIn FrontFacing
20 OpMemberDecorate %_UniformBuffer 0 Offset 0
21 OpMemberDecorate %_UniformBuffer 0 ColMajor
22 OpMemberDecorate %_UniformBuffer 0 MatrixStride 16
23 OpMemberDecorate %_UniformBuffer 1 Offset 32
24 OpMemberDecorate %_UniformBuffer 1 ColMajor
25 OpMemberDecorate %_UniformBuffer 1 MatrixStride 16
26 OpMemberDecorate %_UniformBuffer 2 Offset 80
27 OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
28 OpMemberDecorate %_UniformBuffer 3 Offset 96
29 OpMemberDecorate %_UniformBuffer 3 RelaxedPrecision
30 OpDecorate %_UniformBuffer Block
31 OpDecorate %10 Binding 0
32 OpDecorate %10 DescriptorSet 0
33 OpDecorate %114 RelaxedPrecision
34 OpDecorate %117 RelaxedPrecision
35 OpDecorate %118 RelaxedPrecision
36 %float = OpTypeFloat 32
37 %v4float = OpTypeVector %float 4
38 %_ptr_Output_v4float = OpTypePointer Output %v4float
39 %sk_FragColor = OpVariable %_ptr_Output_v4float Output
40 %bool = OpTypeBool
41 %_ptr_Input_bool = OpTypePointer Input %bool
42 %sk_Clockwise = OpVariable %_ptr_Input_bool Input
43 %v2float = OpTypeVector %float 2
44 %mat2v2float = OpTypeMatrix %v2float 2
45 %v3float = OpTypeVector %float 3
46 %mat3v3float = OpTypeMatrix %v3float 3
47 %_UniformBuffer = OpTypeStruct %mat2v2float %mat3v3float %v4float %v4float
48 %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
49 %10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
50 %void = OpTypeVoid
51 %19 = OpTypeFunction %void
52 %float_0 = OpConstant %float 0
53 %22 = OpConstantComposite %v2float %float_0 %float_0
54 %_ptr_Function_v2float = OpTypePointer Function %v2float
55 %26 = OpTypeFunction %v4float %_ptr_Function_v2float
56 %mat2v3float = OpTypeMatrix %v3float 2
57 %_ptr_Function_mat2v3float = OpTypePointer Function %mat2v3float
58 %float_1 = OpConstant %float 1
59 %float_2 = OpConstant %float 2
60 %float_3 = OpConstant %float 3
61 %float_4 = OpConstant %float 4
62 %float_5 = OpConstant %float 5
63 %float_6 = OpConstant %float 6
64 %38 = OpConstantComposite %v3float %float_1 %float_2 %float_3
65 %39 = OpConstantComposite %v3float %float_4 %float_5 %float_6
66 %40 = OpConstantComposite %mat2v3float %38 %39
67 %false = OpConstantFalse %bool
68 %_ptr_Uniform_mat2v2float = OpTypePointer Uniform %mat2v2float
69 %int = OpTypeInt 32 1
70 %int_0 = OpConstant %int 0
71 %48 = OpConstantComposite %v2float %float_1 %float_3
72 %49 = OpConstantComposite %v2float %float_2 %float_4
73 %50 = OpConstantComposite %mat2v2float %48 %49
74 %v2bool = OpTypeVector %bool 2
75 %mat3v2float = OpTypeMatrix %v2float 3
76 %63 = OpConstantComposite %v2float %float_1 %float_4
77 %64 = OpConstantComposite %v2float %float_2 %float_5
78 %65 = OpConstantComposite %v2float %float_3 %float_6
79 %66 = OpConstantComposite %mat3v2float %63 %64 %65
80 %_ptr_Uniform_mat3v3float = OpTypePointer Uniform %mat3v3float
81 %int_1 = OpConstant %int 1
82 %float_7 = OpConstant %float 7
83 %float_8 = OpConstant %float 8
84 %float_9 = OpConstant %float 9
85 %89 = OpConstantComposite %v3float %float_1 %float_4 %float_7
86 %90 = OpConstantComposite %v3float %float_2 %float_5 %float_8
87 %91 = OpConstantComposite %v3float %float_3 %float_6 %float_9
88 %92 = OpConstantComposite %mat3v3float %89 %90 %91
89 %v3bool = OpTypeVector %bool 3
90 %_ptr_Function_v4float = OpTypePointer Function %v4float
91 %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
92 %int_2 = OpConstant %int 2
93 %int_3 = OpConstant %int 3
94 %_entrypoint_v = OpFunction %void None %19
95 %20 = OpLabel
96 %23 = OpVariable %_ptr_Function_v2float Function
97 OpStore %23 %22
98 %25 = OpFunctionCall %v4float %main %23
99 OpStore %sk_FragColor %25
100 OpReturn
101 OpFunctionEnd
102 %main = OpFunction %v4float None %26
103 %27 = OpFunctionParameter %_ptr_Function_v2float
104 %28 = OpLabel
105 %testMatrix2x3 = OpVariable %_ptr_Function_mat2v3float Function
106 %106 = OpVariable %_ptr_Function_v4float Function
107 OpStore %testMatrix2x3 %40
108 %43 = OpAccessChain %_ptr_Uniform_mat2v2float %10 %int_0
109 %47 = OpLoad %mat2v2float %43
110 %42 = OpTranspose %mat2v2float %47
111 %52 = OpCompositeExtract %v2float %42 0
112 %53 = OpFOrdEqual %v2bool %52 %48
113 %54 = OpAll %bool %53
114 %55 = OpCompositeExtract %v2float %42 1
115 %56 = OpFOrdEqual %v2bool %55 %49
116 %57 = OpAll %bool %56
117 %58 = OpLogicalAnd %bool %54 %57
118 OpSelectionMerge %60 None
119 OpBranchConditional %58 %59 %60
120 %59 = OpLabel
121 %61 = OpTranspose %mat3v2float %40
122 %67 = OpCompositeExtract %v2float %61 0
123 %68 = OpFOrdEqual %v2bool %67 %63
124 %69 = OpAll %bool %68
125 %70 = OpCompositeExtract %v2float %61 1
126 %71 = OpFOrdEqual %v2bool %70 %64
127 %72 = OpAll %bool %71
128 %73 = OpLogicalAnd %bool %69 %72
129 %74 = OpCompositeExtract %v2float %61 2
130 %75 = OpFOrdEqual %v2bool %74 %65
131 %76 = OpAll %bool %75
132 %77 = OpLogicalAnd %bool %73 %76
133 OpBranch %60
134 %60 = OpLabel
135 %78 = OpPhi %bool %false %28 %77 %59
136 OpSelectionMerge %80 None
137 OpBranchConditional %78 %79 %80
138 %79 = OpLabel
139 %82 = OpAccessChain %_ptr_Uniform_mat3v3float %10 %int_1
140 %85 = OpLoad %mat3v3float %82
141 %81 = OpTranspose %mat3v3float %85
142 %94 = OpCompositeExtract %v3float %81 0
143 %95 = OpFOrdEqual %v3bool %94 %89
144 %96 = OpAll %bool %95
145 %97 = OpCompositeExtract %v3float %81 1
146 %98 = OpFOrdEqual %v3bool %97 %90
147 %99 = OpAll %bool %98
148 %100 = OpLogicalAnd %bool %96 %99
149 %101 = OpCompositeExtract %v3float %81 2
150 %102 = OpFOrdEqual %v3bool %101 %91
151 %103 = OpAll %bool %102
152 %104 = OpLogicalAnd %bool %100 %103
153 OpBranch %80
154 %80 = OpLabel
155 %105 = OpPhi %bool %false %60 %104 %79
156 OpSelectionMerge %110 None
157 OpBranchConditional %105 %108 %109
158 %108 = OpLabel
159 %111 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
160 %114 = OpLoad %v4float %111
161 OpStore %106 %114
162 OpBranch %110
163 %109 = OpLabel
164 %115 = OpAccessChain %_ptr_Uniform_v4float %10 %int_3
165 %117 = OpLoad %v4float %115
166 OpStore %106 %117
167 OpBranch %110
168 %110 = OpLabel
169 %118 = OpLoad %v4float %106
170 OpReturnValue %118
171 OpFunctionEnd