mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 14:50:43 +00:00
The B3 oracle (#309) checks v_not_b32, v_bfrev_b32, v_ffbh_u32, v_ffbl_b32, v_ffbh_i32 and v_swap_b32 against the guide on both CPU interpreters, but its native Metal half was skipped because the translator did not accept the forms. This adds the VOP1 registry file and operand rule, decoder dispatch, IR and MSL lowering (v_swap_b32 writes both VGPRs, each merged under EXEC), fixture and goldens, and removes the oracle's skip from scripts/test-gpu.sh. A new CPU test checks that the compiler accepts every case of the oracle and rejects each of its rejections at the same word. v_mov_b32 stays hand-written. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
60 lines
3.0 KiB
Bash
Executable File
60 lines
3.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
|
|
export MTL_DEBUG_LAYER=1
|
|
export MTL_SHADER_VALIDATION=1
|
|
export MTL_SHADER_VALIDATION_REPORT_TO_STDERR=1
|
|
export MTL_SHADER_VALIDATION_ABORT_ON_FAULT=1
|
|
export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-4}
|
|
|
|
cargo test --locked -p xenora-metal --features gpu-tests --test native_compute --no-run
|
|
timeout 30s cargo test --locked -p xenora-metal --features gpu-tests --test native_compute -- \
|
|
--nocapture --test-threads=1
|
|
|
|
cargo test --locked -p xenora-loader --features gpu-tests --test dbt_render --no-run
|
|
timeout 30s cargo test --locked -p xenora-loader --features gpu-tests --test dbt_render -- \
|
|
--nocapture --test-threads=1
|
|
|
|
cargo test --locked -p xenora-loader --features gpu-tests --test runtime_x15 --no-run
|
|
timeout 30s cargo test --locked -p xenora-loader --features gpu-tests --test runtime_x15 -- \
|
|
test_fixture_c_service_to_metal_framebuffer --exact --nocapture --test-threads=1
|
|
|
|
cargo test --locked -p xenora-loader --features gpu-tests --test graphics_d3d12 --no-run
|
|
timeout 30s cargo test --locked -p xenora-loader --features gpu-tests --test graphics_d3d12 -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# The native app interface runs the trusted fixture's guest draw on Metal.
|
|
cargo test --locked -p xenora-ffi --features gpu-tests --test native_frame --no-run
|
|
timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test native_frame -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# The persistent frame loop runs the guest on its own thread and renders on Metal.
|
|
cargo test --locked -p xenora-ffi --features gpu-tests --test frame_loop --no-run
|
|
timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test frame_loop -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# Interactive guest execution with dynamic input handling and rendering (Gate 4, #276).
|
|
cargo test --locked -p xenora-ffi --features gpu-tests --test interactive --no-run
|
|
timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test interactive -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# Persistent GPU resources, dynamic texture updates, and resource retirement (Gate 5, #279).
|
|
cargo test --locked -p xenora-ffi --features gpu-tests --test resources --no-run
|
|
timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test resources -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# Audio PCM streaming and sandboxed virtual filesystem integration (Gate 6, #284).
|
|
cargo test --locked -p xenora-ffi --features gpu-tests --test audio_vfs --no-run
|
|
timeout 30s cargo test --locked -p xenora-ffi --features gpu-tests --test audio_vfs -- \
|
|
--nocapture --test-threads=1
|
|
|
|
# Native Metal known answers of the independent semantic review, including SOP2 scalar ALU
|
|
# and VOPC compares.
|
|
cargo test --locked -p xenora-semantic-review --no-run
|
|
# Oracles whose translator side has not landed are skipped by name until it does
|
|
# (#215: the PR that translates the forms removes its skip).
|
|
timeout 120s cargo test --locked -p xenora-semantic-review -- --ignored --nocapture --test-threads=1 \
|
|
--skip vopc_wide_match_the_guide_on_native_metal
|