Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Harsha-Vardhan-Bojja
Copy link

[Problem]
The glmark2-es2-drm binary always used the maximum display resolution, ignoring the user-specified -s <width>x<height>. This caused benchmarks to run at fullscreen/highest resolution, distorting performance results.

[Solution]
Adjusted the DRM backend to select the closest supported mode based on the requested size. If no exact match exists, it picks the nearest available resolution by pixel area. Also updated resize_no_viewport() to recreate the window if resolution or fullscreen state doesn't match the request.

[Platform/device]
AMD Ryzen with Radeon Vega 8 Graphics (raven)
DRM 3.57, Mesa 23.2.1, Kernel 6.8.0-52-generic

[Test/verification]
Command: glmark2-es2-drm -s 800x600 -b terrain

  • Before: Surface Size = 1920x1080 fullscreen, Score: 36 FPS
  • After: Surface Size = 800x600 fullscreen, Score: 102 FPS

[Problem]
The `glmark2-es2-drm` binary always used the maximum display resolution,
ignoring the user-specified `-s <width>x<height>`. This caused benchmarks
to run at fullscreen/highest resolution, distorting performance results.

[Solution]
Adjusted the DRM backend to select the closest supported mode based on the
requested size. If no exact match exists, it picks the nearest available
resolution by pixel area. Also updated `resize_no_viewport()` to recreate
the window if resolution or fullscreen state doesn't match the request.

[Platform/device]
AMD Ryzen with Radeon Vega 8 Graphics (raven)
DRM 3.57, Mesa 23.2.1, Kernel 6.8.0-52-generic

[Test/verification]
Command: `glmark2-es2-drm -s 800x600 -b terrain`

- Before: Surface Size = 1920x1080 fullscreen, Score: 36 FPS
- After:  Surface Size = 800x600 fullscreen, Score: 102 FPS

Signed-off-by: Harsha-Vardhan-Bojja <[email protected]>
@Harsha-Vardhan-Bojja
Copy link
Author

Hello, @afrantzis pls review it.

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