mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-06-02 03:53:42 +02:00
[thanos] Split compute init and update into separate passes for barrier.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user