Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Runner/suites/Multimedia/Graphics/KMSCube/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ fi
# Always source functestlib.sh, using $TOOLS exported by init_env
# shellcheck disable=SC1090,SC1091
. "$TOOLS/functestlib.sh"
# shellcheck disable=SC1090,SC1091
. "$TOOLS/lib_display.sh"

# --- Test metadata -----------------------------------------------------------
TESTNAME="KMSCube"
Expand Down Expand Up @@ -72,6 +74,17 @@ if weston_is_running; then
weston_was_running=1
fi

# --- Skip if only CPU/software renderer is active (GPU HW accel not enabled) ---
if command -v display_is_cpu_renderer >/dev/null 2>&1; then
if display_is_cpu_renderer auto; then
log_skip "$TESTNAME SKIP: GPU HW acceleration not enabled (CPU/software renderer detected)"
echo "${TESTNAME} SKIP" >"$RES_FILE"
exit 0
fi
else
log_warn "display_is_cpu_renderer helper not found and cannot enforce GPU accel gating (continuing)."
fi

# --- Execute kmscube ---------------------------------------------------------
log_info "Running kmscube with --count=${FRAME_COUNT} ..."
if kmscube --count="${FRAME_COUNT}" >"$LOG_FILE" 2>&1; then :; else
Expand Down
11 changes: 11 additions & 0 deletions Runner/suites/Multimedia/Graphics/weston-simple-egl/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,17 @@ if command -v display_debug_snapshot >/dev/null 2>&1; then
display_debug_snapshot "${TESTNAME}: after-ensure-60hz"
fi

# --- Skip if only CPU/software renderer is active (GPU HW accel not enabled) ---
if command -v display_is_cpu_renderer >/dev/null 2>&1; then
if display_is_cpu_renderer auto; then
log_skip "$TESTNAME SKIP: GPU HW acceleration not enabled (CPU/software renderer detected)"
echo "${TESTNAME} SKIP" >"$RES_FILE"
exit 0
fi
else
log_warn "display_is_cpu_renderer helper not found and cannot enforce GPU accel gating (continuing)."
fi

# ---------------------------------------------------------------------------
# Binary & EGL vendor override
# ---------------------------------------------------------------------------
Expand Down
Loading
Loading