mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
ui: add qemu_egl_has_dmabuf helper
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210204105232.834642-15-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5983fdf1dc
commit
0df5c72b3b
2 changed files with 11 additions and 0 deletions
|
@ -441,6 +441,16 @@ int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy, DisplayGLMode mode)
|
|||
#endif
|
||||
}
|
||||
|
||||
bool qemu_egl_has_dmabuf(void)
|
||||
{
|
||||
if (qemu_egl_display == EGL_NO_DISPLAY) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return epoxy_has_egl_extension(qemu_egl_display,
|
||||
"EGL_EXT_image_dma_buf_import");
|
||||
}
|
||||
|
||||
EGLContext qemu_egl_init_ctx(void)
|
||||
{
|
||||
static const EGLint ctx_att_core[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue