-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcrash_diagnostic_layer.json.in
356 lines (356 loc) · 8.95 KB
/
crash_diagnostic_layer.json.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
{
"file_format_version": "1.2.0",
"layer": {
"name": "VK_LAYER_LUNARG_crash_diagnostic",
"type": "GLOBAL",
"status": "BETA",
"library_path": "@JSON_LIBRARY_PATH@",
"api_version": "@JSON_VERSION@",
"implementation_version": "1",
"description": "Crash Diagnostic Layer is a crash/hang debugging tool that helps determines GPU progress in a Vulkan application.",
"platforms": [ "WINDOWS", "LINUX" , "ANDROID" ],
"url": "https://vulkan.lunarg.com/doc/sdk/latest/windows/crash_diagnostic_layer.html",
"enable_environment": {
"VK_CRASH_DIAGNOSTIC_ENABLE": "1"
},
"disable_environment": {
"VK_CRASH_DIAGNOSTIC_DISABLE": "1"
},
"instance_extensions": [
{
"name": "VK_EXT_debug_report",
"spec_version": "10"
},
{
"name": "VK_EXT_debug_utils",
"spec_version": "1"
},
{
"name": "VK_EXT_layer_settings",
"spec_version": "2"
}
],
"device_extensions": [
{
"name": "VK_EXT_debug_report",
"spec_version": "10",
"entrypoints": [
"vkCreateDebugReportCallbackEXT",
"vkDebugReportMessageEXT",
"vkDestroyDebugReportCallbackEXT"
]
},
{
"name": "VK_EXT_tooling_info",
"spec_version": "1",
"entrypoints": [
"vkGetPhysicalDeviceToolPropertiesEXT"
]
}
],
"features": {
"settings": [
{
"key": "watchdog_timeout_ms",
"env": "CDL_WATCHDOG_TIMEOUT_MS",
"label": "Watchdog timeout (ms)",
"description": "If set to a non-zero number, a watchdog thread will be created. This will trigger if the application fails to submit new commands within a set time (in milliseconds) and a log will be created as if the a lost device error was encountered.",
"type": "INT",
"default": 30000,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "dump",
"label": "Dump files",
"description": "Control of dump files.",
"type": "GROUP",
"expanded": true,
"settings": [
{
"key": "output_path",
"env": "CDL_OUTPUT_PATH",
"label": "Output Path",
"description": "The directory where dump files and shader binaries are written.",
"type": "STRING",
"default": "",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "dump_queue_submits",
"env": "CDL_DUMP_QUEUE_SUBMITS",
"label": "Dump queue submissions",
"description": "Control which queue submissions are included in the dump.",
"type": "ENUM",
"default": "running",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
],
"flags": [
{
"key": "running",
"label": "Running",
"description": "Submissions that were executing at the time of the dump."
},
{
"key": "pending",
"label": "Pending",
"description": "Submissions executing or pending at the time of the dump."
}
]
},
{
"key": "dump_command_buffers",
"env": "CDL_DUMP_COMMAND_BUFFERS",
"label": "Dump command buffers",
"description": "Control which command buffers are included in the dump.",
"type": "ENUM",
"default": "running",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
],
"flags": [
{
"key": "running",
"label": "Running",
"description": "Command Buffers that were executing at the time of the dump."
},
{
"key": "pending",
"label": "Pending",
"description": "Command Buffers executing or pending at the time of the dump."
},
{
"key": "all",
"label": "All",
"description": "All known Command Buffers."
}
]
},
{
"key": "dump_commands",
"env": "CDL_DUMP_COMMANDS",
"label": "Dump commands",
"description": "Control which commands are included in the dump.",
"type": "ENUM",
"default": "running",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
],
"flags": [
{
"key": "running",
"label": "Running",
"description": "Command Buffers that were executing at the time of the dump."
},
{
"key": "pending",
"label": "Pending",
"description": "Commands executing or pending at the time of the dump."
},
{
"key": "all",
"label": "All",
"description": "All known Commands."
}
]
},
{
"key": "dump_shaders",
"env": "CDL_DUMP_SHADERS",
"label": "Dump shaders",
"description": "Control of shader dumping.",
"type": "ENUM",
"default": "off",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
],
"flags": [
{
"key": "off",
"label": "Off",
"description": "Never dump shaders."
},
{
"key": "on_crash",
"label": "On Crash",
"description": "Dump currently bound shaders after a crash is detected."
},
{
"key": "on_bind",
"label": "On Bind",
"description": "Dump only bound shaders."
},
{
"key": "all",
"label": "All",
"description": "Dump all shaders."
}
]
}
]
},
{
"key": "logging",
"label": "Logging",
"description": "Control of logging.",
"type": "GROUP",
"expanded": true,
"settings": [
{
"key": "message_severity",
"label": "Message Severity",
"description": "Comma-delineated list of options specifying the types of log messages to be reported",
"type": "FLAGS",
"flags": [
{
"key": "error",
"label": "Error",
"description": "Report errors such as device lost or setup problems in the layer."
},
{
"key": "warn",
"label": "Warning",
"description": "Report non-fatal problems that may interfere with operation of the layer"
},
{
"key": "info",
"label": "Info",
"description": "Report informational messages."
},
{
"key": "verbose",
"label": "Verbose",
"description": "For layer development. Report messages for debugging layer behavior.",
"view": "ADVANCED"
}
],
"default": [
"error"
],
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "log_file",
"env": "CDL_LOG_FILE",
"label": "Log file name",
"description": "none = no logging, stderr or stdout = to the console, otherwise an absolute or relative path",
"type": "STRING",
"default": "stderr",
"platforms": [
"WINDOWS",
"LINUX",
"MACOS"
]
},
{
"key": "trace_on",
"env": "CDL_TRACE_ON",
"label": "Enable Tracing",
"description": "All Vulkan API calls intercepted by the layer will be logged to the console.",
"type": "BOOL",
"default": false,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "trace_all_semaphores",
"env": "CDL_TRACE_ALL_SEMAPHORES",
"label": "Enable semaphore log tracing.",
"description": "Semaphore events will be logged to console.",
"type": "BOOL",
"default": false,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
}
]
},
{
"key": "state",
"label": "State Tracking",
"description": "Control of state tracking.",
"type": "GROUP",
"expanded": false,
"settings": [
{
"key": "sync_after_commands",
"env": "CDL_SYNC_AFTER_COMMANDS",
"label": "Synchronize commands",
"description": "Add pipeline barriers after instrumented commands.",
"type": "BOOL",
"default": false,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "instrument_all_commands",
"env": "CDL_INSTRUMENT_ALL_COMMANDS",
"label": "Instrument all commands",
"description": "All commands will be instrumented.",
"type": "BOOL",
"default": false,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
},
{
"key": "track_semaphores",
"env": "CDL_TRACK_SEMAPHORES",
"label": "Track semaphores",
"description": "Enable semaphore tracking.",
"type": "BOOL",
"default": true,
"platforms": [
"WINDOWS",
"LINUX",
"MACOS",
"ANDROID"
]
}
]
}
]
}
}
}