upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/shims/xbox_present.cpp
diff options
context:
space:
mode:
authorMumogg <104529023+Mumogg@users.noreply.github.com>2026-11-23 21:31:53 -0600
committerMumogg <104529023+Mumogg@users.noreply.github.com>2026-11-23 21:31:53 -0600
commite0d4fd2b81e6636b1c6bb2f76be79e910e84d84b (patch)
tree7fe315b21ab6063043460bc6cb177837971a47c0 /runtime/shims/xbox_present.cpp
parentaba24099150adb3ae17cbfe33a60adfcab161497 (diff)
runtime: remove the local diagnostics and experiments; descriptor copies check their memory
- The "[rt] localdbg:" lines and the experiment switches are gone: LEONIDA_RECT_GREEN, LEONIDA_RECT_VS, LEONIDA_RECT_NOGS, LEONIDA_RECT_NOCULL, LEONIDA_RECT_FORCE, LEONIDA_VTX_TEST and LEONIDA_DEBUG_CLEAR, with the hard-coded test shader words. vulkan_replay.h returns unresolved_resource directly again. - The descriptor write-through and the table mirror for title-backed heaps only copy between committed memory they may read and write. A handle that is only a number (xs_proxy_mock's heaps) is left alone; the test crashed there before. - A slot 70 view over memory no buffer holds becomes a raw buffer view only when the title-memory registry (title_va_alias.h) holds the whole range, instead of any address below 4 GiB. xs_proxy_mock's null-view case passes again. Still switches: LEONIDA_GRAPHICS_STAGE_LAYOUT, LEONIDA_DESC_MIRROR, LEONIDA_SLOT70_TITLE, LEONIDA_RECT_FOURTH. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4bt
Diffstat (limited to 'runtime/shims/xbox_present.cpp')
-rw-r--r--runtime/shims/xbox_present.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/shims/xbox_present.cpp b/runtime/shims/xbox_present.cpp
index 56299afe2..6fbed007d 100644
--- a/runtime/shims/xbox_present.cpp
+++ b/runtime/shims/xbox_present.cpp
@@ -154,15 +154,6 @@ HRESULT XboxPresentation::present_x(UINT plane_count, const XboxPresentPlanePara
154 return result; 154 return result;
155 } 155 }
156 156
157 { // LOCAL DIAGNOSTIC: what the first presents show
158 static std::atomic<int> shown{0};
159 if (shown.fetch_add(1, std::memory_order_relaxed) < 8)
160 for (UINT i = 0; i < plane_count; ++i)
161 std::fprintf(stderr, "[rt] localdbg: PresentX plane %u/%u resource=%p count=%u src=%p dest=%p cs=%d flags=0x%x\n",
162 i, plane_count, planes[i].ppResources ? static_cast<void*>(planes[i].ppResources[0]) : nullptr,
163 planes[i].ResourceCount, static_cast<const void*>(planes[i].pSrcViewRects),
164 static_cast<const void*>(planes[i].pDestPlacementBase), planes[i].ColorSpace, planes[i].Flags);
165 }
166 // All planes carry the token of one frame. 157 // All planes carry the token of one frame.
167 const std::uint64_t token = planes[0].Token; 158 const std::uint64_t token = planes[0].Token;
168 for (UINT i = 0; i < plane_count; ++i) { 159 for (UINT i = 0; i < plane_count; ++i) {