3732
|
|
|
Alan Griffiths |
7 years ago
|
|
|
3731
|
|
|
Alan Griffiths |
7 years ago
|
|
|
3730
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3729
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3728
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3727
|
|
|
Kevin DuBois |
7 years ago
|
|
|
3726
|
|
|
Alexandros Frantzis |
7 years ago
|
|
|
3725
|
|
|
Kevin DuBois |
7 years ago
|
|
|
3724
|
|
|
Christopher James Ha... |
7 years ago
|
|
|
3723
|
|
|
Alexandros Frantzis |
7 years ago
|
|
|
3722
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3721
|
|
|
Kevin DuBois |
7 years ago
|
|
|
3720
|
|
|
Alan Griffiths |
7 years ago
|
|
|
3719
|
|
|
Kevin DuBois |
7 years ago
|
|
|
3718
|
|
|
Andreas Pokorny |
7 years ago
|
|
|
3717
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3716
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3715
|
|
add a private helper that the nested server can use to glean the parameters to use for eglCreateImage() so that MirBuffers can be uploaded as textures.
We have the current hole in the MirBufferStream and MirBuffer interfaces that uploading a buffer as a texture is difficult and platform dependent. (see below for platform considerations).
We have the future hole in the define-our-own-platform (a.k.a. MirRenderSurface) that we're not sure how we'll support eglCreateImage for our platform. (which just needs some more discussion)
The nested server needs a way to upload a MirBuffer now for the nested-passthrough work. This MP provides the functionality now via this private helper function (so the nested platform doesn't have to know the android/mesa/eglstreams details). Once the MirRenderSurface transition is complete, we can just use the standard way to do this for the "mir egl platform", and remove this helper code.
Platform considerations: On android we should be using ANDROID_image_native_buffer, and we have to get the actual ANativeBuffer pointer, so that refcounting on that object can work correctly. Some android platforms might work with KHR_image_pixmap, but this is tagged as legacy in the android code base (https://android.googlesource.com/platform/frameworks/native/+/master/include/ui/ANativeObjectBase.h#28), so I wouldn't expect it to work. On mesa, we can use KHR_image_pixmap or EXT_image_dma_buf_import, with the latter being more flexible. These need the gbm_bo or the prime_fd, and we have to bind MIR_SERVER_EGL_OPENGL_API to use them.
Approved by mir-ci-bot, Brandon Schaefer, Alexandros Frantzis.
|
Kevin DuBois |
7 years ago
|
|
|
3714
|
|
|
Daniel van Vugt |
7 years ago
|
|
|
3713
|
|
|
Daniel van Vugt |
7 years ago
|
|
|