Skip to content

Commit

Permalink
tests: Explicitly add Self Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Oct 1, 2024
1 parent b218fb7 commit 0463063
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/framework/layer_validation_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ VkLayerTest::VkLayerTest() {
instance_layers_.push_back(kSynchronization2LayerName);
}

// If self validation is detected (ex. in CI) then we will add it.
// It is VERY important this is the last layer.
if (InstanceLayerSupported("VK_LAYER_DEV_self_validation")) {
instance_layers_.push_back("VK_LAYER_DEV_self_validation");
}

app_info_ = vku::InitStructHelper();
app_info_.pApplicationName = "layer_tests";
app_info_.applicationVersion = 1;
Expand Down

0 comments on commit 0463063

Please sign in to comment.