upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorMumogg <104529023+Mumogg@users.noreply.github.com>2026-11-23 16:21:40 -0600
committerMumogg <104529023+Mumogg@users.noreply.github.com>2026-11-23 16:21:40 -0600
commit3a4ffa45048d2f385a1083ff2c6f654b5f1eac27 (patch)
treea6a3a75a3164a35de25d4d5c04d7221592c63cdf /runtime/src
parent0c7ec65c0e0d1890139eda86cc92fc4f0ed830e6 (diff)
local: graphics stage layout experiment (s8), CB diagnostics
Diffstat (limited to 'runtime/src')
-rw-r--r--runtime/src/vulkan_replay.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/src/vulkan_replay.h b/runtime/src/vulkan_replay.h
index c4dac1434..285159c60 100644
--- a/runtime/src/vulkan_replay.h
+++ b/runtime/src/vulkan_replay.h
@@ -812,6 +812,7 @@ enum class ReplayResult {
812// LOCAL DIAGNOSTIC: the arena's host mapping and size, for dumps of what a shader would read. 812// LOCAL DIAGNOSTIC: the arena's host mapping and size, for dumps of what a shader would read.
813inline std::uint8_t* g_local_arena_mapped = nullptr; 813inline std::uint8_t* g_local_arena_mapped = nullptr;
814inline std::uint64_t g_local_arena_size = 0; 814inline std::uint64_t g_local_arena_size = 0;
815inline std::atomic<std::uint64_t> g_local_last_cb96{0}; // title address of the last 96-byte constant view created
815 816
816// LOCAL DIAGNOSTIC: which check returned unresolved_resource (first 3 times per source line). 817// LOCAL DIAGNOSTIC: which check returned unresolved_resource (first 3 times per source line).
817inline ReplayResult local_unresolved_at(int line) { 818inline ReplayResult local_unresolved_at(int line) {
@@ -2266,6 +2267,12 @@ ReplayResult prepare_draw(const Draw& draw, Resolve&& resolve, const ReplayFunct
2266 std::fprintf(stderr, "[rt] localdbg: title table guess is not readable title memory\n"); 2267 std::fprintf(stderr, "[rt] localdbg: title table guess is not readable title memory\n");
2267 } 2268 }
2268 } 2269 }
2270 if (const std::uint64_t cb = g_local_last_cb96.load()) {
2271 const float* f3 = reinterpret_cast<const float*>(cb);
2272 std::fprintf(stderr, "[rt] localdbg: 96-byte constants in title memory at draw time:");
2273 for (int w = 0; w < 24; ++w) std::fprintf(stderr, " %g", f3[w]);
2274 std::fprintf(stderr, "\n");
2275 }
2269 { // what sits just before the vertices in the title's ring 2276 { // what sits just before the vertices in the title's ring
2270 const std::uint32_t* t = reinterpret_cast<const std::uint32_t*>(view.va - 0x60); 2277 const std::uint32_t* t = reinterpret_cast<const std::uint32_t*>(view.va - 0x60);
2271 for (int e = 0; e < 3; ++e) { 2278 for (int e = 0; e < 3; ++e) {