Skip to content

Commit 521de8e

Browse files
committed
More preconfigured vvl options
1 parent fdb5bbf commit 521de8e

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

src/vulkan/wrapper/wrapper_instance.c

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ WRAPPER_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
304304
char path[256];
305305
const char* log_filename[] = { path };
306306
const char* report_flags[] = { "error", "info", "warn" };
307+
VkBool32 validate_sync[] = { VK_TRUE };
308+
VkBool32 printf_enable[] = { VK_TRUE };
309+
VkBool32 printf_verbose[] = { VK_TRUE };
310+
VkBool32 validate_best_practices[] = { VK_TRUE };
311+
VkBool32 validate_best_practices_arm[] = { VK_TRUE };
307312

308313
const VkLayerSettingEXT layer_setting[] = {
309314
{
@@ -320,12 +325,47 @@ WRAPPER_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
320325
3,
321326
report_flags,
322327
},
328+
{
329+
"VK_LAYER_KHRONOS_validation",
330+
"validate_sync",
331+
VK_LAYER_SETTING_TYPE_BOOL32_EXT,
332+
1,
333+
validate_sync,
334+
},
335+
{
336+
"VK_LAYER_KHRONOS_validation",
337+
"printf_enable",
338+
VK_LAYER_SETTING_TYPE_BOOL32_EXT,
339+
1,
340+
printf_enable,
341+
},
342+
{
343+
"VK_LAYER_KHRONOS_validation",
344+
"printf_verbose",
345+
VK_LAYER_SETTING_TYPE_BOOL32_EXT,
346+
1,
347+
printf_verbose,
348+
},
349+
{
350+
"VK_LAYER_KHRONOS_validation",
351+
"validate_best_practices",
352+
VK_LAYER_SETTING_TYPE_BOOL32_EXT,
353+
1,
354+
validate_best_practices,
355+
},
356+
{
357+
"VK_LAYER_KHRONOS_validation",
358+
"validate_best_practices_arm",
359+
VK_LAYER_SETTING_TYPE_BOOL32_EXT,
360+
1,
361+
validate_best_practices_arm,
362+
},
323363
};
324364

325365
VkLayerSettingsCreateInfoEXT layer_settings_create_info = {
326366
VK_STRUCTURE_TYPE_LAYER_SETTINGS_CREATE_INFO_EXT,
327367
NULL,
328-
2,
368+
3,
329369
layer_setting,
330370
};
331371

0 commit comments

Comments
 (0)