Tool/software: Linux
Hi:
we are working on VisionSDK and now succeed to run the QT.
we have an surround view application based on QT, as you known that visionSDK don't support RGB rendering that
we should to create texture image by eglCreateImageKHR(), here we need to pass the EGLDisplay,
so we call
EGLNativeDisplayType gbm_allocator_get_native_display ()
{
if(fd == -1) {
fd = drmOpen("omapdrm", NULL);
}
if(fd > 0 && dev == NULL) {
dev = gbm_create_device(fd);
odev = omap_device_new(fd);
}
return (EGLNativeDisplayType)dev;
}
but got error
[AVMS][11455497]OverlayDraw::load_obj_file. max_x=1.72,max_y=3.43,max_z=0.00 [AVMS][11455497]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_single.obj' cost 24 ms loaded module : gbm_pvr.so found valid GBM backend : gbm_pvr.so PVR:(Error): [ 956-> 956] < gbm_pvr_create_device():645|ERROR> Failed to create DBM device: No such device [0, ] EGL: ERROR: eglCreateImageKHR failed !!! texture img create ok No decoration plugins available. Running with no decorations.
and also we try to reuse the EGLDisplay from the QT OpenGL, see 
seem a bug in QT which the EGLDisplay handler is NULL.
and the weston log is :
root@dra7xx-evm:/opt/vision_sdk# cat /var/log/weston.log
Date: 2018-09-17 UTC
[09:22:46.509] weston 1.9.0
http://wayland.freedesktop.org
Bug reports to: bugs.freedesktop.org/enter_bug.cgi
Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)
[09:22:46.510] OS: Linux, 4.4.84, #2 SMP PREEMPT Fri Apr 19 02:29:04 PDT 2019, armv7l
[09:22:46.517] Using config file '/etc//weston.ini'
[09:22:46.529] Loading module '/usr/lib/weston/drm-backend.so'
[09:22:46.553] Output repaint window is 7 ms maximum.
[09:22:46.553] initializing drm backend
[09:22:46.555] using /dev/dri/card0
[09:22:46.556] Loading module '/usr/lib/weston/gl-renderer.so'
loaded module : gbm_pvr.so
found valid GBM backend : gbm_pvr.so
[09:22:46.621] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
[09:22:46.632] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
[09:22:46.632] Retrieving EGL client extension string failed.
[09:22:46.633] warning: no input devices on entering Weston. Possible causes:
- no permissions to read /dev/input/event*
- seats misconfigured (Weston backend option 'seat', udev device property ID_SEAT)
[09:22:46.633] failed to create input devices
[09:22:46.663] EGL version: 1.4 build 1.14@3699939 (MAIN)
[09:22:46.664] EGL vendor: Imagination Technologies
[09:22:46.664] EGL client APIs: OpenGL_ES
[09:22:46.664] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
EGL_IMG_context_priority EGL_IMG_hibernate_process
EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
EGL_KHR_wait_sync EGL_KHR_create_context
EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
[09:22:46.664] GL version: OpenGL ES 2.0 build 1.14@3699939 (MAIN)
[09:22:46.664] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14@3699939 (MAIN)
[09:22:46.664] GL vendor: Imagination Technologies
[09:22:46.664] GL renderer: PowerVR SGX 544MP
[09:22:46.664] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
GL_OES_vertex_half_float GL_OES_texture_float
GL_OES_texture_half_float GL_OES_element_index_uint
GL_OES_mapbuffer GL_OES_fragment_precision_high
GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
GL_OES_EGL_image_external GL_OES_required_internalformat
GL_OES_depth_texture GL_OES_get_program_binary
GL_OES_packed_depth_stencil GL_OES_standard_derivatives
GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
GL_OES_surfaceless_context GL_EXT_discard_framebuffer
GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
GL_EXT_texture_rg GL_EXT_draw_buffers
GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
GL_IMG_texture_compression_pvrtc
GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
GL_IMG_program_binary GL_IMG_uniform_buffer_object
GL_IMG_multisampled_render_to_texture GL_KHR_debug
[09:22:46.664] GL ES 2 renderer features:
read-back format: RGBA
wl_shm sub-image to texture: no
EGL Wayland extension: yes
[09:22:46.664] Chosen EGL config details:
RGBA bits: 8 8 8 8
swap interval range: 1 - 1
[09:22:46.664] cursor buffers unavailable, using gl cursors
[09:22:46.664] Failed to initialize backlight
[09:22:46.664] Output Virtual-1, (connector 24, crtc 26)
mode 1280x720@60.0, preferred, current
[09:22:46.664] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
[09:22:46.666] Loading module '/usr/lib/weston/desktop-shell.so'
[09:22:46.669] launching '/usr/libexec/weston-desktop-shell'
[09:22:46.804] Warning: computed repaint delay is insane: -8734 msec
[09:33:10.433] queueing pageflip failed: Invalid argument
[09:56:50.917] queueing pageflip failed: Invalid argument
[12:33:34.385] queueing pageflip failed: Invalid argument