glslang/Test/baseResults/hlsl.calculatelod.dx10.frag.out
John Kessenich d3f1122a44 Whole stack: Fix stale types in the AST linker object nodes, fixing #557.
Rationalizes the entire tracking of the linker object nodes, effecting
GLSL, HLSL, and SPIR-V, to allow tracked objects to be fully edited before
their type snapshot for linker objects.

Should only effect things when the rest of the AST contained no reference to
the symbol, because normal AST nodes were not stale. Also will only effect such
objects when their types were edited.
2016-11-05 10:22:33 -06:00

554 lines
25 KiB
Plaintext

hlsl.calculatelod.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:24 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Function Parameters:
0:? Sequence
0:28 Sequence
0:28 move second child to first child (temp float)
0:28 'txval10' (temp float)
0:28 direct index (temp float)
0:? textureQueryLod (temp float)
0:28 Construct combined texture-sampler (temp sampler1DArray)
0:28 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
0:28 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:28 Constant:
0:28 0.100000
0:28 Constant:
0:28 0 (const int)
0:29 Sequence
0:29 move second child to first child (temp float)
0:29 'txval11' (temp float)
0:29 direct index (temp float)
0:? textureQueryLod (temp float)
0:29 Construct combined texture-sampler (temp isampler1DArray)
0:29 'g_tTex1di4a' (uniform itexture1DArray)
0:29 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:29 Constant:
0:29 0.200000
0:29 Constant:
0:29 0 (const int)
0:30 Sequence
0:30 move second child to first child (temp float)
0:30 'txval12' (temp float)
0:30 direct index (temp float)
0:? textureQueryLod (temp float)
0:30 Construct combined texture-sampler (temp usampler1DArray)
0:30 'g_tTex1du4a' (uniform utexture1DArray)
0:30 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:30 Constant:
0:30 0.300000
0:30 Constant:
0:30 0 (const int)
0:32 Sequence
0:32 move second child to first child (temp float)
0:32 'txval20' (temp float)
0:32 direct index (temp float)
0:? textureQueryLod (temp float)
0:32 Construct combined texture-sampler (temp sampler2DArray)
0:32 'g_tTex2df4a' (uniform texture2DArray)
0:32 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:32 Constant:
0:32 0 (const int)
0:33 Sequence
0:33 move second child to first child (temp float)
0:33 'txval21' (temp float)
0:33 direct index (temp float)
0:? textureQueryLod (temp float)
0:33 Construct combined texture-sampler (temp isampler2DArray)
0:33 'g_tTex2di4a' (uniform itexture2DArray)
0:33 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.300000
0:? 0.400000
0:33 Constant:
0:33 0 (const int)
0:34 Sequence
0:34 move second child to first child (temp float)
0:34 'txval22' (temp float)
0:34 direct index (temp float)
0:? textureQueryLod (temp float)
0:34 Construct combined texture-sampler (temp usampler2DArray)
0:34 'g_tTex2du4a' (uniform utexture2DArray)
0:34 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.500000
0:? 0.600000
0:34 Constant:
0:34 0 (const int)
0:36 Sequence
0:36 move second child to first child (temp float)
0:36 'txval40' (temp float)
0:36 direct index (temp float)
0:? textureQueryLod (temp float)
0:36 Construct combined texture-sampler (temp samplerCubeArray)
0:36 'g_tTexcdf4a' (uniform textureCubeArray)
0:36 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:? 0.300000
0:36 Constant:
0:36 0 (const int)
0:37 Sequence
0:37 move second child to first child (temp float)
0:37 'txval41' (temp float)
0:37 direct index (temp float)
0:? textureQueryLod (temp float)
0:37 Construct combined texture-sampler (temp isamplerCubeArray)
0:37 'g_tTexcdi4a' (uniform itextureCubeArray)
0:37 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.400000
0:? 0.500000
0:? 0.600000
0:37 Constant:
0:37 0 (const int)
0:38 Sequence
0:38 move second child to first child (temp float)
0:38 'txval42' (temp float)
0:38 direct index (temp float)
0:? textureQueryLod (temp float)
0:38 Construct combined texture-sampler (temp usamplerCubeArray)
0:38 'g_tTexcdu4a' (uniform utextureCubeArray)
0:38 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.700000
0:? 0.800000
0:? 0.900000
0:38 Constant:
0:38 0 (const int)
0:40 move second child to first child (temp 4-component vector of float)
0:40 Color: direct index for structure (temp 4-component vector of float)
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:40 Constant:
0:40 0 (const int)
0:40 Constant:
0:40 1.000000
0:40 1.000000
0:40 1.000000
0:40 1.000000
0:41 move second child to first child (temp float)
0:41 Depth: direct index for structure (temp float)
0:41 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:41 Constant:
0:41 1 (const int)
0:41 Constant:
0:41 1.000000
0:43 Sequence
0:43 Sequence
0:43 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:43 Color: direct index for structure (temp 4-component vector of float)
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:43 Constant:
0:43 0 (const int)
0:43 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:43 Depth: direct index for structure (temp float)
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:43 Constant:
0:43 1 (const int)
0:43 Branch: Return
0:? Linker Objects
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1DArray)
0:? 'g_tTex1di4a' (uniform itexture1DArray)
0:? 'g_tTex1du4a' (uniform utexture1DArray)
0:? 'g_tTex2df4a' (uniform texture2DArray)
0:? 'g_tTex2di4a' (uniform itexture2DArray)
0:? 'g_tTex2du4a' (uniform utexture2DArray)
0:? 'g_tTexcdf4a' (uniform textureCubeArray)
0:? 'g_tTexcdi4a' (uniform itextureCubeArray)
0:? 'g_tTexcdu4a' (uniform utextureCubeArray)
Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:24 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:24 Function Parameters:
0:? Sequence
0:28 Sequence
0:28 move second child to first child (temp float)
0:28 'txval10' (temp float)
0:28 direct index (temp float)
0:? textureQueryLod (temp float)
0:28 Construct combined texture-sampler (temp sampler1DArray)
0:28 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
0:28 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:28 Constant:
0:28 0.100000
0:28 Constant:
0:28 0 (const int)
0:29 Sequence
0:29 move second child to first child (temp float)
0:29 'txval11' (temp float)
0:29 direct index (temp float)
0:? textureQueryLod (temp float)
0:29 Construct combined texture-sampler (temp isampler1DArray)
0:29 'g_tTex1di4a' (uniform itexture1DArray)
0:29 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:29 Constant:
0:29 0.200000
0:29 Constant:
0:29 0 (const int)
0:30 Sequence
0:30 move second child to first child (temp float)
0:30 'txval12' (temp float)
0:30 direct index (temp float)
0:? textureQueryLod (temp float)
0:30 Construct combined texture-sampler (temp usampler1DArray)
0:30 'g_tTex1du4a' (uniform utexture1DArray)
0:30 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:30 Constant:
0:30 0.300000
0:30 Constant:
0:30 0 (const int)
0:32 Sequence
0:32 move second child to first child (temp float)
0:32 'txval20' (temp float)
0:32 direct index (temp float)
0:? textureQueryLod (temp float)
0:32 Construct combined texture-sampler (temp sampler2DArray)
0:32 'g_tTex2df4a' (uniform texture2DArray)
0:32 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:32 Constant:
0:32 0 (const int)
0:33 Sequence
0:33 move second child to first child (temp float)
0:33 'txval21' (temp float)
0:33 direct index (temp float)
0:? textureQueryLod (temp float)
0:33 Construct combined texture-sampler (temp isampler2DArray)
0:33 'g_tTex2di4a' (uniform itexture2DArray)
0:33 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.300000
0:? 0.400000
0:33 Constant:
0:33 0 (const int)
0:34 Sequence
0:34 move second child to first child (temp float)
0:34 'txval22' (temp float)
0:34 direct index (temp float)
0:? textureQueryLod (temp float)
0:34 Construct combined texture-sampler (temp usampler2DArray)
0:34 'g_tTex2du4a' (uniform utexture2DArray)
0:34 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.500000
0:? 0.600000
0:34 Constant:
0:34 0 (const int)
0:36 Sequence
0:36 move second child to first child (temp float)
0:36 'txval40' (temp float)
0:36 direct index (temp float)
0:? textureQueryLod (temp float)
0:36 Construct combined texture-sampler (temp samplerCubeArray)
0:36 'g_tTexcdf4a' (uniform textureCubeArray)
0:36 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:? 0.300000
0:36 Constant:
0:36 0 (const int)
0:37 Sequence
0:37 move second child to first child (temp float)
0:37 'txval41' (temp float)
0:37 direct index (temp float)
0:? textureQueryLod (temp float)
0:37 Construct combined texture-sampler (temp isamplerCubeArray)
0:37 'g_tTexcdi4a' (uniform itextureCubeArray)
0:37 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.400000
0:? 0.500000
0:? 0.600000
0:37 Constant:
0:37 0 (const int)
0:38 Sequence
0:38 move second child to first child (temp float)
0:38 'txval42' (temp float)
0:38 direct index (temp float)
0:? textureQueryLod (temp float)
0:38 Construct combined texture-sampler (temp usamplerCubeArray)
0:38 'g_tTexcdu4a' (uniform utextureCubeArray)
0:38 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? Constant:
0:? 0.700000
0:? 0.800000
0:? 0.900000
0:38 Constant:
0:38 0 (const int)
0:40 move second child to first child (temp 4-component vector of float)
0:40 Color: direct index for structure (temp 4-component vector of float)
0:40 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:40 Constant:
0:40 0 (const int)
0:40 Constant:
0:40 1.000000
0:40 1.000000
0:40 1.000000
0:40 1.000000
0:41 move second child to first child (temp float)
0:41 Depth: direct index for structure (temp float)
0:41 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:41 Constant:
0:41 1 (const int)
0:41 Constant:
0:41 1.000000
0:43 Sequence
0:43 Sequence
0:43 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:43 Color: direct index for structure (temp 4-component vector of float)
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:43 Constant:
0:43 0 (const int)
0:43 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:43 Depth: direct index for structure (temp float)
0:43 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:43 Constant:
0:43 1 (const int)
0:43 Branch: Return
0:? Linker Objects
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1DArray)
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1DArray)
0:? 'g_tTex1di4a' (uniform itexture1DArray)
0:? 'g_tTex1du4a' (uniform utexture1DArray)
0:? 'g_tTex2df4a' (uniform texture2DArray)
0:? 'g_tTex2di4a' (uniform itexture2DArray)
0:? 'g_tTex2du4a' (uniform utexture2DArray)
0:? 'g_tTexcdf4a' (uniform textureCubeArray)
0:? 'g_tTexcdi4a' (uniform itextureCubeArray)
0:? 'g_tTexcdu4a' (uniform utextureCubeArray)
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 141
Capability Shader
Capability Sampled1D
Capability SampledCubeArray
Capability ImageQuery
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 132 136
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 8 "txval10"
Name 11 "g_tTex1df4a"
Name 15 "g_sSamp"
Name 25 "txval11"
Name 28 "g_tTex1di4a"
Name 36 "txval12"
Name 40 "g_tTex1du4a"
Name 48 "txval20"
Name 51 "g_tTex2df4a"
Name 59 "txval21"
Name 62 "g_tTex2di4a"
Name 71 "txval22"
Name 74 "g_tTex2du4a"
Name 84 "txval40"
Name 87 "g_tTexcdf4a"
Name 96 "txval41"
Name 99 "g_tTexcdi4a"
Name 107 "txval42"
Name 110 "g_tTexcdu4a"
Name 122 "PS_OUTPUT"
MemberName 122(PS_OUTPUT) 0 "Color"
MemberName 122(PS_OUTPUT) 1 "Depth"
Name 124 "psout"
Name 132 "Color"
Name 136 "Depth"
Name 140 "g_tTex1df4"
Decorate 11(g_tTex1df4a) DescriptorSet 0
Decorate 11(g_tTex1df4a) Binding 1
Decorate 15(g_sSamp) DescriptorSet 0
Decorate 15(g_sSamp) Binding 0
Decorate 28(g_tTex1di4a) DescriptorSet 0
Decorate 40(g_tTex1du4a) DescriptorSet 0
Decorate 51(g_tTex2df4a) DescriptorSet 0
Decorate 62(g_tTex2di4a) DescriptorSet 0
Decorate 74(g_tTex2du4a) DescriptorSet 0
Decorate 87(g_tTexcdf4a) DescriptorSet 0
Decorate 99(g_tTexcdi4a) DescriptorSet 0
Decorate 110(g_tTexcdu4a) DescriptorSet 0
Decorate 132(Color) Location 0
Decorate 136(Depth) BuiltIn FragDepth
Decorate 140(g_tTex1df4) DescriptorSet 0
Decorate 140(g_tTex1df4) Binding 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypePointer Function 6(float)
9: TypeImage 6(float) 1D array sampled format:Unknown
10: TypePointer UniformConstant 9
11(g_tTex1df4a): 10(ptr) Variable UniformConstant
13: TypeSampler
14: TypePointer UniformConstant 13
15(g_sSamp): 14(ptr) Variable UniformConstant
17: TypeSampledImage 9
19: 6(float) Constant 1036831949
20: TypeVector 6(float) 2
22: TypeInt 32 1
23: 22(int) Constant 0
26: TypeImage 22(int) 1D array sampled format:Unknown
27: TypePointer UniformConstant 26
28(g_tTex1di4a): 27(ptr) Variable UniformConstant
31: TypeSampledImage 26
33: 6(float) Constant 1045220557
37: TypeInt 32 0
38: TypeImage 37(int) 1D array sampled format:Unknown
39: TypePointer UniformConstant 38
40(g_tTex1du4a): 39(ptr) Variable UniformConstant
43: TypeSampledImage 38
45: 6(float) Constant 1050253722
49: TypeImage 6(float) 2D array sampled format:Unknown
50: TypePointer UniformConstant 49
51(g_tTex2df4a): 50(ptr) Variable UniformConstant
54: TypeSampledImage 49
56: 20(fvec2) ConstantComposite 19 33
60: TypeImage 22(int) 2D array sampled format:Unknown
61: TypePointer UniformConstant 60
62(g_tTex2di4a): 61(ptr) Variable UniformConstant
65: TypeSampledImage 60
67: 6(float) Constant 1053609165
68: 20(fvec2) ConstantComposite 45 67
72: TypeImage 37(int) 2D array sampled format:Unknown
73: TypePointer UniformConstant 72
74(g_tTex2du4a): 73(ptr) Variable UniformConstant
77: TypeSampledImage 72
79: 6(float) Constant 1056964608
80: 6(float) Constant 1058642330
81: 20(fvec2) ConstantComposite 79 80
85: TypeImage 6(float) Cube array sampled format:Unknown
86: TypePointer UniformConstant 85
87(g_tTexcdf4a): 86(ptr) Variable UniformConstant
90: TypeSampledImage 85
92: TypeVector 6(float) 3
93: 92(fvec3) ConstantComposite 19 33 45
97: TypeImage 22(int) Cube array sampled format:Unknown
98: TypePointer UniformConstant 97
99(g_tTexcdi4a): 98(ptr) Variable UniformConstant
102: TypeSampledImage 97
104: 92(fvec3) ConstantComposite 67 79 80
108: TypeImage 37(int) Cube array sampled format:Unknown
109: TypePointer UniformConstant 108
110(g_tTexcdu4a): 109(ptr) Variable UniformConstant
113: TypeSampledImage 108
115: 6(float) Constant 1060320051
116: 6(float) Constant 1061997773
117: 6(float) Constant 1063675494
118: 92(fvec3) ConstantComposite 115 116 117
121: TypeVector 6(float) 4
122(PS_OUTPUT): TypeStruct 121(fvec4) 6(float)
123: TypePointer Function 122(PS_OUTPUT)
125: 6(float) Constant 1065353216
126: 121(fvec4) ConstantComposite 125 125 125 125
127: TypePointer Function 121(fvec4)
129: 22(int) Constant 1
131: TypePointer Output 121(fvec4)
132(Color): 131(ptr) Variable Output
135: TypePointer Output 6(float)
136(Depth): 135(ptr) Variable Output
140(g_tTex1df4): 10(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
8(txval10): 7(ptr) Variable Function
25(txval11): 7(ptr) Variable Function
36(txval12): 7(ptr) Variable Function
48(txval20): 7(ptr) Variable Function
59(txval21): 7(ptr) Variable Function
71(txval22): 7(ptr) Variable Function
84(txval40): 7(ptr) Variable Function
96(txval41): 7(ptr) Variable Function
107(txval42): 7(ptr) Variable Function
124(psout): 123(ptr) Variable Function
12: 9 Load 11(g_tTex1df4a)
16: 13 Load 15(g_sSamp)
18: 17 SampledImage 12 16
21: 20(fvec2) ImageQueryLod 18 19
24: 6(float) CompositeExtract 21 0
Store 8(txval10) 24
29: 26 Load 28(g_tTex1di4a)
30: 13 Load 15(g_sSamp)
32: 31 SampledImage 29 30
34: 20(fvec2) ImageQueryLod 32 33
35: 6(float) CompositeExtract 34 0
Store 25(txval11) 35
41: 38 Load 40(g_tTex1du4a)
42: 13 Load 15(g_sSamp)
44: 43 SampledImage 41 42
46: 20(fvec2) ImageQueryLod 44 45
47: 6(float) CompositeExtract 46 0
Store 36(txval12) 47
52: 49 Load 51(g_tTex2df4a)
53: 13 Load 15(g_sSamp)
55: 54 SampledImage 52 53
57: 20(fvec2) ImageQueryLod 55 56
58: 6(float) CompositeExtract 57 0
Store 48(txval20) 58
63: 60 Load 62(g_tTex2di4a)
64: 13 Load 15(g_sSamp)
66: 65 SampledImage 63 64
69: 20(fvec2) ImageQueryLod 66 68
70: 6(float) CompositeExtract 69 0
Store 59(txval21) 70
75: 72 Load 74(g_tTex2du4a)
76: 13 Load 15(g_sSamp)
78: 77 SampledImage 75 76
82: 20(fvec2) ImageQueryLod 78 81
83: 6(float) CompositeExtract 82 0
Store 71(txval22) 83
88: 85 Load 87(g_tTexcdf4a)
89: 13 Load 15(g_sSamp)
91: 90 SampledImage 88 89
94: 20(fvec2) ImageQueryLod 91 93
95: 6(float) CompositeExtract 94 0
Store 84(txval40) 95
100: 97 Load 99(g_tTexcdi4a)
101: 13 Load 15(g_sSamp)
103: 102 SampledImage 100 101
105: 20(fvec2) ImageQueryLod 103 104
106: 6(float) CompositeExtract 105 0
Store 96(txval41) 106
111: 108 Load 110(g_tTexcdu4a)
112: 13 Load 15(g_sSamp)
114: 113 SampledImage 111 112
119: 20(fvec2) ImageQueryLod 114 118
120: 6(float) CompositeExtract 119 0
Store 107(txval42) 120
128: 127(ptr) AccessChain 124(psout) 23
Store 128 126
130: 7(ptr) AccessChain 124(psout) 129
Store 130 125
133: 127(ptr) AccessChain 124(psout) 23
134: 121(fvec4) Load 133
Store 132(Color) 134
137: 7(ptr) AccessChain 124(psout) 129
138: 6(float) Load 137
Store 136(Depth) 138
Return
FunctionEnd