-
Notifications
You must be signed in to change notification settings - Fork 104
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
platforms/renderer-generic-egl: Support CPUAddressableDisplayProvider #3095
Conversation
(Don't yet know if it actually fixes that; putting up a PR so that I can get a snap to test 😉 ) |
Hm, no, doesn't fix it, because Time to pull out |
The following makes us not fail right away: auto dpy = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, EGL_DEFAULT_DISPLAY, NULL); But you'll start getting some funny errors like: Maybe you know something I don't know there :) This post had some good info Update if (eglChooseConfig(dpy, config_attr, &cfg, 1, &num_configs) != EGL_TRUE)
{
BOOST_THROW_EXCEPTION((mg::egl_error("Failed to find any matching EGL config")));
}
auto ctx = eglCreateContext(dpy, EGL_NO_CONFIG_KHR, share_context.value_or(EGL_NO_CONTEXT), context_attr);
if (ctx == EGL_NO_CONTEXT)
{
BOOST_THROW_EXCEPTION(mg::egl_error("Failed to create EGL context"));
} @RAOF Kwin checks if the |
b126c08
to
679cca8
Compare
Codecov Report
@@ Coverage Diff @@
## main #3095 +/- ##
==========================================
- Coverage 78.43% 78.31% -0.12%
==========================================
Files 1073 1074 +1
Lines 74717 74779 +62
==========================================
- Hits 58602 58564 -38
- Misses 16115 16215 +100
... and 29 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…ported” function. Because we have this code *everywhere*.
… them Also, use the `EGL_EXT_platform_base` extension rather than implicitly relying upon EGL 1.5 entry points. There's at least one EGL driver we want to support that doesn't support EGL 1.5.
There we go, that should be good to go. I just:
|
Dunno why this links locally fine, but we do indeed need to resolve those!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good approach, but there are a few bits to tidy up
So this isn't yet stable: $ MIR_SERVER_PLATFORM_DISPLAY_LIBS=mir:virtual MIR_SERVER_PLATFORM_RENDERING_LIBS=mir:egl-generic MIR_SERVER_VIRTUAL_OUTPUT=1280x1024 ./bin/mir_performance_tests I'm getting this on the CompositorPerformance test:
And this, once…
Neither are a blocker, FWIW. |
This is because we don't get any output from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neither are a blocker, FWIW.
I've confirmed both on main, so good with me!
But now I do:
Was I mad then? Or am I mad now? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
…r-from-virtual-platform [mir:virtual] drop GenericEGLDisplayProvider
Fixes: #3092