Skip to content

Commit

Permalink
gpu: Don't emit redundant warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Sep 12, 2024
1 parent 884762a commit c1b5eb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layers/gpu/instrumentation/gpu_shader_instrumentor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ void GpuShaderInstrumentor::PreCallRecordCreateDevice(VkPhysicalDevice physicalD
// submit time
if (auto *ts_features = const_cast<VkPhysicalDeviceTimelineSemaphoreFeatures *>(
vku::FindStructInPNextChain<VkPhysicalDeviceTimelineSemaphoreFeatures>(modified_create_info))) {
InternalWarning(device, record_obj.location,
"Forcing VkPhysicalDeviceTimelineSemaphoreFeatures::timelineSemaphore to VK_TRUE");
ts_features->timelineSemaphore = VK_TRUE;
if (ts_features->timelineSemaphore == VK_FALSE) {
InternalWarning(device, record_obj.location,
"Forcing VkPhysicalDeviceTimelineSemaphoreFeatures::timelineSemaphore to VK_TRUE");
ts_features->timelineSemaphore = VK_TRUE;
}
} else {
InternalWarning(device, record_obj.location,
"Adding a VkPhysicalDeviceTimelineSemaphoreFeatures to pNext with timelineSemaphore set to VK_TRUE");
Expand Down

0 comments on commit c1b5eb6

Please sign in to comment.