File tree Expand file tree Collapse file tree
suites/Multimedia/Graphics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030# Always source functestlib.sh, using $TOOLS exported by init_env
3131# shellcheck disable=SC1090,SC1091
3232. " $TOOLS /functestlib.sh"
33+ # shellcheck disable=SC1090,SC1091
34+ . " $TOOLS /lib_display.sh"
3335
3436# --- Test metadata -----------------------------------------------------------
3537TESTNAME=" KMSCube"
@@ -72,6 +74,17 @@ if weston_is_running; then
7274 weston_was_running=1
7375fi
7476
77+ # --- Skip if only CPU/software renderer is active (GPU HW accel not enabled) ---
78+ if command -v display_is_cpu_renderer > /dev/null 2>&1 ; then
79+ if display_is_cpu_renderer auto; then
80+ log_skip " $TESTNAME SKIP: GPU HW acceleration not enabled (CPU/software renderer detected)"
81+ echo " ${TESTNAME} SKIP" > " $RES_FILE "
82+ exit 0
83+ fi
84+ else
85+ log_warn " display_is_cpu_renderer helper not found and cannot enforce GPU accel gating (continuing)."
86+ fi
87+
7588# --- Execute kmscube ---------------------------------------------------------
7689log_info " Running kmscube with --count=${FRAME_COUNT} ..."
7790if kmscube --count=" ${FRAME_COUNT} " > " $LOG_FILE " 2>&1 ; then : ; else
Original file line number Diff line number Diff line change @@ -200,6 +200,17 @@ if command -v display_debug_snapshot >/dev/null 2>&1; then
200200 display_debug_snapshot " ${TESTNAME} : after-ensure-60hz"
201201fi
202202
203+ # --- Skip if only CPU/software renderer is active (GPU HW accel not enabled) ---
204+ if command -v display_is_cpu_renderer > /dev/null 2>&1 ; then
205+ if display_is_cpu_renderer auto; then
206+ log_skip " $TESTNAME SKIP: GPU HW acceleration not enabled (CPU/software renderer detected)"
207+ echo " ${TESTNAME} SKIP" > " $RES_FILE "
208+ exit 0
209+ fi
210+ else
211+ log_warn " display_is_cpu_renderer helper not found and cannot enforce GPU accel gating (continuing)."
212+ fi
213+
203214# ---------------------------------------------------------------------------
204215# Binary & EGL vendor override
205216# ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments