diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
| commit | 8d832fd10913064e1c8aec74191e3ba8f70211c8 (patch) | |
| tree | e365199d7d86ebf592a5a0dc2f07cda4b74b58a7 /runtime/src/vulkan13_features.h | |
| parent | 5da3b6be3cefc1499452ba8c8370a50092674d61 (diff) | |
| parent | c50ed94b35b37b697ab9c5fd176f3738480b4db5 (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/src/vulkan13_features.h')
| -rw-r--r-- | runtime/src/vulkan13_features.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/src/vulkan13_features.h b/runtime/src/vulkan13_features.h index 8f2dd61f8..0cb843cef 100644 --- a/runtime/src/vulkan13_features.h +++ b/runtime/src/vulkan13_features.h | |||
| @@ -40,6 +40,9 @@ public: | |||
| 40 | bool subgroup_size_control = false; | 40 | bool subgroup_size_control = false; |
| 41 | bool compute_full_subgroups = false; | 41 | bool compute_full_subgroups = false; |
| 42 | bool extended_dynamic_state = false; // core on 1.3; on 1.2 both VK_EXT_extended_dynamic_state(2) extensions | 42 | bool extended_dynamic_state = false; // core on 1.3; on 1.2 both VK_EXT_extended_dynamic_state(2) extensions |
| 43 | // VK_PIPELINE_CREATE_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT, asking a pipeline cache "do you have it?" without a | ||
| 44 | // compile (pipeline_cache_journal.h). Core 1.3 only; a 1.2 device goes without. | ||
| 45 | bool pipeline_creation_cache_control = false; | ||
| 43 | 46 | ||
| 44 | bool usable() const { return dynamic_rendering && synchronization2; } | 47 | bool usable() const { return dynamic_rendering && synchronization2; } |
| 45 | 48 | ||
| @@ -49,7 +52,7 @@ public: | |||
| 49 | core = api_version >= VK_API_VERSION_1_3; | 52 | core = api_version >= VK_API_VERSION_1_3; |
| 50 | pipeline_cache_control=false;enable_pipeline_cache_control=false; | 53 | pipeline_cache_control=false;enable_pipeline_cache_control=false; |
| 51 | dynamic_rendering = synchronization2 = subgroup_size_control = compute_full_subgroups = false; | 54 | dynamic_rendering = synchronization2 = subgroup_size_control = compute_full_subgroups = false; |
| 52 | extended_dynamic_state = false; | 55 | extended_dynamic_state = pipeline_creation_cache_control = false; |
| 53 | if (!features2) return; | 56 | if (!features2) return; |
| 54 | if (core) { | 57 | if (core) { |
| 55 | VkPhysicalDeviceVulkan13Features f13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES}; | 58 | VkPhysicalDeviceVulkan13Features f13{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES}; |
| @@ -60,6 +63,7 @@ public: | |||
| 60 | synchronization2 = f13.synchronization2 == VK_TRUE; | 63 | synchronization2 = f13.synchronization2 == VK_TRUE; |
| 61 | subgroup_size_control = f13.subgroupSizeControl == VK_TRUE; | 64 | subgroup_size_control = f13.subgroupSizeControl == VK_TRUE; |
| 62 | compute_full_subgroups = f13.computeFullSubgroups == VK_TRUE; | 65 | compute_full_subgroups = f13.computeFullSubgroups == VK_TRUE; |
| 66 | pipeline_creation_cache_control = f13.pipelineCreationCacheControl == VK_TRUE; | ||
| 63 | extended_dynamic_state = true; // core in 1.3, no feature bit | 67 | extended_dynamic_state = true; // core in 1.3, no feature bit |
| 64 | return; | 68 | return; |
| 65 | } | 69 | } |
| @@ -108,6 +112,7 @@ public: | |||
| 108 | subgroup_size_control = from.subgroup_size_control; | 112 | subgroup_size_control = from.subgroup_size_control; |
| 109 | compute_full_subgroups = from.compute_full_subgroups; | 113 | compute_full_subgroups = from.compute_full_subgroups; |
| 110 | extended_dynamic_state = from.extended_dynamic_state; | 114 | extended_dynamic_state = from.extended_dynamic_state; |
| 115 | pipeline_creation_cache_control = from.pipeline_creation_cache_control; | ||
| 111 | } | 116 | } |
| 112 | 117 | ||
| 113 | // The structs that enable both features, ahead of `chain`; returns their head for VkPhysicalDeviceVulkan12Features' | 118 | // The structs that enable both features, ahead of `chain`; returns their head for VkPhysicalDeviceVulkan12Features' |
| @@ -120,6 +125,7 @@ public: | |||
| 120 | enable13_.synchronization2 = VK_TRUE; | 125 | enable13_.synchronization2 = VK_TRUE; |
| 121 | enable13_.subgroupSizeControl = subgroup_size_control ? VK_TRUE : VK_FALSE; | 126 | enable13_.subgroupSizeControl = subgroup_size_control ? VK_TRUE : VK_FALSE; |
| 122 | enable13_.computeFullSubgroups = compute_full_subgroups ? VK_TRUE : VK_FALSE; | 127 | enable13_.computeFullSubgroups = compute_full_subgroups ? VK_TRUE : VK_FALSE; |
| 128 | enable13_.pipelineCreationCacheControl = pipeline_creation_cache_control ? VK_TRUE : VK_FALSE; | ||
| 123 | return &enable13_; | 129 | return &enable13_; |
| 124 | } | 130 | } |
| 125 | if (subgroup_size_control) { | 131 | if (subgroup_size_control) { |