Skip to content

Commit

Permalink
Don't force host cached for profilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Dec 14, 2023
1 parent 6a13c5a commit 2b04fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vulkan/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,10 @@ void Device::init_workarounds()
LOGI(" Name: %s\n", t.name);
LOGI(" Description: %s\n", t.description);
LOGI(" Version: %s\n", t.version);
if ((t.purposes & VK_TOOL_PURPOSE_TRACING_BIT_EXT) != 0)
if ((t.purposes & VK_TOOL_PURPOSE_TRACING_BIT_EXT) != 0 &&
(t.purposes & VK_TOOL_PURPOSE_PROFILING_BIT) == 0)
{
LOGI("Detected tracing tool, forcing host cached memory types for performance.\n");
LOGI("Detected non-profiling tracing tool, forcing host cached memory types for performance.\n");
workarounds.force_host_cached = true;
}
}
Expand Down

0 comments on commit 2b04fae

Please sign in to comment.