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

windowing: amlogic: set framebuffer to maximum size before initializing EGL #13391

Merged
merged 1 commit into from Jan 21, 2018

Conversation

codesnake
Copy link
Contributor

@codesnake codesnake commented Jan 18, 2018

Set framebuffer to maximum size before initializing EGL on Amlogic-based devices.

Description

If framebuffer size is less than 1920x1080 (for example 1280x720) before
initialization of EGL, an attempt to set resolution in Kodi to 1080p or
higher will result in EGL_BAD_ALLOC error during a call to eglCreateContext().
This PR fixes the issue by setting framebuffer to maximum possible size
before initializing EGL.

Motivation and Context

Fixes Kodi crash if display resolution is set to 1080p or higher in settings, but set to less than 1080p by system before Kodi starts.

How Has This Been Tested?

Tested on WeTek Play 2 (Amlogic S905) with LibreELEC by setting default resolution to 720p in uboot.

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the Code guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the CONTRIBUTING document
  • I have added tests to cover my change
  • All new and existing tests passed

…ng EGL

If framebuffer size is less than 1920x1080 (for example 1280x720) before
initialization of EGL, an attempt to set resolution in Kodi to 1080p or
higher will result in EGL_BAD_ALLOC error during a call to eglCreateContext().
This commit fixes the issue by setting framebuffer to maximum possible size
before initializing EGL.
@peak3d peak3d merged commit 6b3552e into xbmc:master Jan 21, 2018
@Rechi Rechi added Type: Fix non-breaking change which fixes an issue v18 Leia Platform: AMLogic labels Jan 21, 2018
@Rechi Rechi added this to the L 18.0-alpha1 milestone Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: AMLogic Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants