[Fix] (P13 W4a): monolith indirect draws stop reading the command buffer back when no attribute is client memory

This commit is contained in:
2026-10-06 04:27:33 -04:00
parent 883b861490
commit 3e2aff1d1d
7 changed files with 105 additions and 9 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ namespace MobileGL::MG_Util::PipeStats {
"residual-pulls", "server-verb-boundaries", "wire-records",
"wire-indirect-native-draws", "wire-indirect-cpu-expansions", "wire-indirect-barriers",
"wire-host-waits", "wire-host-waits-indirect", "wire-host-wait-us",
"wire-indirect-native-dispatches",
"wire-indirect-native-dispatches", "resource-readbacks",
};
const char* const kGateNames[kGateCount] = {
"espryt-render-state", "espryt-texture-sync-list", "espryt-unit-bindings-epoch",
+8
View File
@@ -284,6 +284,14 @@ namespace MobileGL::MG_Util::PipeStats {
// wire store (VulkanRenderer::DispatchWireComputeIndirect). Their barriers count in `wibar`
// with the draws': one barrier per shader write, whichever indirect read consumes it.
WireIndirectNativeDispatches,
// P13 W4a (ID-P8-14a): one per resource_readback the CLIENT emitted - a whole buffer, or
// one slice of it, pulled back into the frontend shadow because a CPU reader needed bytes
// a GPU had written. Counted at the emitter (MGPipeEmitResourceReadbackRange), in every
// mode. It exists for the regression it was added with: monolith's indirect executors
// read the command buffer back once PER COMMAND, PER VIEWPORT PASS, whenever it carried a
// GPU write - before even asking whether the draw had a client-memory array to snapshot.
// Not on the summary line; read through TotalCalls by the scenario that pins it.
ResourceReadbacks,
Count
};