Skip to content

Commit ceff462

Browse files
authored
Merge pull request #248 from smuppand/Display
Display: EGLINFO pipeline detection + GPU/CPU hint in kmscube & weston-wayland-test
2 parents fb5e92b + 7b0cd6b commit ceff462

3 files changed

Lines changed: 420 additions & 0 deletions

File tree

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

Runner/suites/Multimedia/Graphics/weston-simple-egl/run.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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"
201201
fi
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
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)