Skip to content

Commit 57dc45c

Browse files
committed
kmscube: log eglinfo pipeline before running tests
Call display_print_eglinfo_pipeline in kmscube (auto/ gbm) runner to record which EGL stack is active (GPU vs CPU) before executing the test workloads. This improves triage on boards where rendering silently falls back to CPU. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent b7979bf commit 57dc45c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • Runner/suites/Multimedia/Graphics/KMSCube

Runner/suites/Multimedia/Graphics/KMSCube/run.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ fi
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 -----------------------------------------------------------
3537
TESTNAME="KMSCube"
@@ -72,6 +74,17 @@ if weston_is_running; then
7274
weston_was_running=1
7375
fi
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 ---------------------------------------------------------
7689
log_info "Running kmscube with --count=${FRAME_COUNT} ..."
7790
if kmscube --count="${FRAME_COUNT}" >"$LOG_FILE" 2>&1; then :; else

0 commit comments

Comments
 (0)