pipeline: log real shader compiles to the console

This commit is contained in:
nmzik
2026-10-24 23:08:01 +02:00
parent 1816004357
commit 87e49282b8
3 changed files with 21 additions and 0 deletions
+8
View File
@@ -609,6 +609,8 @@ struct PipelineCacheTestAccess {
}
return count;
}
static auto Compiled(const PipelineCache &cache) { return cache.m_compiled; }
};
namespace {
@@ -44648,6 +44650,12 @@ void CheckStableProgramIds(VulkanHarness &vulkan) {
{
PipelineCache cache(vulkan.RuntimeContext(), nullptr);
for (size_t i = 0; i < cases.size(); i++) forward[i] = compile(cache, cases[i]);
// One compute module per case and nothing else.
auto expected = PipelineCacheTestAccess::Compiled(cache);
expected.fill(0);
expected[static_cast<size_t>(ShaderType::Compute)] = static_cast<uint32_t>(cases.size());
Require(name, "compiled modules", PipelineCacheTestAccess::Compiled(cache) == expected,
"the per-stage compile counts missed or added a module");
}
{
PipelineCache cache(vulkan.RuntimeContext(), nullptr);