yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wooyoung KimCompile SPV_QCOM_image_processing/SPV_QCOM_image_processing2 tests under the SPV 1.4 semantics7899f3c1

main
6.6 KiB126 linesraw
1spv.tpipBlockMatchGatherSSD.frag
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 72
5
6                              Capability Shader
7                              Capability TextureBlockMatchQCOM
8                              Capability TextureBlockMatch2QCOM
9                              Extension  "SPV_QCOM_image_processing"
10                              Extension  "SPV_QCOM_image_processing2"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint Fragment 4  "main" 13 41 44 48 53 61 64 71
14                              ExecutionMode 4 OriginUpperLeft
15                              Source GLSL 450
16                              SourceExtension  "GL_QCOM_image_processing"
17                              SourceExtension  "GL_QCOM_image_processing2"
18                              Name 4  "main"
19                              Name 9  "tgt_coords"
20                              Name 13  "v_texcoord"
21                              Name 26  "ref_coords"
22                              Name 37  "blockSize"
23                              Name 41  "fragColor"
24                              Name 44  "tex2D_src1"
25                              Name 48  "samp"
26                              Name 53  "tex2D_src2"
27                              Name 61  "target_samp"
28                              Name 64  "ref_samp"
29                              Name 71  "tex2DArray_weights"
30                              Decorate 13(v_texcoord) Location 0
31                              Decorate 41(fragColor) Location 0
32                              Decorate 44(tex2D_src1) Binding 1
33                              Decorate 44(tex2D_src1) DescriptorSet 0
34                              Decorate 44(tex2D_src1) DecorationBlockMatchTextureQCOM
35                              Decorate 48(samp) Binding 3
36                              Decorate 48(samp) DescriptorSet 0
37                              Decorate 53(tex2D_src2) Binding 2
38                              Decorate 53(tex2D_src2) DescriptorSet 0
39                              Decorate 53(tex2D_src2) DecorationBlockMatchTextureQCOM
40                              Decorate 61(target_samp) Binding 4
41                              Decorate 61(target_samp) DescriptorSet 0
42                              Decorate 61(target_samp) DecorationBlockMatchTextureQCOM
43                              Decorate 64(ref_samp) Binding 5
44                              Decorate 64(ref_samp) DescriptorSet 0
45                              Decorate 64(ref_samp) DecorationBlockMatchTextureQCOM
46                              Decorate 71(tex2DArray_weights) Binding 0
47                              Decorate 71(tex2DArray_weights) DescriptorSet 0
48               2:             TypeVoid
49               3:             TypeFunction 2
50               6:             TypeInt 32 0
51               7:             TypeVector 6(int) 2
52               8:             TypePointer Function 7(ivec2)
53              10:             TypeFloat 32
54              11:             TypeVector 10(float) 4
55              12:             TypePointer Input 11(fvec4)
56  13(v_texcoord):     12(ptr) Variable Input
57              14:      6(int) Constant 0
58              15:             TypePointer Input 10(float)
59              19:             TypePointer Function 6(int)
60              21:      6(int) Constant 1
61              27:      6(int) Constant 2
62              32:      6(int) Constant 3
63              38:      6(int) Constant 4
64              39:    7(ivec2) ConstantComposite 38 38
65              40:             TypePointer Output 11(fvec4)
66   41(fragColor):     40(ptr) Variable Output
67              42:             TypeImage 10(float) 2D sampled format:Unknown
68              43:             TypePointer UniformConstant 42
69  44(tex2D_src1):     43(ptr) Variable UniformConstant
70              46:             TypeSampler
71              47:             TypePointer UniformConstant 46
72        48(samp):     47(ptr) Variable UniformConstant
73              50:             TypeSampledImage 42
74  53(tex2D_src2):     43(ptr) Variable UniformConstant
75              60:             TypePointer UniformConstant 50
76 61(target_samp):     60(ptr) Variable UniformConstant
77    64(ref_samp):     60(ptr) Variable UniformConstant
78              69:             TypeImage 10(float) 2D array sampled format:Unknown
79              70:             TypePointer UniformConstant 69
8071(tex2DArray_weights):     70(ptr) Variable UniformConstant
81         4(main):           2 Function None 3
82               5:             Label
83   9(tgt_coords):      8(ptr) Variable Function
84  26(ref_coords):      8(ptr) Variable Function
85   37(blockSize):      8(ptr) Variable Function
86              16:     15(ptr) AccessChain 13(v_texcoord) 14
87              17:   10(float) Load 16
88              18:      6(int) ConvertFToU 17
89              20:     19(ptr) AccessChain 9(tgt_coords) 14
90                              Store 20 18
91              22:     15(ptr) AccessChain 13(v_texcoord) 21
92              23:   10(float) Load 22
93              24:      6(int) ConvertFToU 23
94              25:     19(ptr) AccessChain 9(tgt_coords) 14
95                              Store 25 24
96              28:     15(ptr) AccessChain 13(v_texcoord) 27
97              29:   10(float) Load 28
98              30:      6(int) ConvertFToU 29
99              31:     19(ptr) AccessChain 26(ref_coords) 14
100                              Store 31 30
101              33:     15(ptr) AccessChain 13(v_texcoord) 32
102              34:   10(float) Load 33
103              35:      6(int) ConvertFToU 34
104              36:     19(ptr) AccessChain 26(ref_coords) 21
105                              Store 36 35
106                              Store 37(blockSize) 39
107              45:          42 Load 44(tex2D_src1)
108              49:          46 Load 48(samp)
109              51:          50 SampledImage 45 49
110              52:    7(ivec2) Load 9(tgt_coords)
111              54:          42 Load 53(tex2D_src2)
112              55:          46 Load 48(samp)
113              56:          50 SampledImage 54 55
114              57:    7(ivec2) Load 26(ref_coords)
115              58:    7(ivec2) Load 37(blockSize)
116              59:   11(fvec4) ImageBlockMatchGatherSSDQCOM 51 52 56 57 58
117                              Store 41(fragColor) 59
118              62:          50 Load 61(target_samp)
119              63:    7(ivec2) Load 9(tgt_coords)
120              65:          50 Load 64(ref_samp)
121              66:    7(ivec2) Load 26(ref_coords)
122              67:    7(ivec2) Load 37(blockSize)
123              68:   11(fvec4) ImageBlockMatchGatherSSDQCOM 62 63 65 66 67
124                              Store 41(fragColor) 68
125                              Return
126                              FunctionEnd