[thanos] Split compute init and update into separate passes for barrier.

This commit is contained in:
23rd
2026-05-22 13:02:53 +03:00
parent fabd16817f
commit 559b172ebc
@@ -367,9 +367,9 @@ void ThanosEffectRenderer::render(
&updateUni);
}
cb->beginComputePass(rub);
if (needsInit) {
cb->beginComputePass(rub);
rub = nullptr;
for (auto &item : _items) {
if (!item.needsInitDispatch) {
continue;
@@ -384,8 +384,10 @@ void ThanosEffectRenderer::render(
/ kComputeWorkgroupSize;
cb->dispatch(int(groups), 1, 1);
}
cb->endComputePass();
}
cb->beginComputePass(rub);
for (auto &item : _items) {
if (item.phase >= kMaxPhaseDuration) {
continue;
@@ -397,7 +399,6 @@ void ThanosEffectRenderer::render(
/ kComputeWorkgroupSize;
cb->dispatch(int(groups), 1, 1);
}
cb->endComputePass();
}