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

GL Offscreen Rendering Support #435

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ardera
Copy link
Owner

@ardera ardera commented Jul 15, 2024

  • add offscreen (MESA_platform_surfaceless) rendering surface

  • use that in case there's no hardware GPU present

  • refactor egl config selection

  • necessary for creating complete offscreen surfaces (pbuffer surfaces)

  • offscreen rendering is useful for CI tests

@ardera ardera force-pushed the feature/gl-software-rendering branch from d06e855 to 093739e Compare July 15, 2024 15:57
two helper functions for choosing EGL configs:
- one for choosing a config for GBM window surfaces (that match the exact GBM pixel format)
- one for choosing a config for pbuffer surfaces, which have no EGL_NATIVE_VISUAL_ID, so you can only try to match the r,g,b,a bit size.

require `EGL_KHR_no_config_context`, the workaround if it's not supported was untested anyways, and it doesn't really work with offscreen render surfaces.
@ardera ardera force-pushed the feature/gl-software-rendering branch from 093739e to 4b24124 Compare July 15, 2024 15:59
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