mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 22:50:44 +00:00
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>
37 lines
1.7 KiB
Bash
Executable File
37 lines
1.7 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
|
|
|
|
# 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
|
|
timeout 60s cargo test --locked -p xenora-semantic-review -- --ignored --nocapture --test-threads=1
|