• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;; Tests a diff where the src shader doesn't have OpExtImport while the
2;; dst shader does (and uses OpExtInst).  This test ensures that when matching,
3;; the OpExtImport instruction from the correct module is referenced.
4               OpCapability Shader
5               OpMemoryModel Logical GLSL450
6               OpEntryPoint Fragment %4 "main" %9 %11
7               OpExecutionMode %4 OriginUpperLeft
8               OpSource ESSL 310
9               OpName %4 "main"
10               OpName %9 "color"
11               OpName %11 "v"
12               OpDecorate %9 RelaxedPrecision
13               OpDecorate %9 Location 0
14               OpDecorate %11 RelaxedPrecision
15               OpDecorate %11 Location 0
16               OpDecorate %12 RelaxedPrecision
17               OpDecorate %13 RelaxedPrecision
18          %2 = OpTypeVoid
19          %3 = OpTypeFunction %2
20          %6 = OpTypeFloat 32
21          %7 = OpTypeVector %6 4
22          %8 = OpTypePointer Output %7
23          %9 = OpVariable %8 Output
24         %10 = OpTypePointer Input %6
25         %11 = OpVariable %10 Input
26          %4 = OpFunction %2 None %3
27          %5 = OpLabel
28         %12 = OpLoad %6 %11
29         %13 = OpCompositeConstruct %7 %12 %12 %12 %12
30               OpStore %9 %13
31               OpReturn
32               OpFunctionEnd
33
34