|
| 1 | +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 2 | +# SPDX-License-Identifier: BSD-3-Clause-Clear |
| 3 | + |
| 4 | +# GLmark2-es2-wayland GraphicsTest Scripts for RB3 Gen2 (Yocto) |
| 5 | +# Overview |
| 6 | + |
| 7 | +Graphics scripts automates the validation of Graphics gles2 capabilities on the Qualcomm RB3 Gen2 platform running a Yocto-based Linux system. It utilizes GLmark2-es2-wayland test app which is publicly available at https://github.com/glmark2/glmark2 |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- OpenGL ES 2.0 API level test |
| 12 | +- Various standard features, such as vertex arrays, vertex buffer objects (VBOs), texturing, and shaders |
| 13 | +- Provides detailed performance metrics, including frame rates and scores |
| 14 | +- Supports offscreen rendering, allowing you to benchmark without displaying the output on the screen |
| 15 | +- Specifically designed to run as a Wayland client, making it suitable for modern Linux desktop environments |
| 16 | +- Compatible with Yocto-based root filesystem |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Ensure the following components are present in the target Yocto build: |
| 21 | + |
| 22 | +- `glmark2-es2-wayland` (Binary Available in /usr/bin) - this test app can be compiled from https://github.com/glmark2/glmark2 |
| 23 | +- `glmark2` (resouces Available in /usr/bin) - this data path can be taken from https://github.com/glmark2/glmark2 |
| 24 | +- Write access to root filesystem (for environment setup) |
| 25 | + |
| 26 | +## Directory Structure |
| 27 | + |
| 28 | +```bash |
| 29 | +Runner/ |
| 30 | +├── suites/ |
| 31 | +│ ├── Multimedia/ |
| 32 | +│ │ ├── Graphics/ |
| 33 | +│ │ │ ├── GLmark2/ |
| 34 | +│ │ │ │ ├── run.sh |
| 35 | + |
| 36 | + |
| 37 | +## Usage |
| 38 | + |
| 39 | +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 the /var directory on the target device. |
| 40 | + |
| 41 | +2. Verify Transfer: Ensure that the repo have been successfully copied to the /var directory on the target device. |
| 42 | + |
| 43 | +3. Run Scripts: Navigate to the /var directory on the target device and execute the scripts as needed. |
| 44 | + |
| 45 | +Run a Graphics GLMark2 test using: |
| 46 | +--- |
| 47 | +Quick Example |
| 48 | +``` |
| 49 | +git clone <this-repo> |
| 50 | +cd <this-repo> |
| 51 | +scp -r common Runner user@target_device_ip:/var |
| 52 | +ssh user@target_device_ip |
| 53 | +cd /var/Runner && ./run-test.sh GLMark2 |
| 54 | +``` |
| 55 | +Sample output: |
| 56 | +sh-5.2# sh-5.2# cd /var/Runner && ./run-test.sh GLMark2 |
| 57 | +[Executing test case: /var/Runner/suites/Multimedia/Graphics/GLMark2] 2025-01-10 01:12:55 - |
| 58 | +[INFO] 2025-01-10 01:12:55 - ----------------------------------------------------------------------------------------- |
| 59 | +[INFO] 2025-01-10 01:12:55 - -------------------Starting GLMark2_Validation Testcase---------------------------- |
| 60 | +Running onscreen_default... |
| 61 | +... |
| 62 | +======================================================= |
| 63 | + glmark2 Score: 378 |
| 64 | +======================================================= |
| 65 | +
|
| 66 | +EGL updater thread exited |
| 67 | +
|
| 68 | +GEM Handle for BO=1 closed |
| 69 | +GEM Handle for BO=2 closed |
| 70 | +GEM Handle for BO=3 closed |
| 71 | +GEM Handle for BO=4 closed |
| 72 | +GEM Handle for BO=5 closed |
| 73 | +[PASS] onscreen_default score detected. |
| 74 | +Running offscreen_default... |
| 75 | +..... |
| 76 | +======================================================= |
| 77 | + glmark2 Score: 381 |
| 78 | +======================================================= |
| 79 | +
|
| 80 | +EGL updater thread exited |
| 81 | +
|
| 82 | +[PASS] offscreen_default score detected. |
| 83 | +[INFO] 2025-01-10 01:23:21 - |
| 84 | +[INFO] 2025-01-10 01:23:21 - === Overall GLMark2 Validation Result === |
| 85 | +[OVERALL PASS] GLMark2 rendering validated. |
| 86 | +[PASS] 2025-01-10 01:23:21 - GLMark2_Validation : Test Passed |
| 87 | +
|
| 88 | +
|
| 89 | +4. Results will be available in the `/var/Runner/suites/Multimedia/Graphics/GLmark2/results` directory for both onscreen and offscreen tests. |
| 90 | +
|
| 91 | +## Notes |
| 92 | +
|
| 93 | +- The script takes input like offscreen & onscreen. |
| 94 | +- It validates the graphics gles2 functionalities. |
| 95 | +- If any critical tool is missing, the script exits with an error message. |
| 96 | +- Syslog_log.txt & dmesg_log.txt are useful to debug driver related issue |
0 commit comments