Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add glmark2 test for hardware rendering in addition to unity_support_test for devices running wayland (BugFix) #1677

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tomli380576
Copy link
Contributor

Description

This PR uses the glmark2-es2 test to determine whether the DUT is using hardware rendering instead of unity_support_test. It checks the output of glmark2 for a GL_RENDERER string and uses the same logic as unity_support_test to see if it's produced by a software renderer.

Requires #1671

Resolved issues

#1630

Debian version of glmark2 returns the correct string on Mali platforms whereas unity_support_test doesn't.

Documentation

The basic idea is to check XDG_SESSION_TYPE, which should be set once graphical.target is reached, and run glmark2-es2 for wayland, unity_support_test for X11. If unset, run glmark2.

Tests

Original unit tests
Real hardware: x86 laptops and the Mali device in #1630

@tomli380576 tomli380576 changed the title Add glmark2 test for hardware rendering in addition to unity_support_test for devices running wayland (Bugfix) Add glmark2 test for hardware rendering in addition to unity_support_test for devices running wayland (BugFix) Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant