upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 06:16:46 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 06:16:46 -0500
commit59c54c1eb000162fe0b07f200ecdf327e5b0d435 (patch)
tree289dcc86739564ef3e7fea74a889892933de0b76 /runtime/src/main.cpp
parentc7fdc26d2a06df7b25242963b7be18d5c53e33fd (diff)
d3d12_xs: list slots 71/72 have one writer, the list values, when they track the list
Found by the comparison agent, not by a failing test. #1723's console list slot path still handed slots 71 and 72 to main's GPU-label hook (record_gpu_label, LEONIDA_GPU_LABELS) when its own list values track the list (track_values, on by default with LEONIDA_LIST_VALUES). The --first-run-ui profile sets LEONIDA_GPU_LABELS=1 (runtime/src/main.cpp). With both on, two threads stored to one title address, one from a Vulkan command buffer's completion and query, the other from the part's fence and a D3D12 timestamp query. A late label could rewind a rising counter or split a begin/end pair. The suite did not catch it: xbox_gpu_label_completion submits its real list straight to the queue, so only the label path landed there. The list values are the right owner. They land slots 71 to 74 in queue order behind the gates, and they also do the waits the labels cannot do. Now: - The label hook runs only for a list the list values do not track (LEONIDA_LIST_VALUES=0, bundles). Each handoff is counted in ListValueStats::labels_handed. - The --first-run-ui profile no longer sets LEONIDA_GPU_LABELS. runtime/README.md and docs/first_run_ui.md say so. - xbox_gpu_label_completion runs its label section with the list values off, as it always measured the label path alone, and checks that all five writes went there. A new section turns both on and records one write32 and one write64 on a tracked list, submitted through the queue proxy. Each lands exactly once: writes_landed == 2, labels_handed == 0, and the values are in memory. With the old condition this section fails at line 136 (labels_handed was 2), on llvmpipe and the iGPU. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
-rw-r--r--runtime/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/main.cpp b/runtime/src/main.cpp
index aec511414..f01997775 100644
--- a/runtime/src/main.cpp
+++ b/runtime/src/main.cpp
@@ -195,7 +195,7 @@ bool configure_first_run_ui(const std::filesystem::path& package, std::filesyste
195 const struct { const wchar_t* name; const wchar_t* value; } settings[] = { 195 const struct { const wchar_t* name; const wchar_t* value; } settings[] = {
196 {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"}, 196 {L"LEONIDA_D3D12", L"vulkan"}, {L"LEONIDA_ARENA_MB", L"2048"},
197 {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"}, 197 {L"LEONIDA_GRAPHICS_STAGE_LAYOUT", L"1"}, {L"LEONIDA_PIPELINE_COMPILE", L"on-demand"},
198 {L"LEONIDA_GPU_LABELS", L"1"}, {L"LEONIDA_FRAME_PACING", L"1"}, 198 {L"LEONIDA_FRAME_PACING", L"1"},
199 {L"LEONIDA_KEYBOARD_PAD", L"always"}, 199 {L"LEONIDA_KEYBOARD_PAD", L"always"},
200 }; 200 };
201 for (const auto& setting : settings) { 201 for (const auto& setting : settings) {