Skip to content

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