Commit Graph
17 Commits
Author SHA1 Message Date
Adeeb Rahman 6b55d76a14 Carry analog triggers in extended guest controller snapshots
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:12:02 -05:00
Adeeb Rahman b8b42c73bf Feed macOS GameController snapshots to the interactive guest
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:10:35 -05:00
Adeeb Rahman e984cfc099 Feed native playback refills through the runtime PCM queue
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:09:16 -05:00
Adeeb Rahman 7f80767810 Refill a bounded native audio playback window
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:07:08 -05:00
Adeeb Rahman 1edcbb651d Verify native audio mixing and sample-rate conversion offline
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:06:17 -05:00
Adeeb Rahman efe9fdeb8d Select and verify the native playback output device
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:05:17 -05:00
Adeeb Rahman ccaa92ce3a Verify sequential native PCM buffer playback
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:04:21 -05:00
Adeeb Rahman 243a2d2c58 Discover host audio output devices through Core Audio
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:03:33 -05:00
Adeeb Rahman 149f9389f9 Report native audio output format and presentation latency
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:02:43 -05:00
Adeeb Rahman 7c3499d5a2 Play original guest PCM through the native macOS audio engine
Signed-off-by: Adeeb Rahman <therealabeeb@icloud.com>
2026-11-24 09:01:49 -05:00
Swastick Chowdhury b0984673d8 app: audio PCM streaming and virtual filesystem integration (#284)
Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 17:57:54 +05:30
Swastick Chowdhury 259b3054e1 app: persistent GPU resources, dynamic texture updates, and resource retirement (#279)
Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 17:34:01 +05:30
Swastick Chowdhury 223fe253c9 app: interactive guest execution with input handling and dynamic rendering (#276)
Add interactive guest execution with dynamic input handling and rendering
(Gate 4) through the versioned C runtime interface. The guest fixture
(fixtures/pe/interactive.exe, generated by fixtures/pe/interactive.py)
runs on a dedicated session-owned thread and polls host input snapshots
via xenora.dll!input_poll. It steers its rendered column position (0..3)
on native Metal and submits frames with xenora.dll!frame_submit(column).

Add xenora_session_start_interactive_loop, xenora_session_send_input,
xenora_session_queue_input, and xenora_session_get_recorded_frame to the
C interface, plus input masks (XENORA_INPUT_*) and xenora_input_state.
Pre-queuing inputs enables deterministic replay across independent
sessions without physical interaction.

Xenora.app gains interactive frame-loop controls (Interactive 300 frames,
Left, Right, Release) and a --smoke-interactive CLI flag. Four GPU
acceptance tests verify input-driven state changes, reproducible frame
sequences across deterministic replays, clean release/focus behavior
without stuck keys, and prompt join on session destruction.

Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 17:09:04 +05:30
Swastick Chowdhury 9e47234e92 app: persistent guest rendering with pause, resume and stop (#266)
Add persistent frame-loop guest rendering (Gate 3) through the versioned
C runtime interface. The guest fixture (fixtures/pe/frame-loop.exe,
generated by fixtures/pe/frame-loop.py) runs on a dedicated guest thread,
calling xenora.dll!frame_submit(index) until commanded to halt. Each frame
is rendered on native Metal, verified against the geometry strip rule, and
returned as read-back RGBA8 buffers.

Add xenora_session_start_frame_loop, xenora_session_pause_frame_loop,
xenora_session_resume_frame_loop, xenora_session_stop_frame_loop, and
xenora_session_frame_loop_status to the C interface, plus new states.
Destroying a live session safely stops and joins the guest loop without
holding the global session lock.

Xenora.app gains persistent frame-loop controls (start 300 frames, pause,
resume, stop) and displays live frames with their index and completion
count. Add --smoke-loop CLI flag and wire the five GPU acceptance tests
into scripts/test-gpu.sh.

Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 16:37:34 +05:30
Swastick Chowdhury 7fa240f7ba app: open a PE executable and show read-only compatibility diagnostics (#267)
Add xenora_inspect_executable to the C interface: a bounded, read-only
report from the static probe and loader validation (hash, headers,
sections, imports not provided by the standard runtime services, DBT
coverage of the bounded disassembly, relocation and TLS counts). Nothing
in the file is executed. A probe panic becomes a report labelled as a
Xenora defect (#270). Xenora.app opens files via Open Executable..., drag
and drop, and Finder (alternate viewer for Windows executables).

Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 16:09:15 +05:30
Swastick Chowdhury 82f2d9e9e6 app: show the trusted fixture's guest-driven Metal frame (#263)
Add xenora_session_run_trusted_fixture to the C interface. It runs only
the embedded trusted PE fixture through DBT startup; the guest's
fixture_draw import compiles the x9 RDNA2 shaders to MSL and renders on
native Metal. The 4x3 RGBA8 read-back is returned only when the guest
halts with the runner's expected results and every pixel equals the
pixel shader's export. Xenora.app shows the frame; --smoke-frame prints
it. Add a gpu-tests test run by scripts/test-gpu.sh.

Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 15:56:07 +05:30
Swastick Chowdhury c6d0986da2 app: add native macOS shell and versioned C runtime interface (#261)
Add crates/ffi, a static library exposing a version 1 C interface with
opaque generation-checked session handles, stable status codes and
panic containment. It can create and destroy sessions and parse the
bundled trusted PE fixture; no guest code runs. Add a minimal SwiftUI
app (Swift Package Manager) that links it, and scripts/build-app.sh to
build an ad-hoc signed, arm64-only Xenora.app and run its smoke check.

Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>
2026-11-24 15:43:08 +05:30