|
| 1 | +Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 2 | + |
| 3 | +SPDX-License-Identifier: BSD-3-Clause-Clear |
| 4 | +# weston-simple-egl GraphicsTest Scripts for Qualcomm Linux based platform (Yocto) |
| 5 | +# Overview |
| 6 | + |
| 7 | +Graphics scripts automates the validation of Graphics OpenGL ES 2.0 capabilities on the Qualcomm RB3 Gen2 platform running a Yocto-based Linux system. It utilizes Weston-Simple-EGL test app which is publicly available at https://github.com/krh/weston |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- Wayland Client Integration , Uses wl_compositor, wl_shell, wl_seat, and wl_shm interfaces |
| 12 | +- OpenGL ES 2.0 Rendering |
| 13 | +- EGL Context Initialization |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +Ensure the following components are present in the target Yocto build: |
| 18 | + |
| 19 | +- `weston-simple-egl` (Binary Available in /usr/bin) be default |
| 20 | +- Write access to root filesystem (for environment setup) |
| 21 | + |
| 22 | +## Directory Structure |
| 23 | + |
| 24 | +``` |
| 25 | +bash |
| 26 | +Runner/ |
| 27 | +├── suites/ |
| 28 | +│ ├── Multimedia/ |
| 29 | +│ │ ├── Graphics/ |
| 30 | +│ │ │ ├── weston-simple-egl/ |
| 31 | +│ │ │ │ ├── run.sh |
| 32 | +``` |
| 33 | + |
| 34 | +## Usage |
| 35 | + |
| 36 | +Instructions |
| 37 | + |
| 38 | +1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to any directory on the target device. |
| 39 | + |
| 40 | +2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device. |
| 41 | + |
| 42 | +3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed. |
| 43 | +Run Graphics weston-simple-egl using: |
| 44 | +--- |
| 45 | +#### Quick Example |
| 46 | +``` |
| 47 | +git clone <this-repo> |
| 48 | +cd <this-repo> |
| 49 | +scp -r common Runner user@target_device_ip:<Path in device> |
| 50 | +ssh user@target_device_ip |
| 51 | +cd <Path in device>/Runner && ./run-test.sh weston-simple-egl |
| 52 | +``` |
| 53 | + |
| 54 | +#### Sample output: |
| 55 | +``` |
| 56 | +sh-5.2# cd <Path in device>/Runner/ && ./run-test.sh weston-simple-egl |
| 57 | +[Executing test case: weston-simple-egl] 2025-01-08 19:57:17 - |
| 58 | +[INFO] 2025-01-08 19:57:17 - -------------------------------------------------------------------------- |
| 59 | +[INFO] 2025-01-08 19:57:17 - ------------------- Starting weston-simple-egl Testcase -------------------------- |
| 60 | +[INFO] 2025-01-08 19:57:17 - Weston already running. |
| 61 | +[INFO] 2025-01-08 19:57:17 - Running weston-simple-egl for 30 seconds... |
| 62 | +QUALCOMM build : 05b958b3c9, Ia7470d0c4c |
| 63 | +Build Date : 03/27/25 |
| 64 | +OpenGL ES Shader Compiler Version: |
| 65 | +Local Branch : |
| 66 | +Remote Branch : |
| 67 | +Remote Branch : |
| 68 | +Reconstruct Branch : |
| 69 | +
|
| 70 | +Build Config : G ESX_C_COMPILER_OPT 3.3.0 AArch64 |
| 71 | +Driver Path : /usr/lib/libGLESv2_adreno.so.2 |
| 72 | +Driver Version : 0808.0.6 |
| 73 | +Process Name : weston-simple-egl |
| 74 | +PFP: 0x016dc112, ME: 0x00000000 |
| 75 | +Pre-rotation disabled !!! |
| 76 | +
|
| 77 | +EGL updater thread started |
| 78 | +
|
| 79 | +MSM_GEM_NEW returned handle[1] for drm_fd=5 buffer flag=65536 buffer size=266240 |
| 80 | +Get fd[7] from GEM HANDLE[1] |
| 81 | +MSM_GEM_NEW returned handle[2] for drm_fd=5 buffer flag=65536 buffer size=266240 |
| 82 | +Get fd[7] from GEM HANDLE[2] |
| 83 | +MSM_GEM_NEW returned handle[3] for drm_fd=5 buffer flag=65536 buffer size=266240 |
| 84 | +Get fd[7] from GEM HANDLE[3] |
| 85 | +MSM_GEM_NEW returned handle[4] for drm_fd=5 buffer flag=65536 buffer size=266240 |
| 86 | +Get fd[7] from GEM HANDLE[4] |
| 87 | +303 frames in 5 seconds: 60.599998 fps |
| 88 | +300 frames in 5 seconds: 60.000000 fps |
| 89 | +298 frames in 5 seconds: 59.599998 fps |
| 90 | +300 frames in 5 seconds: 60.000000 fps |
| 91 | +299 frames in 5 seconds: 59.799999 fps |
| 92 | +[PASS] 2025-01-08 19:57:49 - weston-simple-egl : Test Passed |
| 93 | +[INFO] 2025-01-08 19:57:49 - ------------------- Completed weston-simple-egl Testcase ------------------------ |
| 94 | +[PASS] 2025-01-08 19:57:49 - weston-simple-egl passed |
| 95 | +
|
| 96 | +[INFO] 2025-01-08 19:57:49 - ========== Test Summary ========== |
| 97 | +PASSED: |
| 98 | +weston-simple-egl |
| 99 | +
|
| 100 | +FAILED: |
| 101 | + None |
| 102 | +[INFO] 2025-01-08 19:57:49 - ================================== |
| 103 | +sh-5.2# |
| 104 | +``` |
| 105 | +## Notes |
| 106 | + |
| 107 | +- It validates the graphics gles2 functionalities. |
| 108 | +- If any critical tool is missing, the script exits with an error message. |
0 commit comments