Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 1 | From 110ef8357ebaf24bc3995e631ec809a2f84c3b87 Mon Sep 17 00:00:00 2001 |
| 2 | From: Trevor Woerner <twoerner@gmail.com> |
| 3 | Date: Thu, 3 Dec 2020 07:16:58 -0500 |
| 4 | Subject: [PATCH] run dispmanx fullscreen |
| 5 | |
| 6 | The dispmanx flavour can only run fullscreen, therefore set the size to |
| 7 | fullscreen when glmark2-es2-dispmanx is run. |
| 8 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 9 | Upstream-Status: Submitted [https://github.com/glmark2/glmark2/pull/135] |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 10 | Signed-off-by: Trevor Woerner <twoerner@gmail.com> |
| 11 | --- |
| 12 | src/main.cpp | 5 +++++ |
| 13 | 1 file changed, 5 insertions(+) |
| 14 | |
| 15 | diff --git a/src/main.cpp b/src/main.cpp |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 16 | index d1077fe..d717cd4 100644 |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 17 | --- a/src/main.cpp |
| 18 | +++ b/src/main.cpp |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 19 | @@ -202,6 +202,11 @@ main(int argc, char *argv[]) |
Andrew Geissler | 8fc454f | 2020-12-11 16:27:59 -0600 | [diff] [blame] | 20 | Options::size = std::pair<int,int>(800, 600); |
| 21 | } |
| 22 | |
| 23 | +#if GLMARK2_USE_DISPMANX |
| 24 | + /* dispmanx can only run fullscreen */ |
| 25 | + Options::size = std::pair<int,int>(-1, -1); |
| 26 | +#endif |
| 27 | + |
| 28 | // Create the canvas |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 29 | #if GLMARK2_USE_EGL |
| 30 | GLStateEGL gl_state; |
| 31 | -- |
| 32 | 2.25.1 |