feat(graphics): migrate native target to 640x360
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good

Centralize the fixed 640x360 RGBA8888/60 Hz contract in the existing HAL.
Preserve 8/16/32 tiles and composition, cover partial edges and mixed-size
camera movement, and adapt firmware, fixtures, hosts and native tests.

Share nearest-neighbor presentation geometry with pointer input. Measure
actual framebuffer publications and successful host presentations separately
from VM ticks, with bounded opt-in diagnostics and release harnesses.

Validated with the complete tooling verify gate, native rendering tests,
GPU readback, headless/process integration, formatting and strict clippy.
The existing synchronous session path is documented; no worker/session
architecture replacement or format compatibility layer is introduced.

Work: WRK-0016 / DEC-0001 / PLN-0001
Commit and push explicitly authorized by the user after completion.
This commit is contained in:
2026-11-20 10:34:45 +00:00
parent f1adf86dd5
commit a32f834b2b
36 changed files with 1345 additions and 165 deletions
+12 -3
View File
@@ -20,17 +20,26 @@ Core contract:
## 2 Coordinate Space
- TOUCH coordinates use **the same space as the framebuffer**
- Resolution: **480×270**
- Resolution: **640×360**
- Origin: top-left corner `(0,0)`
- Ranges:
- `x ∈ [0, 479]`
- `y ∈ [0, 269]`
- `x ∈ [0, 639]`
- `y ∈ [0, 359]`
TOUCH is **absolute**:
- `(x, y)` represents the current contact position after normalization;
- the runtime does not apply dynamic transformation to that coordinate pair.
The host MUST apply the inverse of the actual presentation rectangle and scale,
including bars, proportional reduction, resize and HiDPI. A press outside that
rectangle MUST NOT capture a pointer. An active pointer leaving the image MUST
release, with `released` exposed for one logical frame under the existing button
contract. Returning while the physical button remains held MUST NOT recapture;
a new press inside is required. Releasing or losing focus must neutralize the
active pointer. Coordinates while `down == false` retain their existing invalid
status; no new guest-visible sentinel is introduced.
## 3 TOUCH Peripheral API
### 3.1 Exposed Structure