upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_harness.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 19:04:24 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 19:04:24 -0500
commit8d832fd10913064e1c8aec74191e3ba8f70211c8 (patch)
treee365199d7d86ebf592a5a0dc2f07cda4b74b58a7 /runtime/test/vk_harness.cpp
parent5da3b6be3cefc1499452ba8c8370a50092674d61 (diff)
parentc50ed94b35b37b697ab9c5fd176f3738480b4db5 (diff)
Merge main into rt-title-every-budget (#2122)
#2098 split the every-pass loop of refresh_title_textures by mode: with LEONIDA_TEXTURE_REFRESH_ASYNC every persistent mapping is polled each pass and only stale unmapped textures are visited, without it all mapped or stale ones are. The async branch is kept as main has it. LEONIDA_TITLE_EVERY_BUDGET_US applies to the synchronous pass, the one before a submission on the submitting thread; under async the pass runs on the refresh worker and the limit does not apply (README says so). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_harness.cpp')
-rw-r--r--runtime/test/vk_harness.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/test/vk_harness.cpp b/runtime/test/vk_harness.cpp
index cd374e8b6..872e30b93 100644
--- a/runtime/test/vk_harness.cpp
+++ b/runtime/test/vk_harness.cpp
@@ -929,7 +929,8 @@ int main(int argc, char** argv) {
929 LOADD(vkCreateSampler); LOADD(vkCreateDescriptorPool); LOADD(vkAllocateDescriptorSets); 929 LOADD(vkCreateSampler); LOADD(vkCreateDescriptorPool); LOADD(vkAllocateDescriptorSets);
930 LOADD(vkUpdateDescriptorSets); 930 LOADD(vkUpdateDescriptorSets);
931 leonida::DescriptorTable desc_table(16); 931 leonida::DescriptorTable desc_table(16);
932 desc_table.insert(tsharp, 1); 932 // The translated modules read the entry's kind (descriptor_table.h): this T# is a sampled 2D image.
933 desc_table.insert(tsharp, 1, leonida::kind_sampled_bit(0));
933 desc_table.insert(ssharp, 1); 934 desc_table.insert(ssharp, 1);
934 const auto table = desc_table.build_gpu_buffer(true); 935 const auto table = desc_table.build_gpu_buffer(true);
935 VkBuffer tb = VK_NULL_HANDLE; 936 VkBuffer tb = VK_NULL_HANDLE;