Add support for non-Mesa ARM platforms (mali, pvr)
Some existing assumptions don't necessarily hold true for non-Mesa ARM platforms so loosen them.
Merge request reports
Activity
201 201 d->egl_display = eglGetDisplay((EGLNativeDisplayType)d->gbm_dev); 202 202 } 203 203 204 /* Fallback to using the default display. */ 205 if (!d->egl_display) { 206 d->egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY); 207 } 208 The function works like this currently
if (surfaceless) must_use_surfaceless_platform; else if (fd >= 0) must_use_gbm_platform; else if (egl_rendernode_open() >= 0) must_use_gbm_platform; else fail;
It is totally unclear how fd and surfaceless should be interpreted, regarding the precedence and if fallback is allowed. Can you also clarify how the two parameters work and interact, in the code or in the commit message, after this change?
added 1 commit
- 240cbb9a - egl: Fall back to using default display and clean up fd ownership.
Thanks.
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Unless an explicit fd is passed in,
virgl_egl_init
should be able to pick whatever platform it likes, and surfaceless is probably the top choice. I find it strange that the function needs a bool to enable surfaceless, but that is a different commit.@davidriley could you add the R-b tags, and enable the CI so I can merge this via the merge-when-ci-passes button?
added is-reviewed label
It seems like you didn't enable the CI yet (on your fork).
Edited by Gert Wollnyadded 4 commits
Toggle commit list