upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Arenas <106154424+al3xar@users.noreply.github.com>2026-11-22 20:37:47 +0100
committerAlex Arenas <106154424+al3xar@users.noreply.github.com>2026-11-22 21:06:15 +0100
commit7e1aecf0cb16777dbcea7e9c673a0b6836ff55ed (patch)
tree89b9862215f2cfb3bf5436fd8442a50e6b9c2124 /docs
parentfaf8268e3fee776df4e3b72eea0adaa24de16352 (diff)
first_light: fix VKH_TSHARP_VA overflow guard, subgroup size, preview env, and test docs
Addresses @Kam471's review on #2806: - Fix uint32 wraparound in VKH_TSHARP_VA bounds check (tsharp_va > heap_bytes - 32) so 0xFFFFFFE0 is rejected with exit 2 instead of writing OOB; add regression test in tests/test_first_light.py. - Clarify exact test counts in docs/first_light.md (14 tests: 11 pass, 3 skip without LEONIDA_FIRST_LIGHT_DIR; 14/14 pass with LEONIDA_FIRST_LIGHT_DIR). - Require --obj when --dds is passed so textured probes are always populated, include all texture env vars in the non---run preview command, and pass VKH_SUBGROUP_SIZE from manifest['ps']['subgroup_size'].
Diffstat (limited to 'docs')
-rw-r--r--docs/first_light.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/first_light.md b/docs/first_light.md
index e28858cca..6f15a134e 100644
--- a/docs/first_light.md
+++ b/docs/first_light.md
@@ -122,8 +122,10 @@ samplers with the decoded `S#` at index 1; `binding 2` the `DescriptorTable` has
122The CPU oracle (`check_image`) samples the decoded `R8G8B8A8_UNORM` texture bilinearly (clamp-to-edge) at 122The CPU oracle (`check_image`) samples the decoded `R8G8B8A8_UNORM` texture bilinearly (clamp-to-edge) at
123`centre_uv` and each `uv_probes` entry and requires the GPU readback to match within `0.02` (rejecting the 123`centre_uv` and each `uv_probes` entry and requires the GPU readback to match within `0.02` (rejecting the
124magenta unbound-texture fallback and wrong-colour probes). Verified on Windows 11 with an NVIDIA GeForce RTX 3060 124magenta unbound-texture fallback and wrong-colour probes). Verified on Windows 11 with an NVIDIA GeForce RTX 3060
125(driver 621.24, Vulkan 1.4.357): **12,804/16,384 (0.781)** covered, all 13/13 tests in `tests/test_first_light.py` 125(driver 621.24, Vulkan 1.4.357): **12,804/16,384 (0.781)** covered. Without `LEONIDA_FIRST_LIGHT_DIR`,
126pass (including the 6 synthetic `TexturedOracleTests` that run without a GPU or package). 126`python -I tests/test_first_light.py -v` runs **14 tests: 11 passed, 3 skipped** (the 3 package-gated
127`FirstLightTests` require `LEONIDA_FIRST_LIGHT_DIR`; the 4 `OracleTests` and 7 `TexturedOracleTests` run without a
128package). With `LEONIDA_FIRST_LIGHT_DIR` set against a local package run, all **14/14** tests pass.
127 129
128```sh 130```sh
129python -I tools/first_light.py --game "<package>" --work ~/leonida-work \ 131python -I tools/first_light.py --game "<package>" --work ~/leonida-work \