blob: 07ba96e6b596a7bd372122ce1bc05e15be88978c [file] [log] [blame]
#include <stdint.h>
#pragma once
// *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See generate_spirv.py for modifications
/***************************************************************************
*
* Copyright (c) 2021-2022 The Khronos Group Inc.
* Copyright (c) 2021-2022 Valve Corporation
* Copyright (c) 2021-2022 LunarG, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: Tony Barbour <tony@lunarg.com>
* Author: Spencer Fricke <spencerfricke@gmail.com>
*
****************************************************************************/
// disassembled SPIR-V
#if 0
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 111
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main"
ExecutionMode 4 LocalSize 1 1 1
Source GLSL 450
SourceExtension "GL_GOOGLE_cpp_style_line_directive"
SourceExtension "GL_GOOGLE_include_directive"
Name 4 "main"
Name 8 "instance_index"
Name 17 "ValidationBuffer"
MemberName 17(ValidationBuffer) 0 "instances_to_validate"
MemberName 17(ValidationBuffer) 1 "replacement_handle_bits_0"
MemberName 17(ValidationBuffer) 2 "replacement_handle_bits_1"
MemberName 17(ValidationBuffer) 3 "invalid_handle_found"
MemberName 17(ValidationBuffer) 4 "invalid_handle_bits_0"
MemberName 17(ValidationBuffer) 5 "invalid_handle_bits_1"
MemberName 17(ValidationBuffer) 6 "valid_handles_count"
MemberName 17(ValidationBuffer) 7 "valid_handles"
Name 19 ""
Name 27 "instance_handle_bits_0"
Name 30 "VkGeometryInstanceNV"
MemberName 30(VkGeometryInstanceNV) 0 "unused"
MemberName 30(VkGeometryInstanceNV) 1 "handle_bits_0"
MemberName 30(VkGeometryInstanceNV) 2 "handle_bits_1"
Name 32 "InstanceBuffer"
MemberName 32(InstanceBuffer) 0 "instances"
Name 34 ""
Name 39 "instance_handle_bits_1"
Name 45 "valid"
Name 47 "valid_handle_index"
Decorate 16 ArrayStride 4
MemberDecorate 17(ValidationBuffer) 0 Offset 0
MemberDecorate 17(ValidationBuffer) 1 Offset 4
MemberDecorate 17(ValidationBuffer) 2 Offset 8
MemberDecorate 17(ValidationBuffer) 3 Offset 12
MemberDecorate 17(ValidationBuffer) 4 Offset 16
MemberDecorate 17(ValidationBuffer) 5 Offset 20
MemberDecorate 17(ValidationBuffer) 6 Offset 24
MemberDecorate 17(ValidationBuffer) 7 Offset 28
Decorate 17(ValidationBuffer) BufferBlock
Decorate 19 DescriptorSet 0
Decorate 19 Binding 1
Decorate 29 ArrayStride 4
MemberDecorate 30(VkGeometryInstanceNV) 0 Offset 0
MemberDecorate 30(VkGeometryInstanceNV) 1 Offset 56
MemberDecorate 30(VkGeometryInstanceNV) 2 Offset 60
Decorate 31 ArrayStride 64
MemberDecorate 32(InstanceBuffer) 0 Offset 0
Decorate 32(InstanceBuffer) BufferBlock
Decorate 34 DescriptorSet 0
Decorate 34 Binding 0
Decorate 110 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 0
7: TypePointer Function 6(int)
9: 6(int) Constant 0
16: TypeRuntimeArray 6(int)
17(ValidationBuffer): TypeStruct 6(int) 6(int) 6(int) 6(int) 6(int) 6(int) 6(int) 16
18: TypePointer Uniform 17(ValidationBuffer)
19: 18(ptr) Variable Uniform
20: TypeInt 32 1
21: 20(int) Constant 0
22: TypePointer Uniform 6(int)
25: TypeBool
28: 6(int) Constant 14
29: TypeArray 6(int) 28
30(VkGeometryInstanceNV): TypeStruct 29 6(int) 6(int)
31: TypeRuntimeArray 30(VkGeometryInstanceNV)
32(InstanceBuffer): TypeStruct 31
33: TypePointer Uniform 32(InstanceBuffer)
34: 33(ptr) Variable Uniform
36: 20(int) Constant 1
41: 20(int) Constant 2
44: TypePointer Function 25(bool)
46: 25(bool) ConstantFalse
54: 20(int) Constant 6
59: 20(int) Constant 7
60: 6(int) Constant 2
72: 6(int) Constant 1
80: 25(bool) ConstantTrue
88: 20(int) Constant 3
93: 20(int) Constant 4
96: 20(int) Constant 5
109: TypeVector 6(int) 3
110: 109(ivec3) ConstantComposite 72 72 72
4(main): 2 Function None 3
5: Label
8(instance_index): 7(ptr) Variable Function
27(instance_handle_bits_0): 7(ptr) Variable Function
39(instance_handle_bits_1): 7(ptr) Variable Function
45(valid): 44(ptr) Variable Function
47(valid_handle_index): 7(ptr) Variable Function
Store 8(instance_index) 9
Branch 10
10: Label
LoopMerge 12 13 None
Branch 14
14: Label
15: 6(int) Load 8(instance_index)
23: 22(ptr) AccessChain 19 21
24: 6(int) Load 23
26: 25(bool) ULessThan 15 24
BranchConditional 26 11 12
11: Label
35: 6(int) Load 8(instance_index)
37: 22(ptr) AccessChain 34 21 35 36
38: 6(int) Load 37
Store 27(instance_handle_bits_0) 38
40: 6(int) Load 8(instance_index)
42: 22(ptr) AccessChain 34 21 40 41
43: 6(int) Load 42
Store 39(instance_handle_bits_1) 43
Store 45(valid) 46
Store 47(valid_handle_index) 9
Branch 48
48: Label
LoopMerge 50 51 None
Branch 52
52: Label
53: 6(int) Load 47(valid_handle_index)
55: 22(ptr) AccessChain 19 54
56: 6(int) Load 55
57: 25(bool) ULessThan 53 56
BranchConditional 57 49 50
49: Label
58: 6(int) Load 27(instance_handle_bits_0)
61: 6(int) Load 47(valid_handle_index)
62: 6(int) IMul 60 61
63: 6(int) IAdd 62 9
64: 22(ptr) AccessChain 19 59 63
65: 6(int) Load 64
66: 25(bool) IEqual 58 65
SelectionMerge 68 None
BranchConditional 66 67 68
67: Label
69: 6(int) Load 39(instance_handle_bits_1)
70: 6(int) Load 47(valid_handle_index)
71: 6(int) IMul 60 70
73: 6(int) IAdd 71 72
74: 22(ptr) AccessChain 19 59 73
75: 6(int) Load 74
76: 25(bool) IEqual 69 75
Branch 68
68: Label
77: 25(bool) Phi 66 49 76 67
SelectionMerge 79 None
BranchConditional 77 78 79
78: Label
Store 45(valid) 80
Branch 50
79: Label
Branch 51
51: Label
82: 6(int) Load 47(valid_handle_index)
83: 6(int) IAdd 82 36
Store 47(valid_handle_index) 83
Branch 48
50: Label
84: 25(bool) Load 45(valid)
85: 25(bool) LogicalNot 84
SelectionMerge 87 None
BranchConditional 85 86 87
86: Label
89: 22(ptr) AccessChain 19 88
90: 6(int) Load 89
91: 6(int) IAdd 90 72
92: 22(ptr) AccessChain 19 88
Store 92 91
94: 6(int) Load 27(instance_handle_bits_0)
95: 22(ptr) AccessChain 19 93
Store 95 94
97: 6(int) Load 39(instance_handle_bits_1)
98: 22(ptr) AccessChain 19 96
Store 98 97
99: 6(int) Load 8(instance_index)
100: 22(ptr) AccessChain 19 36
101: 6(int) Load 100
102: 22(ptr) AccessChain 34 21 99 36
Store 102 101
103: 6(int) Load 8(instance_index)
104: 22(ptr) AccessChain 19 41
105: 6(int) Load 104
106: 22(ptr) AccessChain 34 21 103 41
Store 106 105
Branch 87
87: Label
Branch 13
13: Label
107: 6(int) Load 8(instance_index)
108: 6(int) IAdd 107 36
Store 8(instance_index) 108
Branch 10
12: Label
Return
FunctionEnd
#endif
static const uint32_t gpu_as_inspection_comp[842] = {
0x07230203, 0x00010000, 0x0008000a, 0x0000006f,
0x00000000, 0x00020011, 0x00000001, 0x0006000b,
0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e,
0x00000000, 0x0003000e, 0x00000000, 0x00000001,
0x0005000f, 0x00000005, 0x00000004, 0x6e69616d,
0x00000000, 0x00060010, 0x00000004, 0x00000011,
0x00000001, 0x00000001, 0x00000001, 0x00030003,
0x00000002, 0x000001c2, 0x000a0004, 0x475f4c47,
0x4c474f4f, 0x70635f45, 0x74735f70, 0x5f656c79,
0x656e696c, 0x7269645f, 0x69746365, 0x00006576,
0x00080004, 0x475f4c47, 0x4c474f4f, 0x6e695f45,
0x64756c63, 0x69645f65, 0x74636572, 0x00657669,
0x00040005, 0x00000004, 0x6e69616d, 0x00000000,
0x00060005, 0x00000008, 0x74736e69, 0x65636e61,
0x646e695f, 0x00007865, 0x00070005, 0x00000011,
0x696c6156, 0x69746164, 0x75426e6f, 0x72656666,
0x00000000, 0x00090006, 0x00000011, 0x00000000,
0x74736e69, 0x65636e61, 0x6f745f73, 0x6c61765f,
0x74616469, 0x00000065, 0x000a0006, 0x00000011,
0x00000001, 0x6c706572, 0x6d656361, 0x5f746e65,
0x646e6168, 0x625f656c, 0x5f737469, 0x00000030,
0x000a0006, 0x00000011, 0x00000002, 0x6c706572,
0x6d656361, 0x5f746e65, 0x646e6168, 0x625f656c,
0x5f737469, 0x00000031, 0x00090006, 0x00000011,
0x00000003, 0x61766e69, 0x5f64696c, 0x646e6168,
0x665f656c, 0x646e756f, 0x00000000, 0x00090006,
0x00000011, 0x00000004, 0x61766e69, 0x5f64696c,
0x646e6168, 0x625f656c, 0x5f737469, 0x00000030,
0x00090006, 0x00000011, 0x00000005, 0x61766e69,
0x5f64696c, 0x646e6168, 0x625f656c, 0x5f737469,
0x00000031, 0x00080006, 0x00000011, 0x00000006,
0x696c6176, 0x61685f64, 0x656c646e, 0x6f635f73,
0x00746e75, 0x00070006, 0x00000011, 0x00000007,
0x696c6176, 0x61685f64, 0x656c646e, 0x00000073,
0x00030005, 0x00000013, 0x00000000, 0x00080005,
0x0000001b, 0x74736e69, 0x65636e61, 0x6e61685f,
0x5f656c64, 0x73746962, 0x0000305f, 0x00080005,
0x0000001e, 0x65476b56, 0x74656d6f, 0x6e497972,
0x6e617473, 0x564e6563, 0x00000000, 0x00050006,
0x0000001e, 0x00000000, 0x73756e75, 0x00006465,
0x00070006, 0x0000001e, 0x00000001, 0x646e6168,
0x625f656c, 0x5f737469, 0x00000030, 0x00070006,
0x0000001e, 0x00000002, 0x646e6168, 0x625f656c,
0x5f737469, 0x00000031, 0x00060005, 0x00000020,
0x74736e49, 0x65636e61, 0x66667542, 0x00007265,
0x00060006, 0x00000020, 0x00000000, 0x74736e69,
0x65636e61, 0x00000073, 0x00030005, 0x00000022,
0x00000000, 0x00080005, 0x00000027, 0x74736e69,
0x65636e61, 0x6e61685f, 0x5f656c64, 0x73746962,
0x0000315f, 0x00040005, 0x0000002d, 0x696c6176,
0x00000064, 0x00070005, 0x0000002f, 0x696c6176,
0x61685f64, 0x656c646e, 0x646e695f, 0x00007865,
0x00040047, 0x00000010, 0x00000006, 0x00000004,
0x00050048, 0x00000011, 0x00000000, 0x00000023,
0x00000000, 0x00050048, 0x00000011, 0x00000001,
0x00000023, 0x00000004, 0x00050048, 0x00000011,
0x00000002, 0x00000023, 0x00000008, 0x00050048,
0x00000011, 0x00000003, 0x00000023, 0x0000000c,
0x00050048, 0x00000011, 0x00000004, 0x00000023,
0x00000010, 0x00050048, 0x00000011, 0x00000005,
0x00000023, 0x00000014, 0x00050048, 0x00000011,
0x00000006, 0x00000023, 0x00000018, 0x00050048,
0x00000011, 0x00000007, 0x00000023, 0x0000001c,
0x00030047, 0x00000011, 0x00000003, 0x00040047,
0x00000013, 0x00000022, 0x00000000, 0x00040047,
0x00000013, 0x00000021, 0x00000001, 0x00040047,
0x0000001d, 0x00000006, 0x00000004, 0x00050048,
0x0000001e, 0x00000000, 0x00000023, 0x00000000,
0x00050048, 0x0000001e, 0x00000001, 0x00000023,
0x00000038, 0x00050048, 0x0000001e, 0x00000002,
0x00000023, 0x0000003c, 0x00040047, 0x0000001f,
0x00000006, 0x00000040, 0x00050048, 0x00000020,
0x00000000, 0x00000023, 0x00000000, 0x00030047,
0x00000020, 0x00000003, 0x00040047, 0x00000022,
0x00000022, 0x00000000, 0x00040047, 0x00000022,
0x00000021, 0x00000000, 0x00040047, 0x0000006e,
0x0000000b, 0x00000019, 0x00020013, 0x00000002,
0x00030021, 0x00000003, 0x00000002, 0x00040015,
0x00000006, 0x00000020, 0x00000000, 0x00040020,
0x00000007, 0x00000007, 0x00000006, 0x0004002b,
0x00000006, 0x00000009, 0x00000000, 0x0003001d,
0x00000010, 0x00000006, 0x000a001e, 0x00000011,
0x00000006, 0x00000006, 0x00000006, 0x00000006,
0x00000006, 0x00000006, 0x00000006, 0x00000010,
0x00040020, 0x00000012, 0x00000002, 0x00000011,
0x0004003b, 0x00000012, 0x00000013, 0x00000002,
0x00040015, 0x00000014, 0x00000020, 0x00000001,
0x0004002b, 0x00000014, 0x00000015, 0x00000000,
0x00040020, 0x00000016, 0x00000002, 0x00000006,
0x00020014, 0x00000019, 0x0004002b, 0x00000006,
0x0000001c, 0x0000000e, 0x0004001c, 0x0000001d,
0x00000006, 0x0000001c, 0x0005001e, 0x0000001e,
0x0000001d, 0x00000006, 0x00000006, 0x0003001d,
0x0000001f, 0x0000001e, 0x0003001e, 0x00000020,
0x0000001f, 0x00040020, 0x00000021, 0x00000002,
0x00000020, 0x0004003b, 0x00000021, 0x00000022,
0x00000002, 0x0004002b, 0x00000014, 0x00000024,
0x00000001, 0x0004002b, 0x00000014, 0x00000029,
0x00000002, 0x00040020, 0x0000002c, 0x00000007,
0x00000019, 0x0003002a, 0x00000019, 0x0000002e,
0x0004002b, 0x00000014, 0x00000036, 0x00000006,
0x0004002b, 0x00000014, 0x0000003b, 0x00000007,
0x0004002b, 0x00000006, 0x0000003c, 0x00000002,
0x0004002b, 0x00000006, 0x00000048, 0x00000001,
0x00030029, 0x00000019, 0x00000050, 0x0004002b,
0x00000014, 0x00000058, 0x00000003, 0x0004002b,
0x00000014, 0x0000005d, 0x00000004, 0x0004002b,
0x00000014, 0x00000060, 0x00000005, 0x00040017,
0x0000006d, 0x00000006, 0x00000003, 0x0006002c,
0x0000006d, 0x0000006e, 0x00000048, 0x00000048,
0x00000048, 0x00050036, 0x00000002, 0x00000004,
0x00000000, 0x00000003, 0x000200f8, 0x00000005,
0x0004003b, 0x00000007, 0x00000008, 0x00000007,
0x0004003b, 0x00000007, 0x0000001b, 0x00000007,
0x0004003b, 0x00000007, 0x00000027, 0x00000007,
0x0004003b, 0x0000002c, 0x0000002d, 0x00000007,
0x0004003b, 0x00000007, 0x0000002f, 0x00000007,
0x0003003e, 0x00000008, 0x00000009, 0x000200f9,
0x0000000a, 0x000200f8, 0x0000000a, 0x000400f6,
0x0000000c, 0x0000000d, 0x00000000, 0x000200f9,
0x0000000e, 0x000200f8, 0x0000000e, 0x0004003d,
0x00000006, 0x0000000f, 0x00000008, 0x00050041,
0x00000016, 0x00000017, 0x00000013, 0x00000015,
0x0004003d, 0x00000006, 0x00000018, 0x00000017,
0x000500b0, 0x00000019, 0x0000001a, 0x0000000f,
0x00000018, 0x000400fa, 0x0000001a, 0x0000000b,
0x0000000c, 0x000200f8, 0x0000000b, 0x0004003d,
0x00000006, 0x00000023, 0x00000008, 0x00070041,
0x00000016, 0x00000025, 0x00000022, 0x00000015,
0x00000023, 0x00000024, 0x0004003d, 0x00000006,
0x00000026, 0x00000025, 0x0003003e, 0x0000001b,
0x00000026, 0x0004003d, 0x00000006, 0x00000028,
0x00000008, 0x00070041, 0x00000016, 0x0000002a,
0x00000022, 0x00000015, 0x00000028, 0x00000029,
0x0004003d, 0x00000006, 0x0000002b, 0x0000002a,
0x0003003e, 0x00000027, 0x0000002b, 0x0003003e,
0x0000002d, 0x0000002e, 0x0003003e, 0x0000002f,
0x00000009, 0x000200f9, 0x00000030, 0x000200f8,
0x00000030, 0x000400f6, 0x00000032, 0x00000033,
0x00000000, 0x000200f9, 0x00000034, 0x000200f8,
0x00000034, 0x0004003d, 0x00000006, 0x00000035,
0x0000002f, 0x00050041, 0x00000016, 0x00000037,
0x00000013, 0x00000036, 0x0004003d, 0x00000006,
0x00000038, 0x00000037, 0x000500b0, 0x00000019,
0x00000039, 0x00000035, 0x00000038, 0x000400fa,
0x00000039, 0x00000031, 0x00000032, 0x000200f8,
0x00000031, 0x0004003d, 0x00000006, 0x0000003a,
0x0000001b, 0x0004003d, 0x00000006, 0x0000003d,
0x0000002f, 0x00050084, 0x00000006, 0x0000003e,
0x0000003c, 0x0000003d, 0x00050080, 0x00000006,
0x0000003f, 0x0000003e, 0x00000009, 0x00060041,
0x00000016, 0x00000040, 0x00000013, 0x0000003b,
0x0000003f, 0x0004003d, 0x00000006, 0x00000041,
0x00000040, 0x000500aa, 0x00000019, 0x00000042,
0x0000003a, 0x00000041, 0x000300f7, 0x00000044,
0x00000000, 0x000400fa, 0x00000042, 0x00000043,
0x00000044, 0x000200f8, 0x00000043, 0x0004003d,
0x00000006, 0x00000045, 0x00000027, 0x0004003d,
0x00000006, 0x00000046, 0x0000002f, 0x00050084,
0x00000006, 0x00000047, 0x0000003c, 0x00000046,
0x00050080, 0x00000006, 0x00000049, 0x00000047,
0x00000048, 0x00060041, 0x00000016, 0x0000004a,
0x00000013, 0x0000003b, 0x00000049, 0x0004003d,
0x00000006, 0x0000004b, 0x0000004a, 0x000500aa,
0x00000019, 0x0000004c, 0x00000045, 0x0000004b,
0x000200f9, 0x00000044, 0x000200f8, 0x00000044,
0x000700f5, 0x00000019, 0x0000004d, 0x00000042,
0x00000031, 0x0000004c, 0x00000043, 0x000300f7,
0x0000004f, 0x00000000, 0x000400fa, 0x0000004d,
0x0000004e, 0x0000004f, 0x000200f8, 0x0000004e,
0x0003003e, 0x0000002d, 0x00000050, 0x000200f9,
0x00000032, 0x000200f8, 0x0000004f, 0x000200f9,
0x00000033, 0x000200f8, 0x00000033, 0x0004003d,
0x00000006, 0x00000052, 0x0000002f, 0x00050080,
0x00000006, 0x00000053, 0x00000052, 0x00000024,
0x0003003e, 0x0000002f, 0x00000053, 0x000200f9,
0x00000030, 0x000200f8, 0x00000032, 0x0004003d,
0x00000019, 0x00000054, 0x0000002d, 0x000400a8,
0x00000019, 0x00000055, 0x00000054, 0x000300f7,
0x00000057, 0x00000000, 0x000400fa, 0x00000055,
0x00000056, 0x00000057, 0x000200f8, 0x00000056,
0x00050041, 0x00000016, 0x00000059, 0x00000013,
0x00000058, 0x0004003d, 0x00000006, 0x0000005a,
0x00000059, 0x00050080, 0x00000006, 0x0000005b,
0x0000005a, 0x00000048, 0x00050041, 0x00000016,
0x0000005c, 0x00000013, 0x00000058, 0x0003003e,
0x0000005c, 0x0000005b, 0x0004003d, 0x00000006,
0x0000005e, 0x0000001b, 0x00050041, 0x00000016,
0x0000005f, 0x00000013, 0x0000005d, 0x0003003e,
0x0000005f, 0x0000005e, 0x0004003d, 0x00000006,
0x00000061, 0x00000027, 0x00050041, 0x00000016,
0x00000062, 0x00000013, 0x00000060, 0x0003003e,
0x00000062, 0x00000061, 0x0004003d, 0x00000006,
0x00000063, 0x00000008, 0x00050041, 0x00000016,
0x00000064, 0x00000013, 0x00000024, 0x0004003d,
0x00000006, 0x00000065, 0x00000064, 0x00070041,
0x00000016, 0x00000066, 0x00000022, 0x00000015,
0x00000063, 0x00000024, 0x0003003e, 0x00000066,
0x00000065, 0x0004003d, 0x00000006, 0x00000067,
0x00000008, 0x00050041, 0x00000016, 0x00000068,
0x00000013, 0x00000029, 0x0004003d, 0x00000006,
0x00000069, 0x00000068, 0x00070041, 0x00000016,
0x0000006a, 0x00000022, 0x00000015, 0x00000067,
0x00000029, 0x0003003e, 0x0000006a, 0x00000069,
0x000200f9, 0x00000057, 0x000200f8, 0x00000057,
0x000200f9, 0x0000000d, 0x000200f8, 0x0000000d,
0x0004003d, 0x00000006, 0x0000006b, 0x00000008,
0x00050080, 0x00000006, 0x0000006c, 0x0000006b,
0x00000024, 0x0003003e, 0x00000008, 0x0000006c,
0x000200f9, 0x0000000a, 0x000200f8, 0x0000000c,
0x000100fd, 0x00010038,
};