You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a9162b6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,8 @@ Preserve the release/version rules above. Treat the core AAR’s interface and c
167
167
- **projectM patches:** never commit edits inside `third_party/projectm` (submodule has `ignore = dirty`). To write a patch: apply the existing series in `third_party/projectm` and stage it (`git -C third_party/projectm add -A`) so new edits show as a clean diff, then use `tools/regen-projectm-patch.sh <name>`. That script only diffs `src/` and `tests/`; patches touching `vendor/hlslparser` (0003, 0008, 0018, 0019, 0021, 0030, 0031) must be produced manually with a `git diff` that includes `vendor/hlslparser`. `vendor/projectm-eval` is a nested submodule (patches 0004, 0020, 0034): diff it with `git -C third_party/projectm/vendor/projectm-eval diff --src-prefix=a/vendor/projectm-eval/ --dst-prefix=b/vendor/projectm-eval/` and stage it with `git -C third_party/projectm/vendor/projectm-eval add -A`. Its `Scanner.c`/`Compiler.c` are pre-generated (the build disables flex/bison); for a `Scanner.l` change commit only the delta between two runs of the same flex (`flex --noline --prefix=prjm_eval_ --header-file=Scanner.h -o Scanner.c Scanner.l` before and after), because Apple's flex 2.6.4 skeleton differs from the committed one (patch 0034). Patch numbers are taken in merge order: check `main` for new patches before numbering yours. For several new patches at once, a local-only branch in the submodule with one commit per patch (series, then each new patch) lets `git diff <commit> <commit>` regenerate any of them; never stage `third_party/projectm` in the superproject, and reset the submodule to the pinned commit afterwards. After pulling patch changes, reset the submodule (`git submodule foreach --recursive git checkout -- .`). Shader changes must link as GLSL ES 3.00 (`glslangValidator -l` with `#version 300 es` prepended; PR template).
168
168
-**Preset equation loading (patches 0029, 0033–0035):** code the evaluator rejects is compiled once more in MilkDrop's form (numbered records joined, `//`/`\\` comments removed, NS-EEL's stray `;` in parentheses read as a space); a lone `.` is the number 0; a block that still does not compile is left out like MilkDrop's `CState::RecompileExpressions` (q/t variables zero after a failed init) and reported through `projectm_set_preset_initialization_warning_event_callback`, which `native-lib.cpp` logs as `Preset code left out (<preset>): <reason> (line N, column M)`. Only parse errors fail a load. Keep accepted programs on the unchanged path.
169
169
-**Random textures (0037):** image selection belongs to slots 00–15 in a preset and is reused across warp/composite and shader reloads. Rebuild the descriptor for each exact alias and requested mode. Within a shader, filtered `randNN_prefix` aliases choose an empty slot before unfiltered aliases; competing prefixes keep lexical precedence. Across stages, the already selected slot wins. `sampler_state` fields remain ignored (0032); name prefixes select mode. Default user-texture mode is linear/wrap. Bind emitted short aliases to the same unit as their full alias and deduplicate declaration lines. Preserve `Texture::SourcePath()` and base names for diagnostics; generated textures have no source path. Production uses `std::random_device` for each new texture choice; a host seed does not establish Android/AAR association.
170
+
-**GLES sampling fixtures:** allocate sized RGBA8 storage before an RGBA upload and assert allocation/upload GL errors immediately. An unsized RGB texture can accept RGBA uploads on desktop GL while GLES rejects them. Use unit-slope, exactly representable edge-crossing UV/filter weights for cross-driver numerical oracles; keep strict pixel tolerances and inspect actual texture bytes/sampler state before attributing differences to the engine.
171
+
-**Native regression GL linkage:** link engine-dependent regressions to `libprojectM::projectM` and the harness-selected EGL/GL target. System projectM GLES discovery creates a directory-scoped imported target; the parent harness must not reference `OpenGL::GLES3` directly unless the explicit-flag override made it global. Validate both normal discovery and explicit `GL_LIBS`/`GL_CFLAGS` routes on Linux/Mesa, as well as macOS.
170
172
-**Matched TV benchmark selection:** temporarily select All when a curated collection excludes the witness, restore the original selection afterward, and verify exact `BENCHMARK`/`LOAD` filenames before accepting FPS rows. A short prefix can select a sibling (`widest swing zero-sum.milk`); use the full filename when it fits the Android property limit. Cold-start with the captured-user/listener recipe above so a preserved preset cannot override the debug pin. Record actual surface size, target FPS and audio state; silence windows do not establish live-music performance.
171
173
-**Predictor-established renderer fixes (0045–0047):** main-textured shapes own a repeat/linear sampler for every fill, including authored/native geometry; preserve named-image descriptor qualifiers. Blur bounds retain clamp-then-expand ordering, but upper bounds expand upward; reject nonfinite/unrepresentable ranges and progressive float32 cancellation using coherent `[0,1]` defaults for storage and decoding. Signed negative motion zoom with `zoomExp == 1` bypasses undefined GLSL `pow` in the shared warp vertex shader; other negative-base power domains remain unsupported. Native controls `shape-sampler-regressions`, `blur-range-regressions` and `warp-zoom-regressions` exercise real draws, production normalization and vertex UV readback. Do not infer Windows appearance or TV GPU performance from host/emulator checks.
172
174
-**Blur framebuffer ownership (0041):** capture both caller read/draw framebuffer bindings before allocating or resizing blur textures. `Framebuffer::SetSize` unbinds both targets; saving after allocation sends later shapes/waves/borders to framebuffer zero when warp shaders sample blur. The native runner checks first use, unchanged size, resize, scaled blur, constant-color output and the unchanged midgit preset with isolated TGA assets. The same ownership control is verified on AM6/Mali-G52; Android framebuffer zero can be valid and hide the host error, so assert binding identity as well as checking GL errors (evidence: `docs/superpowers/evidence/midgit-framebuffer/`).
Copy file name to clipboardExpand all lines: docs/user-guide/development.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,10 @@ checks repeat/bilinear samples and named-image qualifiers across instances and
23
23
context recreation, and separates blur mentions from actual allocation. Blur
24
24
controls exercise the production bounds and progressive float32 uniform producer.
25
25
Warp controls execute the shared production vertex source and read transformed UVs
26
-
for signed negative unit-exponent zoom and ordinary positive transforms.
26
+
for signed negative unit-exponent zoom and ordinary positive transforms. Native GL regressions inherit
27
+
the engine's GL link dependencies; Linux uses the harness-selected EGL target for
28
+
context creation. Both ordinary system discovery and explicit EGL/GLES link-flag
29
+
overrides are supported without depending on a child-directory imported target. Sampling fixtures allocate storage matching their upload format and check GL errors immediately; unit-slope, binary-exact coordinates keep strict pixel oracles portable across the tested drivers.
0 commit comments