Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -25,6 +25,15 @@ the draw built, whichever path wrote it. The cases (tests/desc_sets_test.cpp):
push-template-off, push-template-none, push-template-misfit
RX_VK_DESC_TEMPLATE=0, no vkCmdPushDescriptorSetWithTemplateKHR, writes it was not made from or none made (and not
tried again): the write structs, as before
push-template-old
(Triforce, 11-26, C31) RX_VK_TPL_TABLE=0: the 8 entries find a program's push template, and a layout made
again is not taken from them
tpl-table, tpl-table-off, tpl-table-check
(Triforce, 11-26, C31; gpu/vk/tpltable.h) 40 programs pushed whole in turn: each template made once and found in
the thread's table after, tpl_mu taken once a program; a layout made again takes the lock and a new template; the
lab's notpltable phase and RX_VK_TPL_TABLE=0 go by the 8 entries (the lock at most lookups), the same templates;
a set program's template is found in the table too, and a set layout made again takes the lock and a new one;
RX_VK_TPL_TABLE=2 finds each one the map's, and counts an entry put in the table that is not
Each case fails without the rule it names (remove the check from set_kept, and its case stops); the push template's rules are
taken out in turn here (MUTATIONS) and a case must then fail.
python -I -B tests/test_desc_sets.py --headers <Vulkan include folder> [--cxx g++]
@@ -40,7 +49,7 @@ RUN_ALL_ARGS = ["--cxx", "{cxx}", "--headers", "{vulkan_headers}"]
ROOT = Path(__file__).resolve().parents[1]
CASES = ["reuse", "changed", "destroy", "stamp", "recording", "cmd", "bindpoint", "layout", "keep-off", "template", "template-off",
"template-misfit", "template-fail", "template-entries", "push", "push-template", "push-template-off", "push-template-none",
"push-template-misfit"]
"push-template-misfit", "push-template-old", "tpl-table", "tpl-table-off", "tpl-table-check"]
# ((Triforce) the push template's rules, each taken out of vk_draw.cpp: the case named must then fail)
MUTATIONS = [
("the descriptors packed for the push", " template_pack(dw().writes.data(), dw().writes.size(), t->slots, data);\n rec::push_template_bytes(",
@@ -48,6 +57,14 @@ MUTATIONS = [
" rec::push_template_bytes(", "push"),
("the recorder told the bytes", "rec::push_template_bytes(data.size());", "rec::push_template_bytes(0);", "push"),
("a template for each pipeline layout", "if (!t || t->pipe_layout != p.layout) {", "if (!t) {", "push-template"),
# ((Triforce, 11-26, C31) what the thread's wide table finds is used only while its layout is the program's
("the layout check on what the wide table finds", "if (t && t->pipe_layout == p.layout) {", "if (t) {", "push-template"),
("the wide table by default", 'return lab_ab::on("notpltable") ? tpltable::kOld : env;', "return env * 0;", "tpl-table"),
("the set layout check on what the wide table finds", "if (t && t->layout == p.set_layout) {", "if (t) {", "tpl-table"),
("the check's comparison with the map", "if (it == map.end() || it->second.get() != t) {", "if (it == map.end() || !t) {",
"tpl-table-check"),
("the 8 entries' push layout check", "} else if (l.p == &p && l.t && l.t->pipe_layout == p.layout) {", "} else if (l.p == &p && l.t) {",
"push-template-old"),
("writes that fit the push template", " if (!t || !t->tpl || !template_fits(t->sig, dw().writes.data(), dw().writes.size())) return false;\n"
" std::vector<uint8_t>& data = tpl_data();\n template_pack(dw().writes.data(), dw().writes.size(), t->slots, data);\n"
" rec::push_template_bytes(", " if (!t || !t->tpl) return false;\n std::vector<uint8_t>& data = tpl_data();\n"
@@ -102,7 +119,7 @@ def build(cxx, headers, tmp, name, fixture):
cpp, exe = Path(tmp) / (name + ".cpp"), Path(tmp) / (name + ".exe")
cpp.write_text(fixture, encoding="utf-8")
subprocess.run([cxx, "-std=c++20", "-O1", "-Wall", "-Wextra", "-Werror", "-Wno-missing-field-initializers", "-pthread",
"-I" + str(headers), str(cpp), "-o", str(exe)], check=True)
"-I" + str(headers), "-I" + str(ROOT / "gpu" / "vk"), str(cpp), "-o", str(exe)], check=True)
return exe