xref: /aosp_15_r20/external/skia/tests/sksl/spirv/Ossfuzz70523.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %main "main"
5               OpExecutionMode %main OriginUpperLeft
6               OpName %aSampler_texture "aSampler_texture"
7               OpName %aSampler_sampler "aSampler_sampler"
8               OpName %anotherSampler_texture "anotherSampler_texture"
9               OpName %anotherSampler_sampler "anotherSampler_sampler"
10               OpName %helper_h4Z_aSampler "helper_h4Z_aSampler"
11               OpName %helper_h4Z_anotherSampler "helper_h4Z_anotherSampler"
12               OpName %main "main"
13               OpDecorate %aSampler_texture Binding 2
14               OpDecorate %aSampler_texture DescriptorSet 0
15               OpDecorate %aSampler_sampler Binding 3
16               OpDecorate %aSampler_sampler DescriptorSet 0
17               OpDecorate %anotherSampler_texture Binding 3
18               OpDecorate %anotherSampler_texture DescriptorSet 0
19               OpDecorate %anotherSampler_sampler Binding 5
20               OpDecorate %anotherSampler_sampler DescriptorSet 0
21               OpDecorate %37 RelaxedPrecision
22      %float = OpTypeFloat 32
23          %7 = OpTypeImage %float 2D 0 0 0 1 Unknown
24%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
25%aSampler_texture = OpVariable %_ptr_UniformConstant_7 UniformConstant
26         %10 = OpTypeSampler
27%_ptr_UniformConstant_10 = OpTypePointer UniformConstant %10
28%aSampler_sampler = OpVariable %_ptr_UniformConstant_10 UniformConstant
29%anotherSampler_texture = OpVariable %_ptr_UniformConstant_7 UniformConstant
30%anotherSampler_sampler = OpVariable %_ptr_UniformConstant_10 UniformConstant
31    %v4float = OpTypeVector %float 4
32         %15 = OpTypeFunction %v4float %_ptr_UniformConstant_7
33         %22 = OpTypeSampledImage %7
34    %float_1 = OpConstant %float 1
35    %v2float = OpTypeVector %float 2
36         %25 = OpConstantComposite %v2float %float_1 %float_1
37       %void = OpTypeVoid
38         %33 = OpTypeFunction %void
39%helper_h4Z_aSampler = OpFunction %v4float None %15
40         %16 = OpFunctionParameter %_ptr_UniformConstant_7
41         %17 = OpLabel
42         %19 = OpLoad %7 %16
43         %20 = OpLoad %10 %aSampler_sampler
44         %21 = OpSampledImage %22 %19 %20
45         %18 = OpImageSampleImplicitLod %v4float %21 %25
46               OpReturnValue %18
47               OpFunctionEnd
48%helper_h4Z_anotherSampler = OpFunction %v4float None %15
49         %26 = OpFunctionParameter %_ptr_UniformConstant_7
50         %27 = OpLabel
51         %29 = OpLoad %7 %26
52         %30 = OpLoad %10 %anotherSampler_sampler
53         %31 = OpSampledImage %22 %29 %30
54         %28 = OpImageSampleImplicitLod %v4float %31 %25
55               OpReturnValue %28
56               OpFunctionEnd
57       %main = OpFunction %void None %33
58         %34 = OpLabel
59         %35 = OpFunctionCall %v4float %helper_h4Z_aSampler %aSampler_texture
60         %36 = OpFunctionCall %v4float %helper_h4Z_anotherSampler %anotherSampler_texture
61         %37 = OpFAdd %v4float %35 %36
62               OpReturn
63               OpFunctionEnd
64