diff options
| author | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-23 21:31:53 -0600 |
|---|---|---|
| committer | Mumogg <104529023+Mumogg@users.noreply.github.com> | 2026-11-23 21:31:53 -0600 |
| commit | e0d4fd2b81e6636b1c6bb2f76be79e910e84d84b (patch) | |
| tree | 7fe315b21ab6063043460bc6cb177837971a47c0 /runtime/shims/d3d12_com.cpp | |
| parent | aba24099150adb3ae17cbfe33a60adfcab161497 (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/d3d12_com.cpp')
| -rw-r--r-- | runtime/shims/d3d12_com.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp index 89b87e004..a1aa3ccc5 100644 --- a/runtime/shims/d3d12_com.cpp +++ b/runtime/shims/d3d12_com.cpp | |||
| @@ -705,17 +705,6 @@ public: | |||
| 705 | d3d12_trace::record("ID3D12GraphicsCommandList::ClearRenderTargetView"); | 705 | d3d12_trace::record("ID3D12GraphicsCommandList::ClearRenderTargetView"); |
| 706 | if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE) return check(false); | 706 | if (type_ == D3D12_COMMAND_LIST_TYPE_BUNDLE) return check(false); |
| 707 | if (!view.ptr || !color) return check(false); | 707 | if (!view.ptr || !color) return check(false); |
| 708 | // LOCAL DIAGNOSTIC: LEONIDA_DEBUG_CLEAR=1 clears to magenta; the first clears are logged. | ||
| 709 | static const bool magenta = [] { const char* v = std::getenv("LEONIDA_DEBUG_CLEAR"); return v && *v == '1'; }(); | ||
| 710 | const auto* target = reinterpret_cast<const leonida::TargetView*>(view.ptr); | ||
| 711 | static std::atomic<int> shown{0}; | ||
| 712 | if (shown.fetch_add(1, std::memory_order_relaxed) < 6) | ||
| 713 | std::fprintf(stderr, "[rt] localdbg: clear resource=0x%llx colour=%g %g %g %g rects=%u\n", | ||
| 714 | static_cast<unsigned long long>(target->resource), color[0], color[1], color[2], color[3], count); | ||
| 715 | if (magenta) { | ||
| 716 | check(list_.clear_render_target(*target, {1.0f, 0.0f, 1.0f, 1.0f}, to_rects(count, rects))); | ||
| 717 | return; | ||
| 718 | } | ||
| 719 | check(list_.clear_render_target(*reinterpret_cast<const leonida::TargetView*>(view.ptr), | 708 | check(list_.clear_render_target(*reinterpret_cast<const leonida::TargetView*>(view.ptr), |
| 720 | {color[0], color[1], color[2], color[3]}, to_rects(count, rects))); | 709 | {color[0], color[1], color[2], color[3]}, to_rects(count, rects))); |
| 721 | } | 710 | } |