Lines Matching full:env
30 void CheckLogForLayerString(FrameworkEnvironment& env, const char* implicit_layer_name, bool check_… in CheckLogForLayerString() argument
32 InstWrapper inst{env.vulkan_functions}; in CheckLogForLayerString()
33 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in CheckLogForLayerString()
36 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in CheckLogForLayerString()
38 … ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in CheckLogForLayerString()
41 env.debug_log.clear(); in CheckLogForLayerString()
47 FrameworkEnvironment env; in TEST() local
48 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
54 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
61 auto layers = env.GetLayerProperties(1); in TEST()
64 // didn't set enable env-var, layer should not load in TEST()
65 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
67 // set enable env-var to 0, no layer should be found in TEST()
69 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
71 // set enable env-var, layer should load in TEST()
73 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
75 // remove enable env var, so we can check what happens when only disable is present in TEST()
78 // set disable env-var to 0, layer should not load in TEST()
80 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
82 // set disable env-var to 1, layer should not load in TEST()
84 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
86 // set both enable and disable env-var, layer should not load in TEST()
89 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
93 FrameworkEnvironment env; in TEST() local
94 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
98 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
104 auto layers = env.GetLayerProperties(1); in TEST()
107 // don't set disable env-var, layer should load in TEST()
108 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
110 // set disable env-var to 0, layer should load in TEST()
112 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
114 // set disable env-var to 1, layer should not load in TEST()
116 CheckLogForLayerString(env, implicit_layer_name, false); in TEST()
119 InstWrapper inst{env.vulkan_functions}; in TEST()
120 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
123 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in TEST()
128 FrameworkEnvironment env; in TEST() local
129 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
133 env.add_implicit_layer( in TEST()
145 auto& layer = env.get_test_layer(0); in TEST()
149 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceLayerProperties(&count, nullptr)); in TEST()
152 // set disable env-var to 1, layer should not load in TEST()
156 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceLayerProperties(&count, nullptr)); in TEST()
162 FrameworkEnvironment env; in TEST() local
163 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
167 env.add_implicit_layer( in TEST()
179 auto& layer = env.get_test_layer(0); in TEST()
183 …ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceExtensionProperties(nullptr, &count,… in TEST()
186 // set disable env-var to 1, layer should not load in TEST()
190 …ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceExtensionProperties(nullptr, &count,… in TEST()
196 FrameworkEnvironment env; in TEST() local
197 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)) in TEST()
204 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 1, 2}).add_layer( in TEST()
216 auto& layer = env.get_test_layer(0); in TEST()
220 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceVersion(&version)); in TEST()
223 // set disable env-var to 1, layer should not load in TEST()
227 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceVersion(&version)); in TEST()
237 FrameworkEnvironment env; in TEST() local
238 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
243 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 0, 0}).add_layer( in TEST()
254 InstWrapper inst1{env.vulkan_functions}; in TEST()
259 // set disable env-var to 1, layer should not load in TEST()
261 InstWrapper inst2{env.vulkan_functions}; in TEST()
266 // Force enable with filter env var
268 FrameworkEnvironment env; in TEST() local
270 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)) in TEST()
278 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
290 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
302 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
314 InstWrapper inst1{env.vulkan_functions}; in TEST()
315 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
318 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
319 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
320 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
321 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
322 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
323 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
324 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
325 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
326 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
327 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
328 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
329 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
333 env.debug_log.clear(); in TEST()
336 InstWrapper inst2{env.vulkan_functions}; in TEST()
337 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
340 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
341 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
342 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to e… in TEST()
343 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
344 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
345 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
346 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
347 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
348 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
349 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
350 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
351 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
355 env.debug_log.clear(); in TEST()
358 InstWrapper inst3{env.vulkan_functions}; in TEST()
359 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
362 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
363 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
364 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to e… in TEST()
365 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
366 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
367 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
368 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
369 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
370 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
371 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
372 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to e… in TEST()
373 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
377 env.debug_log.clear(); in TEST()
380 InstWrapper inst4{env.vulkan_functions}; in TEST()
381 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
384 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
385 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
386 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
387 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
388 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
389 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
390 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
391 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
392 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
393 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
394 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
395 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
399 env.debug_log.clear(); in TEST()
402 InstWrapper inst5{env.vulkan_functions}; in TEST()
403 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
406 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
407 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
408 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
409 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
410 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
411 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
412 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
413 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
414 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
415 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
416 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to e… in TEST()
417 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
421 env.debug_log.clear(); in TEST()
424 InstWrapper inst6{env.vulkan_functions}; in TEST()
425 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
428 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
429 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
430 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to e… in TEST()
431 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
432 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
433 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
434 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
435 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
436 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
437 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
438 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to e… in TEST()
439 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
443 env.debug_log.clear(); in TEST()
446 InstWrapper inst7{env.vulkan_functions}; in TEST()
447 FillDebugUtilsCreateDetails(inst7.create_info, env.debug_log); in TEST()
450 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
451 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
452 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to e… in TEST()
453 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
454 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
455 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
456 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
457 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
458 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
459 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
460 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to e… in TEST()
461 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
465 env.debug_log.clear(); in TEST()
469 InstWrapper inst8{env.vulkan_functions}; in TEST()
470 FillDebugUtilsCreateDetails(inst8.create_info, env.debug_log); in TEST()
473 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
474 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
475 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
476 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
477 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
478 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
479 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to e… in TEST()
480 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
481 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
482 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
483 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to e… in TEST()
484 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
487 // Force disabled with new filter env var
489 FrameworkEnvironment env; in TEST() local
490 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
496 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
506 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
516 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
526 InstWrapper inst1{env.vulkan_functions}; in TEST()
527 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
530 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
531 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
532 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
533 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
534 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
535 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
536 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
537 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
538 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
539 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
540 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
541 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
545 env.debug_log.clear(); in TEST()
548 InstWrapper inst2{env.vulkan_functions}; in TEST()
549 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
552 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
553 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
554 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
555 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
556 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
557 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
558 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
559 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
560 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
561 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
562 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
563 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
567 env.debug_log.clear(); in TEST()
570 InstWrapper inst3{env.vulkan_functions}; in TEST()
571 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
574 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
575 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
576 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
577 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
578 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
579 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
580 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
581 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
582 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
583 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
584 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
585 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name m… in TEST()
589 env.debug_log.clear(); in TEST()
592 InstWrapper inst4{env.vulkan_functions}; in TEST()
593 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
596 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
597 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
598 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
599 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
600 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
601 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
602 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
603 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
604 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
605 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
606 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
607 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
611 env.debug_log.clear(); in TEST()
614 InstWrapper inst5{env.vulkan_functions}; in TEST()
615 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
618 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
619 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
620 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
621 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
622 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
623 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
624 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
625 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
626 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
627 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
628 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
629 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name m… in TEST()
633 env.debug_log.clear(); in TEST()
636 InstWrapper inst6{env.vulkan_functions}; in TEST()
637 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
640 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
641 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
642 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
643 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
644 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
645 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
646 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
647 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
648 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
649 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
650 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
651 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name m… in TEST()
655 env.debug_log.clear(); in TEST()
658 InstWrapper inst7{env.vulkan_functions}; in TEST()
659 FillDebugUtilsCreateDetails(inst7.create_info, env.debug_log); in TEST()
662 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
663 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
664 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
665 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
666 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
667 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
668 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
669 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
670 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
671 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3… in TEST()
672 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
673 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name m… in TEST()
676 // Force disabled with new filter env var
678 FrameworkEnvironment env; in TEST() local
679 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
686 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
698 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
711 InstWrapper inst1{env.vulkan_functions}; in TEST()
712 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
715 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
716 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
717 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
718 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
719 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
720 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
721 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
722 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
724 // Set the layers enable env-var in TEST()
726 env.debug_log.clear(); in TEST()
730 InstWrapper inst2{env.vulkan_functions}; in TEST()
731 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
734 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
735 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
736 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
737 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
738 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
739 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
740 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
741 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
745 env.debug_log.clear(); in TEST()
748 InstWrapper inst3{env.vulkan_functions}; in TEST()
749 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
752 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
753 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
754 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
755 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
756 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
757 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
758 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
759 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
763 env.debug_log.clear(); in TEST()
766 InstWrapper inst4{env.vulkan_functions}; in TEST()
767 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
770 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
771 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
772 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
773 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
774 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
775 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
776 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
777 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
783 FrameworkEnvironment env; in TEST() local
784 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
790 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
800 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
810 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
822 env.debug_log.clear(); in TEST()
826 InstWrapper inst1{env.vulkan_functions}; in TEST()
827 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
830 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
831 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
832 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
833 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
834 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
835 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2… in TEST()
836 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
837 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name m… in TEST()
838 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
839 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
840 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
841 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
845 env.debug_log.clear(); in TEST()
849 InstWrapper inst2{env.vulkan_functions}; in TEST()
850 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
853 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
854 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
855 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
856 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
857 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
858 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
859 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
860 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
861 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
862 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
863 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
864 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
868 env.debug_log.clear(); in TEST()
872 InstWrapper inst3{env.vulkan_functions}; in TEST()
873 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
876 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
877 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
878 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
879 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
880 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
881 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
882 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
883 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
884 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
885 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
886 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
887 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
891 env.debug_log.clear(); in TEST()
895 InstWrapper inst4{env.vulkan_functions}; in TEST()
896 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
899 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
900 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1… in TEST()
901 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
902 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name m… in TEST()
903 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
904 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
905 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
906 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
907 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
908 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
909 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
910 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
914 env.debug_log.clear(); in TEST()
918 InstWrapper inst5{env.vulkan_functions}; in TEST()
919 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
922 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
923 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
924 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
925 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
926 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
927 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
928 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
929 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
930 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
931 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
932 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
933 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
937 env.debug_log.clear(); in TEST()
941 InstWrapper inst6{env.vulkan_functions}; in TEST()
942 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
945 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_1)); in TEST()
946 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_1)… in TEST()
947 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "forced enabled due to … in TEST()
948 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_1, "disabled because name … in TEST()
949 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_2)); in TEST()
950 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_2)… in TEST()
951 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "forced enabled due to … in TEST()
952 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_2, "disabled because name … in TEST()
953 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", implicit_json_name_3)); in TEST()
954 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", implicit_layer_name_3)… in TEST()
955 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "forced enabled due to … in TEST()
956 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(implicit_layer_name_3, "disabled because name … in TEST()
962 FrameworkEnvironment env; in TEST() local
963 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
966 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
972 auto& layer1 = env.get_test_layer(0); in TEST()
976 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
984 auto& layer2 = env.get_test_layer(1); in TEST()
988 …env.platform_shim->add_manifest(ManifestCategory::implicit_layer, env.get_folder(ManifestLocation:… in TEST()
990 …env.platform_shim->redirect_path(std::filesystem::path(USER_LOCAL_SHARE_DIR "/vulkan/implicit_laye… in TEST()
991 env.get_folder(ManifestLocation::override_layer).location()); in TEST()
994 auto layer_props = env.GetLayerProperties(2); in TEST()
1000 InstWrapper inst{env.vulkan_functions}; in TEST()
1001 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1007 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
1008 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
1012 FrameworkEnvironment env; in TEST() local
1013 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1017 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1025 InstWrapper inst(env.vulkan_functions); in TEST()
1032 FrameworkEnvironment env; in TEST() local
1033 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1037 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1046 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1054 InstWrapper inst(env.vulkan_functions); in TEST()
1061 FrameworkEnvironment env; in TEST() local
1062 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1066 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1074 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1081 InstWrapper inst(env.vulkan_functions); in TEST()
1089 FrameworkEnvironment env; in TEST() local
1090 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1093 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1101 auto& layer1 = env.get_test_layer(0); in TEST()
1104 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1113 auto& layer2 = env.get_test_layer(1); in TEST()
1115 …env.env_var_vk_implicit_layer_paths.add_to_list(env.get_folder(ManifestLocation::override_layer).l… in TEST()
1117 auto layer_props = env.GetLayerProperties(2); in TEST()
1126 InstWrapper inst{env.vulkan_functions}; in TEST()
1136 FrameworkEnvironment env; in TEST() local
1137 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1140 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1146 … use override folder as just a folder and manually set the VK_ADD_IMPLICIT_LAYER_PATH env-var to it in TEST()
1149 auto& layer1 = env.get_test_layer(0); in TEST()
1152 …env.add_env_var_vk_implicit_layer_paths.add_to_list(env.get_folder(ManifestLocation::override_laye… in TEST()
1154 …env.add_implicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1162 auto& layer2 = env.get_test_layer(1); in TEST()
1166 auto layer_props = env.GetLayerProperties(2); in TEST()
1172 InstWrapper inst{env.vulkan_functions}; in TEST()
1173 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1178 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
1179 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
1184 FrameworkEnvironment env; in TEST() local
1185 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
1189 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 1, 2}).add_layer( in TEST()
1199 env.add_explicit_layer( in TEST()
1205 auto layer_props = env.GetLayerProperties(1); in TEST()
1208 auto extensions = env.GetInstanceExtensions(4); in TEST()
1214 InstWrapper inst{env.vulkan_functions}; in TEST()
1216 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1218 …ASSERT_TRUE(env.debug_log.find(std::string("verify_meta_layer_component_layers: Meta-layer ") + me… in TEST()
1224 FrameworkEnvironment env; in TEST() local
1225 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1228 env.add_explicit_layer( in TEST()
1233 env.add_explicit_layer( in TEST()
1240 auto layer_props = env.GetLayerProperties(2); in TEST()
1243 auto extensions = env.GetInstanceExtensions(4); in TEST()
1250 InstWrapper inst{env.vulkan_functions}; in TEST()
1255 InstWrapper inst{env.vulkan_functions}; in TEST()
1265 FrameworkEnvironment env; in TEST() local
1266 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
1269 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 1, 2}).add_layer( in TEST()
1278 env.add_explicit_layer( in TEST()
1284 auto layer_props = env.GetLayerProperties(1); in TEST()
1287 auto extensions = env.GetInstanceExtensions(4); in TEST()
1293 InstWrapper inst{env.vulkan_functions}; in TEST()
1295 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1297 …ASSERT_TRUE(env.debug_log.find(std::string("verify_meta_layer_component_layers: Meta-layer ") + me… in TEST()
1303 FrameworkEnvironment env; in TEST() local
1304 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)); in TEST()
1308 env.add_explicit_layer( in TEST()
1312 env.add_explicit_layer( in TEST()
1316 env.add_explicit_layer(ManifestLayer{}.set_file_format_version({1, 1, 2}).add_layer( in TEST()
1322 auto layer_props = env.GetLayerProperties(3); in TEST()
1325 auto extensions = env.GetInstanceExtensions(4); in TEST()
1331 InstWrapper inst{env.vulkan_functions}; in TEST()
1333 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1335 …ASSERT_TRUE(env.debug_log.find(std::string("verify_meta_layer_component_layers: Adding meta-layer … in TEST()
1340 FrameworkEnvironment env; in TEST() local
1341 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1346 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1351 env.add_explicit_layer( in TEST()
1356 auto extensions = env.GetInstanceExtensions(1, meta_layer_name); in TEST()
1361 FrameworkEnvironment env; in TEST() local
1362 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1367 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1372 env.add_explicit_layer( in TEST()
1377 ASSERT_NO_FATAL_FAILURE(env.GetInstanceExtensions(0, meta_layer_name)); in TEST()
1380 InstWrapper inst{env.vulkan_functions}; in TEST()
1381 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1383 …ASSERT_TRUE(env.debug_log.find(std::string("Meta-layer ") + meta_layer_name + " component layer " … in TEST()
1390 InstWrapper inst{env.vulkan_functions}; in TEST()
1392 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1394 …ASSERT_TRUE(env.debug_log.find(std::string("Meta-layer ") + meta_layer_name + " component layer " … in TEST()
1404 FrameworkEnvironment env; in TEST() local
1405 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1408 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1415 env.add_implicit_layer( in TEST()
1422 auto layer_props = env.GetLayerProperties(1); in TEST()
1425 InstWrapper inst{env.vulkan_functions}; in TEST()
1431 FrameworkEnvironment env; in TEST() local
1432 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1435 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1442 env.add_implicit_layer( in TEST()
1450 auto layer_props = env.GetLayerProperties(2); in TEST()
1454 InstWrapper inst{env.vulkan_functions}; in TEST()
1463 InstWrapper inst{env.vulkan_functions}; in TEST()
1474 FrameworkEnvironment env; in TEST() local
1475 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1478 env.add_explicit_layer( in TEST()
1485 env.add_implicit_layer( in TEST()
1493 auto layer_props = env.GetLayerProperties(2); in TEST()
1498 InstWrapper inst{env.vulkan_functions}; in TEST()
1508 InstWrapper inst{env.vulkan_functions}; in TEST()
1518 FrameworkEnvironment env; in TEST() local
1519 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1522 env.add_explicit_layer( in TEST()
1529 env.add_implicit_layer( in TEST()
1538 auto layer_props = env.GetLayerProperties(2); in TEST()
1544 InstWrapper inst{env.vulkan_functions}; in TEST()
1545 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1549 … EXPECT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1553 env.debug_log.clear(); in TEST()
1557 InstWrapper inst{env.vulkan_functions}; in TEST()
1558 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1562 … EXPECT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1570 FrameworkEnvironment env; in TEST() local
1571 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1574 env.add_explicit_layer( in TEST()
1581 env.add_implicit_layer( in TEST()
1589 auto layer_props = env.GetLayerProperties(1); in TEST()
1594 InstWrapper inst{env.vulkan_functions}; in TEST()
1595 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1599 …env.debug_log.find("verify_meta_layer_component_layers: Meta-layer uses API version 1.1, but compo… in TEST()
1601 env.debug_log.clear(); in TEST()
1607 InstWrapper inst{env.vulkan_functions}; in TEST()
1608 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1612 …env.debug_log.find("verify_meta_layer_component_layers: Meta-layer uses API version 1.1, but compo… in TEST()
1614 env.debug_log.clear(); in TEST()
1620 FrameworkEnvironment env; in TEST() local
1621 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1625 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1630 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1635 env.add_implicit_layer( in TEST()
1644 auto layer_props = env.GetLayerProperties(2); in TEST()
1649 InstWrapper inst{env.vulkan_functions}; in TEST()
1650 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1653 …ASSERT_TRUE(env.debug_log.find(std::string("loader_remove_layers_in_blacklist: Override layer is a… in TEST()
1656 env.debug_log.clear(); in TEST()
1659 InstWrapper inst{env.vulkan_functions}; in TEST()
1660 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1662 …ASSERT_TRUE(env.debug_log.find(std::string("loader_remove_layers_in_blacklist: Override layer is a… in TEST()
1665 env.debug_log.clear(); in TEST()
1672 FrameworkEnvironment env; in TEST() local
1673 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1685 env.add_implicit_layer( in TEST()
1694 InstWrapper inst{env.vulkan_functions}; in TEST()
1696 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1698 ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1699 env.layers.clear(); in TEST()
1703 FrameworkEnvironment env; in TEST() local
1704 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1709 env.add_explicit_layer( in TEST()
1724 env.add_implicit_layer( in TEST()
1733 InstWrapper inst{env.vulkan_functions}; in TEST()
1736 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1738 ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1739 env.layers.clear(); in TEST()
1743 FrameworkEnvironment env; in TEST() local
1744 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1748 env.add_explicit_layer(TestLayerDetails{ in TEST()
1758 …env.add_explicit_layer(TestLayerDetails{ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
1765 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 2, 0}).add_layer( in TEST()
1771 … .add_override_path(env.get_folder(ManifestLocation::override_layer).location())), in TEST()
1774 auto meta_layer_path = env.get_folder(ManifestLocation::override_layer).location(); in TEST()
1776 InstWrapper inst{env.vulkan_functions}; in TEST()
1779 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1781 ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + env_var_layer_name)); in TEST()
1782 ASSERT_TRUE(env.debug_log.find( in TEST()
1785 env.env_var_vk_layer_paths.value())); in TEST()
1786 …ASSERT_TRUE(env.debug_log.find("Override layer has override paths set to " + meta_layer_path.strin… in TEST()
1788 env.layers.clear(); in TEST()
1793 FrameworkEnvironment env; in TEST() local
1794 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1798 env.add_implicit_layer( in TEST()
1813 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 2, 0}).add_layer( in TEST()
1822 InstWrapper inst{env.vulkan_functions}; in TEST()
1823 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1826 ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + implicit_layer_name)); in TEST()
1828 …env.debug_log.find("Removing meta-layer VK_LAYER_LUNARG_override from instance layer list since it… in TEST()
1829 env.layers.clear(); in TEST()
1833 FrameworkEnvironment env; in TEST() local
1834 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1845 env.add_implicit_layer( in TEST()
1854 InstWrapper inst{env.vulkan_functions}; in TEST()
1856 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1858 ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1859 ASSERT_TRUE(env.debug_log.find(std::string("Layer \"") + lunarg_meta_layer_name + in TEST()
1861 env.layers.clear(); in TEST()
1866 FrameworkEnvironment env; in TEST() local
1867 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1870 env.add_explicit_layer( in TEST()
1877 env.add_implicit_layer( in TEST()
1885 auto layer_props = env.GetLayerProperties(2); in TEST()
1890 InstWrapper inst{env.vulkan_functions}; in TEST()
1899 FrameworkEnvironment env; in TEST() local
1900 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1903 env.add_explicit_layer( in TEST()
1908 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 2, 0}).add_layer( in TEST()
1916 auto layer_props = env.GetLayerProperties(1); in TEST()
1921 InstWrapper inst{env.vulkan_functions}; in TEST()
1928 FrameworkEnvironment env; in TEST() local
1929 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1942 env.add_implicit_layer(TestLayerDetails{ in TEST()
1952 auto layer_props = env.GetLayerProperties(2); in TEST()
1955 InstWrapper inst{env.vulkan_functions}; in TEST()
1957 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1959 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1962 env.debug_log.clear(); in TEST()
1965 env.platform_shim->set_elevated_privilege(true); in TEST()
1968 auto layer_props = env.GetLayerProperties(2); in TEST()
1971 InstWrapper inst{env.vulkan_functions}; in TEST()
1973 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
1975 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
1983 FrameworkEnvironment env; in TEST() local
1984 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
1996 env.add_implicit_layer(TestLayerDetails{ in TEST()
2007 auto layer_props = env.GetLayerProperties(2); in TEST()
2010 InstWrapper inst{env.vulkan_functions}; in TEST()
2012 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2014 … ASSERT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
2015 env.debug_log.clear(); in TEST()
2020 env.platform_shim->set_elevated_privilege(true); in TEST()
2023 ASSERT_NO_FATAL_FAILURE(env.GetLayerProperties(0)); in TEST()
2025 InstWrapper inst{env.vulkan_functions}; in TEST()
2027 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2029 … ASSERT_FALSE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
2036 FrameworkEnvironment env; in TEST() local
2037 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2041 env.add_explicit_layer( in TEST()
2057 auto& layer = env.get_test_layer(0); in TEST()
2062 env.add_implicit_layer( in TEST()
2070 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceLayerProperties(&count, nullptr)); in TEST()
2073 …ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceExtensionProperties(nullptr, &count,… in TEST()
2077 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceVersion(&version)); in TEST()
2080 InstWrapper inst{env.vulkan_functions}; in TEST()
2089 FrameworkEnvironment env; in TEST() local
2090 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2093 env.add_explicit_layer( in TEST()
2109 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
2113 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
2115 env.update_loader_settings(env.loader_settings); in TEST()
2117 auto& layer = env.get_test_layer(0); in TEST()
2123 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceLayerProperties(&count, nullptr)); in TEST()
2126 …ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceExtensionProperties(nullptr, &count,… in TEST()
2130 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceVersion(&version)); in TEST()
2133 InstWrapper inst{env.vulkan_functions}; in TEST()
2141 FrameworkEnvironment env; in TEST() local
2142 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2145 env.add_explicit_layer( in TEST()
2161 auto& layer = env.get_test_layer(0); in TEST()
2167 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceLayerProperties(&count, nullptr)); in TEST()
2170 …ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceExtensionProperties(nullptr, &count,… in TEST()
2174 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkEnumerateInstanceVersion(&version)); in TEST()
2177 InstWrapper inst{env.vulkan_functions}; in TEST()
2186 FrameworkEnvironment env; in TEST() local
2187 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2190 env.add_explicit_layer( in TEST()
2195 auto& layer = env.get_test_layer(0); in TEST()
2200 InstWrapper inst{env.vulkan_functions}; in TEST()
2211 FrameworkEnvironment env; in TEST() local
2212 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)) in TEST()
2217 env.add_explicit_layer( in TEST()
2222 auto& layer_handle = env.get_test_layer(0); in TEST()
2244 InstWrapper inst{env.vulkan_functions}; in TEST()
2250 FrameworkEnvironment env; in TEST() local
2251 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)) in TEST()
2256 env.add_explicit_layer( in TEST()
2261 auto& layer_handle = env.get_test_layer(0); in TEST()
2277 InstWrapper inst{env.vulkan_functions}; in TEST()
2283 FrameworkEnvironment env; in TEST() local
2284 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2289 env.add_explicit_layer(TestLayerDetails( in TEST()
2300 auto layer_props = env.GetLayerProperties(3); in TEST()
2307 FrameworkEnvironment env; in TEST() local
2308 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device("physica… in TEST()
2311 env.add_explicit_layer(ManifestLayer{}.add_layer( in TEST()
2316 env.add_explicit_layer( in TEST()
2322 env.add_explicit_layer( in TEST()
2328 InstWrapper inst{env.vulkan_functions}; in TEST()
2337 InstWrapper inst{env.vulkan_functions}; in TEST()
2346 InstWrapper inst{env.vulkan_functions}; in TEST()
2355 InstWrapper inst{env.vulkan_functions}; in TEST()
2366 FrameworkEnvironment env; in TEST() local
2367 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2371 env.add_explicit_layer( in TEST()
2379 InstWrapper inst(env.vulkan_functions); in TEST()
2387 FrameworkEnvironment env; in TEST() local
2388 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2392 env.add_explicit_layer( in TEST()
2401 env.add_explicit_layer( in TEST()
2409 InstWrapper inst(env.vulkan_functions); in TEST()
2418 FrameworkEnvironment env; in TEST() local
2419 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2423 env.add_explicit_layer( in TEST()
2431 env.add_explicit_layer( in TEST()
2438 InstWrapper inst(env.vulkan_functions); in TEST()
2447 FrameworkEnvironment env; in TEST() local
2448 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2452 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2457 … // use override folder as just a folder and manually set the VK_LAYER_PATH env-var to it in TEST()
2460 auto& layer1 = env.get_test_layer(0); in TEST()
2463 …env.env_var_vk_layer_paths.add_to_list(env.get_folder(ManifestLocation::override_layer).location()… in TEST()
2465 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2472 auto& layer2 = env.get_test_layer(1); in TEST()
2476 auto layer_props = env.GetLayerProperties(2); in TEST()
2482 InstWrapper inst{env.vulkan_functions}; in TEST()
2484 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2489 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2490 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2492 env.debug_log.clear(); in TEST()
2496 InstWrapper inst{env.vulkan_functions}; in TEST()
2497 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2502 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2503 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2505 env.debug_log.clear(); in TEST()
2509 InstWrapper inst{env.vulkan_functions}; in TEST()
2510 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2515 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2516 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2518 env.debug_log.clear(); in TEST()
2522 FrameworkEnvironment env; in TEST() local
2523 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2526 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2531 … // use override folder as just a folder and manually set the VK_ADD_LAYER_PATH env-var to it in TEST()
2534 auto& layer1 = env.get_test_layer(0); in TEST()
2537 …env.add_env_var_vk_layer_paths.add_to_list(env.get_folder(ManifestLocation::override_layer).locati… in TEST()
2539 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2546 auto& layer2 = env.get_test_layer(1); in TEST()
2550 auto layer_props = env.GetLayerProperties(2); in TEST()
2556 InstWrapper inst{env.vulkan_functions}; in TEST()
2558 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2563 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2564 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2566 env.debug_log.clear(); in TEST()
2570 InstWrapper inst{env.vulkan_functions}; in TEST()
2571 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2576 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2577 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2579 env.debug_log.clear(); in TEST()
2583 InstWrapper inst{env.vulkan_functions}; in TEST()
2584 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2589 ASSERT_TRUE(env.debug_log.find("actually_layer_1")); in TEST()
2590 ASSERT_FALSE(env.debug_log.find("actually_layer_2")); in TEST()
2592 env.debug_log.clear(); in TEST()
2596 FrameworkEnvironment env; in TEST() local
2597 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2600 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2607 auto& layer1 = env.get_test_layer(0); in TEST()
2611 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2618 auto& layer2 = env.get_test_layer(1); in TEST()
2621 auto layer_props = env.GetLayerProperties(2); in TEST()
2632 InstWrapper inst{env.vulkan_functions}; in TEST()
2635 // Expect the env-var layer to be first in TEST()
2648 InstWrapper inst{env.vulkan_functions}; in TEST()
2651 // Expect the env-var layer to be first in TEST()
2661 FrameworkEnvironment env; in TEST() local
2662 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2665 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2672 auto& layer1 = env.get_test_layer(0); in TEST()
2675 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2683 auto& layer2 = env.get_test_layer(1); in TEST()
2685 …env.env_var_vk_layer_paths.add_to_list(env.get_folder(ManifestLocation::override_layer).location()… in TEST()
2687 auto layer_props = env.GetLayerProperties(2); in TEST()
2696 InstWrapper inst{env.vulkan_functions}; in TEST()
2706 FrameworkEnvironment env; in TEST() local
2707 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2710 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2715 auto& layer1 = env.get_test_layer(0); in TEST()
2719 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2724 auto& layer2 = env.get_test_layer(1); in TEST()
2727 auto layer_props = env.GetLayerProperties(2); in TEST()
2738 InstWrapper inst{env.vulkan_functions}; in TEST()
2752 InstWrapper inst{env.vulkan_functions}; in TEST()
2755 // Expect the env-var layer to be first in TEST()
2765 FrameworkEnvironment env; in TEST() local
2766 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2769 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2774 auto& layer1 = env.get_test_layer(0); in TEST()
2779 …env.add_explicit_layer(TestLayerDetails(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2784 auto& layer2 = env.get_test_layer(1); in TEST()
2788 auto layer_props = env.GetLayerProperties(2); in TEST()
2796 InstWrapper inst{env.vulkan_functions}; in TEST()
2799 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2802 // Expect the env-var layer to be first in TEST()
2811 InstWrapper inst{env.vulkan_functions}; in TEST()
2814 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
2817 // Expect the env-var layer to be first in TEST()
2827 FrameworkEnvironment env; in TEST() local
2828 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2834 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2841 auto layers = env.GetLayerProperties(1); in TEST()
2844 // set enable env-var, layer should load in TEST()
2846 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
2848 auto extensions = env.GetInstanceExtensions(4); in TEST()
2858 InstWrapper inst{env.vulkan_functions}; in TEST()
2862 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkReleaseDisplayEXT")); in TEST()
2863 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkGetPhysicalDeviceSurfa… in TEST()
2867 FrameworkEnvironment env; in TEST() local
2868 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2874 env.add_implicit_layer( in TEST()
2884 auto layers = env.GetLayerProperties(1); in TEST()
2887 // set enable env-var, layer should load in TEST()
2889 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
2891 auto extensions = env.GetInstanceExtensions(5); in TEST()
2901 InstWrapper inst{env.vulkan_functions}; in TEST()
2906 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkReleaseDisplayEXT… in TEST()
2907 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkGetPhysicalDeviceSurfa… in TEST()
2911 FrameworkEnvironment env; in TEST() local
2912 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2918 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
2928 auto layers = env.GetLayerProperties(1); in TEST()
2931 // set enable env-var, layer should load in TEST()
2933 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
2935 auto extensions = env.GetInstanceExtensions(5); in TEST()
2942 InstWrapper inst{env.vulkan_functions}; in TEST()
2947 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkReleaseDisplayEXT")); in TEST()
2948 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkGetPhysicalDevice… in TEST()
2952 FrameworkEnvironment env; in TEST() local
2953 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
2959 env.add_implicit_layer( in TEST()
2971 auto layers = env.GetLayerProperties(1); in TEST()
2974 // set enable env-var, layer should load in TEST()
2976 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
2978 auto extensions = env.GetInstanceExtensions(6); in TEST()
2986 InstWrapper inst{env.vulkan_functions}; in TEST()
2992 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkReleaseDisplayEXT… in TEST()
2993 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkGetPhysicalDevice… in TEST()
2997 FrameworkEnvironment env; in TEST() local
2998 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3001 env.add_explicit_layer( in TEST()
3006 auto layers = env.GetLayerProperties(1); in TEST()
3009 auto extensions = env.GetInstanceExtensions(4); in TEST()
3016 ASSERT_NO_FATAL_FAILURE(env.GetInstanceExtensions(0, explicit_layer_name)); in TEST()
3018 InstWrapper inst{env.vulkan_functions}; in TEST()
3022 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkReleaseDisplayEXT")); in TEST()
3023 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst.inst, "vkGetPhysicalDeviceSurfa… in TEST()
3027 FrameworkEnvironment env; in TEST() local
3028 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3031 env.add_explicit_layer( in TEST()
3039 auto layers = env.GetLayerProperties(1); in TEST()
3042 auto extensions = env.GetInstanceExtensions(4); in TEST()
3049 auto layer_extensions = env.GetInstanceExtensions(1, explicit_layer_name); in TEST()
3052 InstWrapper inst1{env.vulkan_functions}; in TEST()
3057 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkReleaseDisplayEXT")); in TEST()
3058 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkGetPhysicalDeviceSurf… in TEST()
3060 InstWrapper inst2{env.vulkan_functions}; in TEST()
3065 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkReleaseDisplayEX… in TEST()
3066 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkGetPhysicalDeviceSurf… in TEST()
3070 FrameworkEnvironment env; in TEST() local
3071 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3074 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3082 auto layers = env.GetLayerProperties(1); in TEST()
3085 auto extensions = env.GetInstanceExtensions(4); in TEST()
3092 auto layer_extensions = env.GetInstanceExtensions(1, explicit_layer_name); in TEST()
3095 InstWrapper inst1{env.vulkan_functions}; in TEST()
3100 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkReleaseDisplayEXT")); in TEST()
3101 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkGetPhysicalDeviceSurf… in TEST()
3103 InstWrapper inst2{env.vulkan_functions}; in TEST()
3108 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkReleaseDisplayEXT")); in TEST()
3109 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkGetPhysicalDevic… in TEST()
3113 FrameworkEnvironment env; in TEST() local
3114 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3117 env.add_explicit_layer( in TEST()
3127 auto layers = env.GetLayerProperties(1); in TEST()
3130 auto extensions = env.GetInstanceExtensions(4); in TEST()
3137 auto layer_extensions = env.GetInstanceExtensions(2, explicit_layer_name); in TEST()
3141 InstWrapper inst1{env.vulkan_functions}; in TEST()
3147 … handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkReleaseDisplayEXT")); in TEST()
3148 …handle_assert_null(env.vulkan_functions.vkGetInstanceProcAddr(inst1.inst, "vkGetPhysicalDeviceSurf… in TEST()
3150 InstWrapper inst2{env.vulkan_functions}; in TEST()
3158 …handle_assert_has_value(env.vulkan_functions.vkGetInstanceProcAddr(inst2.inst, "vkReleaseDisplayEX… in TEST()
3173 FrameworkEnvironment env; in TEST() local
3174 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3180 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3187 auto layers = env.GetLayerProperties(1); in TEST()
3190 // set enable env-var, layer should load in TEST()
3192 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
3194 InstWrapper inst{env.vulkan_functions}; in TEST()
3231 FrameworkEnvironment env; in TEST() local
3232 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3238 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3245 auto layers = env.GetLayerProperties(1); in TEST()
3248 // set enable env-var, layer should load in TEST()
3250 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
3252 InstWrapper inst{env.vulkan_functions}; in TEST()
3268 FrameworkEnvironment env; in TEST() local
3269 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3275 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3282 auto layers = env.GetLayerProperties(1); in TEST()
3285 // set enable env-var, layer should load in TEST()
3287 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
3289 InstWrapper inst{env.vulkan_functions}; in TEST()
3305 FrameworkEnvironment env; in TEST() local
3306 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3312 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3319 auto layers = env.GetLayerProperties(1); in TEST()
3322 // set enable env-var, layer should load in TEST()
3324 CheckLogForLayerString(env, implicit_layer_name, true); in TEST()
3326 InstWrapper inst{env.vulkan_functions}; in TEST()
3343 FrameworkEnvironment env; in TEST() local
3344 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3347 env.add_explicit_layer( in TEST()
3352 auto layers = env.GetLayerProperties(1); in TEST()
3355 InstWrapper inst{env.vulkan_functions}; in TEST()
3373 FrameworkEnvironment env; in TEST() local
3374 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3377 env.add_explicit_layer( in TEST()
3385 auto layers = env.GetLayerProperties(1); in TEST()
3388 InstWrapper inst{env.vulkan_functions}; in TEST()
3407 FrameworkEnvironment env; in TEST() local
3408 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3411 env.add_explicit_layer( in TEST()
3420 auto layers = env.GetLayerProperties(1); in TEST()
3423 InstWrapper inst{env.vulkan_functions}; in TEST()
3442 FrameworkEnvironment env; in TEST() local
3443 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
3446 env.add_explicit_layer( in TEST()
3456 auto layers = env.GetLayerProperties(1); in TEST()
3459 InstWrapper inst{env.vulkan_functions}; in TEST()
3488 FrameworkEnvironment env; in TEST() local
3490 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, api_version)) in TEST()
3495 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3502 InstWrapper inst{env.vulkan_functions}; in TEST()
3510 InstWrapper inst{env.vulkan_functions}; in TEST()
3519 FrameworkEnvironment env; in TEST() local
3521 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, api_version)) in TEST()
3526 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3533 auto layer_props = env.GetLayerProperties(1); in TEST()
3537 InstWrapper inst{env.vulkan_functions}; in TEST()
3539 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
3541 … EXPECT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
3542 env.debug_log.clear(); in TEST()
3547 InstWrapper inst{env.vulkan_functions}; in TEST()
3549 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
3551 … EXPECT_TRUE(env.debug_log.find(std::string("Insert instance layer \"") + regular_layer_name)); in TEST()
3552 env.debug_log.clear(); in TEST()
3560 FrameworkEnvironment env; in TEST() local
3562 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, api_version)) in TEST()
3567 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3574 auto layer_props = env.GetLayerProperties(1); in TEST()
3579 InstWrapper inst{env.vulkan_functions}; in TEST()
3589 InstWrapper inst{env.vulkan_functions}; in TEST()
3599 InstWrapper inst{env.vulkan_functions}; in TEST()
3609 InstWrapper inst{env.vulkan_functions}; in TEST()
3622 FrameworkEnvironment env; in TEST() local
3624 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, api_version)) in TEST()
3629 env.add_explicit_layer( in TEST()
3641 InstWrapper inst1{env.vulkan_functions}; in TEST()
3660 InstWrapper inst2{env.vulkan_functions}; in TEST()
3684 FrameworkEnvironment env; in TEST() local
3686 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, api_version)) in TEST()
3692 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3700 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3708 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3717 InstWrapper inst1{env.vulkan_functions}; in TEST()
3718 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
3721 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3722 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3723 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3724 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3725 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3726 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
3727 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3728 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3729 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3730 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3731 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3732 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3736 env.debug_log.clear(); in TEST()
3739 InstWrapper inst2{env.vulkan_functions}; in TEST()
3740 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
3743 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3744 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
3745 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
3746 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3747 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3748 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
3749 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3750 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3751 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3752 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3753 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3754 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3758 env.debug_log.clear(); in TEST()
3761 InstWrapper inst3{env.vulkan_functions}; in TEST()
3762 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
3765 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3766 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
3767 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
3768 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3769 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3770 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3771 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
3772 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3773 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3774 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
3775 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
3776 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3780 env.debug_log.clear(); in TEST()
3783 InstWrapper inst4{env.vulkan_functions}; in TEST()
3784 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
3787 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3788 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3789 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3790 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3791 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3792 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3793 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
3794 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3795 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3796 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3797 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3798 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3802 env.debug_log.clear(); in TEST()
3805 InstWrapper inst5{env.vulkan_functions}; in TEST()
3806 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
3809 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3810 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3811 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3812 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3813 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3814 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3815 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
3816 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3817 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3818 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
3819 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
3820 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3824 env.debug_log.clear(); in TEST()
3827 InstWrapper inst6{env.vulkan_functions}; in TEST()
3828 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
3831 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3832 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
3833 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
3834 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3835 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3836 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3837 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
3838 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3839 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3840 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
3841 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
3842 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3846 env.debug_log.clear(); in TEST()
3849 InstWrapper inst7{env.vulkan_functions}; in TEST()
3850 FillDebugUtilsCreateDetails(inst7.create_info, env.debug_log); in TEST()
3853 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3854 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
3855 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
3856 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3857 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3858 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3859 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
3860 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3861 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3862 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
3863 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
3864 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3870 FrameworkEnvironment env; in TEST() local
3871 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
3877 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3885 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3893 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
3901 InstWrapper inst1{env.vulkan_functions}; in TEST()
3903 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
3906 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3907 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
3908 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3909 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3910 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3911 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
3912 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3913 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3914 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3915 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
3916 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3917 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3921 env.debug_log.clear(); in TEST()
3924 InstWrapper inst2{env.vulkan_functions}; in TEST()
3926 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
3929 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3930 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3931 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3932 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
3933 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3934 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
3935 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3936 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
3937 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3938 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3939 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3940 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3944 env.debug_log.clear(); in TEST()
3947 InstWrapper inst3{env.vulkan_functions}; in TEST()
3949 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
3952 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3953 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3954 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3955 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
3956 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3957 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
3958 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3959 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
3960 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3961 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3962 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3963 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name m… in TEST()
3967 env.debug_log.clear(); in TEST()
3970 InstWrapper inst4{env.vulkan_functions}; in TEST()
3972 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
3975 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3976 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
3977 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
3978 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
3979 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
3980 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
3981 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
3982 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
3983 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
3984 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
3985 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
3986 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
3990 env.debug_log.clear(); in TEST()
3993 InstWrapper inst5{env.vulkan_functions}; in TEST()
3995 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
3998 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
3999 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4000 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4001 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4002 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4003 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4004 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4005 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4006 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4007 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
4008 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4009 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name m… in TEST()
4013 env.debug_log.clear(); in TEST()
4016 InstWrapper inst6{env.vulkan_functions}; in TEST()
4018 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
4021 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4022 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4023 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4024 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4025 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4026 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4027 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4028 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4029 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4030 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
4031 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4032 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name m… in TEST()
4036 env.debug_log.clear(); in TEST()
4039 InstWrapper inst7{env.vulkan_functions}; in TEST()
4041 FillDebugUtilsCreateDetails(inst7.create_info, env.debug_log); in TEST()
4044 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4045 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4046 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4047 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4048 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4049 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4050 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4051 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4052 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4053 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
4054 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4055 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name m… in TEST()
4059 env.debug_log.clear(); in TEST()
4062 InstWrapper inst8{env.vulkan_functions}; in TEST()
4064 FillDebugUtilsCreateDetails(inst8.create_info, env.debug_log); in TEST()
4067 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4068 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4069 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4070 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4071 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4072 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4073 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4074 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4075 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4076 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3… in TEST()
4077 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4078 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name m… in TEST()
4082 env.debug_log.clear(); in TEST()
4085 InstWrapper inst9{env.vulkan_functions}; in TEST()
4087 FillDebugUtilsCreateDetails(inst9.create_info, env.debug_log); in TEST()
4090 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4091 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4092 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4093 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4094 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4095 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4096 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4097 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4098 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4099 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4100 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4101 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4107 FrameworkEnvironment env; in TEST() local
4108 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4113 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4121 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4129 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4139 InstWrapper inst1{env.vulkan_functions}; in TEST()
4141 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
4144 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4145 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4146 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4147 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4148 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4149 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4150 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4151 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4152 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4153 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4154 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to … in TEST()
4155 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4159 env.debug_log.clear(); in TEST()
4163 InstWrapper inst2{env.vulkan_functions}; in TEST()
4164 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
4167 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4168 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4169 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4170 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4171 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4172 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4173 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4174 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4175 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4176 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4177 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4178 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4182 env.debug_log.clear(); in TEST()
4186 InstWrapper inst3{env.vulkan_functions}; in TEST()
4187 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
4190 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4191 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4192 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4193 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4194 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4195 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4196 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
4197 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4198 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4199 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4200 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4201 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4205 env.debug_log.clear(); in TEST()
4209 InstWrapper inst4{env.vulkan_functions}; in TEST()
4210 FillDebugUtilsCreateDetails(inst4.create_info, env.debug_log); in TEST()
4213 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4214 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4215 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4216 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4217 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4218 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4219 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
4220 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4221 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4222 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4223 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4224 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4228 env.debug_log.clear(); in TEST()
4232 InstWrapper inst5{env.vulkan_functions}; in TEST()
4233 FillDebugUtilsCreateDetails(inst5.create_info, env.debug_log); in TEST()
4236 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4237 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4238 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4239 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4240 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4241 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4242 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
4243 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4244 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4245 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4246 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4247 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4251 env.debug_log.clear(); in TEST()
4255 InstWrapper inst6{env.vulkan_functions}; in TEST()
4257 FillDebugUtilsCreateDetails(inst6.create_info, env.debug_log); in TEST()
4260 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4261 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4262 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4263 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4264 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4265 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4266 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
4267 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4268 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4269 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4270 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4271 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4275 env.debug_log.clear(); in TEST()
4279 InstWrapper inst7{env.vulkan_functions}; in TEST()
4281 FillDebugUtilsCreateDetails(inst7.create_info, env.debug_log); in TEST()
4284 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4285 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4286 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
4287 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4288 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4289 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4290 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to e… in TEST()
4291 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4292 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_3)); in TEST()
4293 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_3)… in TEST()
4294 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "forced enabled due to e… in TEST()
4295 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_3, "disabled because name … in TEST()
4301 FrameworkEnvironment env; in TEST() local
4302 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4307 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4315 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4325 InstWrapper inst1{env.vulkan_functions}; in TEST()
4327 FillDebugUtilsCreateDetails(inst1.create_info, env.debug_log); in TEST()
4330 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4331 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4332 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4333 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4334 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4335 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4336 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4337 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4341 env.debug_log.clear(); in TEST()
4344 InstWrapper inst2{env.vulkan_functions}; in TEST()
4346 FillDebugUtilsCreateDetails(inst2.create_info, env.debug_log); in TEST()
4349 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4350 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1)… in TEST()
4351 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4352 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name … in TEST()
4353 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4354 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2)… in TEST()
4355 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4356 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name … in TEST()
4360 env.debug_log.clear(); in TEST()
4363 InstWrapper inst3{env.vulkan_functions}; in TEST()
4365 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
4368 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4369 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_1… in TEST()
4370 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4371 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4372 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_2)); in TEST()
4373 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer", explicit_layer_name_2… in TEST()
4374 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "forced enabled due to … in TEST()
4375 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_2, "disabled because name m… in TEST()
4380 FrameworkEnvironment env; in TEST() local
4381 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
4384 env.add_explicit_layer( in TEST()
4391 InstWrapper inst{env.vulkan_functions}; in TEST()
4392 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4396 …env.debug_log.find("Layer \"VK_LAYER_I_dont_exist\" was not found but was requested by env var VK_… in TEST()
4400 env.debug_log.clear(); in TEST()
4403 InstWrapper inst{env.vulkan_functions}; in TEST()
4404 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4407 …env.debug_log.find("Layer \"VK_LAYER_I_dont_exist\" was not found but was requested by env var VK_… in TEST()
4411 // Make sure that if the layer appears twice in the env-var nothing bad happens in TEST()
4412 env.debug_log.clear(); in TEST()
4415 InstWrapper inst{env.vulkan_functions}; in TEST()
4416 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4419 …env.debug_log.find("Layer \"VK_LAYER_I_dont_exist\" was not found but was requested by env var VK_… in TEST()
4427 FrameworkEnvironment env; in TEST() local
4428 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA)).add_physical_device({}); in TEST()
4431 env.add_explicit_layer( in TEST()
4441 InstWrapper inst{env.vulkan_functions}; in TEST()
4442 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4449 FrameworkEnvironment env; in TEST() local
4450 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4455 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4461 env.debug_log.clear(); in TEST()
4464 ASSERT_NO_FATAL_FAILURE(env.GetLayerProperties(0)); in TEST()
4466 InstWrapper inst3{env.vulkan_functions}; in TEST()
4468 FillDebugUtilsCreateDetails(inst3.create_info, env.debug_log); in TEST()
4471 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4472 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_… in TEST()
4473 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4474 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name m… in TEST()
4478 FrameworkEnvironment env; in TEST() local
4479 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4484 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4489 env.add_implicit_layer( in TEST()
4497 env.debug_log.clear(); in TEST()
4500 auto layers = env.GetLayerProperties(1); in TEST()
4503 { // both override layer and Disable env var in TEST()
4504 InstWrapper inst{env.vulkan_functions}; in TEST()
4505 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4507 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4508 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_… in TEST()
4509 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4511 …env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name matches filte… in TEST()
4513 env.debug_log.clear(); in TEST()
4515 InstWrapper inst{env.vulkan_functions}; in TEST()
4517 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4519 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4520 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_… in TEST()
4521 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4523 …env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name matches filte… in TEST()
4528 FrameworkEnvironment env; in TEST() local
4529 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4534 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4539 env.add_implicit_layer( in TEST()
4547 env.debug_log.clear(); in TEST()
4550 auto layers = env.GetLayerProperties(1); in TEST()
4553 { // both override layer and Disable env var in TEST()
4554 InstWrapper inst{env.vulkan_functions}; in TEST()
4555 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4557 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4558 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_… in TEST()
4559 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4561 …env.debug_log.find_prefix_then_postfix(lunarg_meta_layer_name, "disabled because name matches filt… in TEST()
4563 env.debug_log.clear(); in TEST()
4565 InstWrapper inst{env.vulkan_functions}; in TEST()
4567 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4569 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4570 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_1… in TEST()
4571 …ASSERT_FALSE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to … in TEST()
4573 …env.debug_log.find_prefix_then_postfix(lunarg_meta_layer_name, "disabled because name matches filt… in TEST()
4578 FrameworkEnvironment env; in TEST() local
4579 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4584 env.add_explicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4589 env.add_implicit_layer( in TEST()
4597 env.debug_log.clear(); in TEST()
4600 auto layers = env.GetLayerProperties(1); in TEST()
4603 InstWrapper inst{env.vulkan_functions}; in TEST()
4604 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4606 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_1… in TEST()
4607 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4608 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
4610 …env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name matches filte… in TEST()
4612 env.debug_log.clear(); in TEST()
4614 InstWrapper inst{env.vulkan_functions}; in TEST()
4616 FillDebugUtilsCreateDetails(inst.create_info, env.debug_log); in TEST()
4618 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Insert instance layer ", explicit_layer_name_1… in TEST()
4619 … ASSERT_TRUE(env.debug_log.find_prefix_then_postfix("Found manifest file", explicit_json_name_1)); in TEST()
4620 …ASSERT_TRUE(env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "forced enabled due to e… in TEST()
4622 …env.debug_log.find_prefix_then_postfix(explicit_layer_name_1, "disabled because name matches filte… in TEST()
4628 FrameworkEnvironment env; in TEST() local
4629 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4634 env.add_explicit_layer( in TEST()
4646 InstWrapper inst1{env.vulkan_functions}; in TEST()
4663 InstWrapper inst2{env.vulkan_functions}; in TEST()
4688 FrameworkEnvironment env; in TEST() local
4689 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4694 env.add_explicit_layer( in TEST()
4704 InstWrapper inst{env.vulkan_functions}; in TEST()
4725 FrameworkEnvironment env; in TEST() local
4726 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2_EXPORT_ICD_GPDPA, VK_API_VERSION_1_2)) in TEST()
4731 InstWrapper inst{env.vulkan_functions}; in TEST()
4741 FrameworkEnvironment env; in TEST() local
4742 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4749 auto& layer = env.get_test_layer(0); in TEST()
4754 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
4776 InstWrapper inst{env.vulkan_functions}; in TEST()
4818 FrameworkEnvironment env; in TEST() local
4819 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4826 auto& layer = env.get_test_layer(0); in TEST()
4831 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
4853 InstWrapper inst{env.vulkan_functions}; in TEST()
4868 FrameworkEnvironment env; in TEST() local
4869 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4876 auto& layer = env.get_test_layer(0); in TEST()
4881 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
4903 InstWrapper inst{env.vulkan_functions}; in TEST()
4918 FrameworkEnvironment env; in TEST() local
4919 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
4926 auto& layer = env.get_test_layer(0); in TEST()
4931 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
4953 InstWrapper inst{env.vulkan_functions}; in TEST()
4994 FrameworkEnvironment env; in TEST() local
4995 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5002 auto& layer = env.get_test_layer(0); in TEST()
5007 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
5029 InstWrapper inst{env.vulkan_functions}; in TEST()
5080 FrameworkEnvironment env; in TEST() local
5082 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5089 auto& layer = env.get_test_layer(0); in TEST()
5094 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
5116 InstWrapper inst{env.vulkan_functions}; in TEST()
5133 FrameworkEnvironment env; in TEST() local
5134 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5141 auto& layer = env.get_test_layer(0); in TEST()
5146 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
5168 InstWrapper inst{env.vulkan_functions}; in TEST()
5185 FrameworkEnvironment env; in TEST() local
5186 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5193 auto& layer = env.get_test_layer(0); in TEST()
5198 …env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2, VK_API_VERSION_1_2)).set_icd_api_version(VK_AP… in TEST()
5220 InstWrapper inst{env.vulkan_functions}; in TEST()
5258 FrameworkEnvironment env; in TEST() local
5259 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({}); in TEST()
5261 env.add_explicit_layer( in TEST()
5268 InstWrapper inst{env.vulkan_functions}; in TEST()
5276 InstWrapper inst{env.vulkan_functions}; in TEST()
5285 InstWrapper inst{env.vulkan_functions}; in TEST()
5292 InstWrapper inst{env.vulkan_functions}; in TEST()
5300 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5304 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5306 env.update_loader_settings(env.loader_settings); in TEST()
5308 InstWrapper inst{env.vulkan_functions}; in TEST()
5315 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5316 env.update_loader_settings(env.loader_settings); in TEST()
5318 InstWrapper inst{env.vulkan_functions}; in TEST()
5324 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5325 env.update_loader_settings(env.loader_settings); in TEST()
5327 InstWrapper inst{env.vulkan_functions}; in TEST()
5335 FrameworkEnvironment env; in TEST() local
5336 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({}); in TEST()
5339 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5348 InstWrapper inst{env.vulkan_functions}; in TEST()
5357 InstWrapper inst{env.vulkan_functions}; in TEST()
5367 InstWrapper inst{env.vulkan_functions}; in TEST()
5374 InstWrapper inst{env.vulkan_functions}; in TEST()
5382 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5386 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5388 env.update_loader_settings(env.loader_settings); in TEST()
5390 InstWrapper inst{env.vulkan_functions}; in TEST()
5397 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5398 env.update_loader_settings(env.loader_settings); in TEST()
5400 InstWrapper inst{env.vulkan_functions}; in TEST()
5406 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5407 env.update_loader_settings(env.loader_settings); in TEST()
5409 InstWrapper inst{env.vulkan_functions}; in TEST()
5416 env.remove_loader_settings(); in TEST()
5422 InstWrapper inst{env.vulkan_functions}; in TEST()
5430 InstWrapper inst{env.vulkan_functions}; in TEST()
5439 InstWrapper inst{env.vulkan_functions}; in TEST()
5446 InstWrapper inst{env.vulkan_functions}; in TEST()
5454 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5458 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5460 env.update_loader_settings(env.loader_settings); in TEST()
5462 InstWrapper inst{env.vulkan_functions}; in TEST()
5468 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5469 env.update_loader_settings(env.loader_settings); in TEST()
5471 InstWrapper inst{env.vulkan_functions}; in TEST()
5477 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5478 env.update_loader_settings(env.loader_settings); in TEST()
5480 InstWrapper inst{env.vulkan_functions}; in TEST()
5488 FrameworkEnvironment env; in TEST() local
5489 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({}); in TEST()
5492 env.add_implicit_layer(ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5502 InstWrapper inst{env.vulkan_functions}; in TEST()
5510 InstWrapper inst{env.vulkan_functions}; in TEST()
5519 InstWrapper inst{env.vulkan_functions}; in TEST()
5526 InstWrapper inst{env.vulkan_functions}; in TEST()
5534 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5538 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5540 env.update_loader_settings(env.loader_settings); in TEST()
5542 InstWrapper inst{env.vulkan_functions}; in TEST()
5549 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5550 env.update_loader_settings(env.loader_settings); in TEST()
5552 InstWrapper inst{env.vulkan_functions}; in TEST()
5558 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5559 env.update_loader_settings(env.loader_settings); in TEST()
5561 InstWrapper inst{env.vulkan_functions}; in TEST()
5567 env.remove_loader_settings(); in TEST()
5573 InstWrapper inst{env.vulkan_functions}; in TEST()
5582 InstWrapper inst{env.vulkan_functions}; in TEST()
5592 InstWrapper inst{env.vulkan_functions}; in TEST()
5599 InstWrapper inst{env.vulkan_functions}; in TEST()
5607 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5611 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5613 env.update_loader_settings(env.loader_settings); in TEST()
5615 InstWrapper inst{env.vulkan_functions}; in TEST()
5622 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5623 env.update_loader_settings(env.loader_settings); in TEST()
5625 InstWrapper inst{env.vulkan_functions}; in TEST()
5631 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5632 env.update_loader_settings(env.loader_settings); in TEST()
5634 InstWrapper inst{env.vulkan_functions}; in TEST()
5643 FrameworkEnvironment env; in TEST() local
5644 env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)).add_physical_device({}); in TEST()
5647 …env.add_implicit_layer(TestLayerDetails{ManifestLayer{}.add_layer(ManifestLayer::LayerDescription{} in TEST()
5656 env.add_implicit_layer(ManifestLayer{}.set_file_format_version({1, 2, 0}).add_layer( in TEST()
5662 … .add_override_path(env.get_folder(ManifestLocation::override_layer).location().string())), in TEST()
5668 InstWrapper inst{env.vulkan_functions}; in TEST()
5678 InstWrapper inst{env.vulkan_functions}; in TEST()
5689 InstWrapper inst{env.vulkan_functions}; in TEST()
5697 InstWrapper inst{env.vulkan_functions}; in TEST()
5706 …env.loader_settings.add_app_specific_setting(AppSpecificSettings{}.add_stderr_log_filter("all").ad… in TEST()
5710 .set_path(env.get_shimmed_layer_manifest_path(0)) in TEST()
5712 env.update_loader_settings(env.loader_settings); in TEST()
5714 InstWrapper inst{env.vulkan_functions}; in TEST()
5721 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("off"); in TEST()
5722 env.update_loader_settings(env.loader_settings); in TEST()
5724 InstWrapper inst{env.vulkan_functions}; in TEST()
5730 … env.loader_settings.app_specific_settings.at(0).layer_configurations.at(0).set_control("auto"); in TEST()
5731 env.update_loader_settings(env.loader_settings); in TEST()
5733 InstWrapper inst{env.vulkan_functions}; in TEST()