This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2HG: 【OpenGL 】 QT 5.11 OpenGL rendering not show up

Part Number: TDA2HG

Hi:

  we'are migrate our AVM from visionSDK 3.05 to VisionSDK 3.08

On visionSDK 3.05 with QT 5.6, the AVM is ok:

on visionSDK3.08 with QT 5.11

It looks that on visonSDK3.08, the OpenGL suface is ovewrite by QT window surface,

please help check the log at attachment.

Thanks.

avm-v0308.log
07-20-20 43:14.614 root@dra7xx-evm:/opt/ecarx/apps/avm# 
07-20-20 43:14.615 root@dra7xx-evm:/opt/ecarx/apps/avm# 
07-20-20 43:16.015 root@dra7xx-evm:/opt/ecarx/apps/avm# 
07-20-20 43:17.027 root@dra7xx-evm:/opt/ecarx/apps/avm# ./avm_qt_app avm
07-20-20 43:17.114 ##########################run model is 2 
07-20-20 43:17.115 
07-20-20 43:17.420 [AVMS][9440891]log_init. server log_to_console=1, log_to_shm=1
07-20-20 43:17.522 [AVMS][9440989]AvmGpu::avm_gpu_load_db_light. [1]=2004, [2]=2004, [3]=1927, [4]=1927
07-20-20 43:17.525 [AVMS][9441019]AvmGpu::avm_gpu_load_db_light. act_num [1]=233, [2]=233, [3]=174, [4]=174
07-20-20 43:17.562 [AVMS][9441068]avm_gpu_load_db_fisheye. f: offset(-5.000000)
07-20-20 43:17.563 [AVMS][9441068]avm_gpu_load_db_fisheye. r: offset(-5.000000)
07-20-20 43:17.563 [AVMS][9441069]avm_gpu_load_db_fisheye. fc: offset(-5.000000)
07-20-20 43:17.564 [AVMS][9441070]avm_gpu_load_db_fisheye. fc: offset(0.000000)
07-20-20 43:17.568 [AVMS][9441071]avm_gpu_load_db_fisheye. fc: offset(0.000000)
07-20-20 43:17.605 [AVMS][9441071]avm_gpu_load_db_fisheye. rc: offset(-5.000000)
07-20-20 43:17.605 [AVMS][9441072]AvmGpu::avm_gpu_init_avm_table_data. cost 166 ms, struct num=130776
07-20-20 43:17.606 [AVMS][9441078]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 5 ms
07-20-20 43:17.607 [AVMS][9441100]avm_gpu_load_db_fisheye. f: offset(-5.000000)
07-20-20 43:17.607 [AVMS][9441100]avm_gpu_load_db_fisheye. r: offset(-5.000000)
07-20-20 43:17.608 [AVMS][9441101]avm_gpu_load_db_fisheye. fc: offset(-5.000000)
07-20-20 43:17.609 [AVMS][9441102]avm_gpu_load_db_fisheye. fc: offset(0.000000)
07-20-20 43:17.609 [AVMS][9441102]avm_gpu_load_db_fisheye. fc: offset(0.000000)
07-20-20 43:17.610 [AVMS][9441103]avm_gpu_load_db_fisheye. rc: offset(-5.000000)
07-20-20 43:17.611 [AVMS][9441103]AvmGpu::avm_gpu_init_avm_table_data. cost 4 ms, struct num=130776
07-20-20 43:17.613 [AVMS][9441107]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 2 ms
07-20-20 43:18.396 Using Wayland-EGL
07-20-20 43:18.399 wlpvr: PVR Services Initialised
07-20-20 43:18.517 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:18.517 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:18.518 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:18.519 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:18.748 max texture 8 
07-20-20 43:18.748 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3]
07-20-20 43:18.748 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1]
07-20-20 43:18.749 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0]
07-20-20 43:18.749 [AVMS][9442221]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2]
07-20-20 43:18.749 [AVMS][9442221]SummWidget::initializeGL. avm_gpu_texture_init ok
07-20-20 43:18.750 [AVMS][9442222]SummWidget::initializeGL. avm_gpu_postion_init ok
07-20-20 43:18.750 [AVMS][9442222]SummWidget::initializeGL. avm_gpu_set_view ok
07-20-20 43:18.750 [AVMS][9442247]SummWidget::initializeGL. gen_model_vbo 
07-20-20 43:18.750 QOpenGLContext::currentContext()->nativeHandle() is NULL 
07-20-20 43:18.752 get EGL display 
07-20-20 43:18.793 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:18.793 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:18.793 [AVMS][9442291]SummWidget::initializeGL. init success
07-20-20 43:18.795 SummWidget::paintGL 
07-20-20 43:18.844 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:18.846 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:19.038 max texture 8 
07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3]
07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1]
07-20-20 43:19.038 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0]
07-20-20 43:19.039 [AVMS][9442510]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2]
07-20-20 43:19.080 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:19.081 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:19.121 [AVMS][9442592]SurroundWidget::initializeGL. init success
07-20-20 43:19.122 SurroundWidget::paintGL 
07-20-20 43:19.122 Using the 'xdg-shell-v6' shell integration
07-20-20 43:19.123 p avm is 3b94a0
07-20-20 43:19.163 SummWidget::paintGL 
07-20-20 43:19.163 SurroundWidget::paintGL 
07-20-20 43:19.164 Non-blocking swap buffers not supported. Subsurface rendering can be affected.
07-20-20 43:19.165 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:19.201 wlpvr: Creating Wayland Client surface 2 buffers for process pid=11357!
07-20-20 43:20.088 [AVMS][9443602]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. min_x=-1.07, min_y=0.00, min_z=-2.29
07-20-20 43:20.091 [AVMS][9443602]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. max_x=1.07, max_y=1.67, max_z=2.29
07-20-20 43:20.133 [AVMS][9443612]ModelDraw::pre_load_model_data. file avm_qt_app_res/SX12_6_22/SX12.3DS cost 1320 ms
07-20-20 43:20.134 [AVMS][9443613]ModelDraw::pre_load_car_data. ini file, det=-1.40
07-20-20 43:20.134 [AVMS][9443613]ModelDraw::pre_load_car_data. ini file, det=-1.40
07-20-20 43:20.136 [AVMS][9443644]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844
07-20-20 43:20.180 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/BULE.PNG
07-20-20 43:20.180 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/C00.PNG
07-20-20 43:20.181 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/GRAY.PNG
07-20-20 43:20.181 [AVMS][9443651]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/GREEN.PNG
07-20-20 43:20.181 [AVMS][9443658]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844
07-20-20 43:20.182 ### Display [0]: CRTC = 31, Connector = 29, format = 0x34325258
07-20-20 43:20.182         Mode chosen [1920x720] : Clock => 85614, Vertical refresh => 60, Type => 72
07-20-20 43:20.182         Horizontal => 1920, 1939, 1943, 1952, 0
07-20-20 43:20.183         Vertical => 720, 727, 728, 731, 0
07-20-20 43:20.184 ### Primary display => ConnectorId = 29, Resolution = 1920x720
07-20-20 43:20.246 Using display 0x3 with EGL version 1.4
07-20-20 43:20.247 EGL Version "1.4 build 1.17@4948957"
07-20-20 43:20.250 EGL Vendor "Imagination Technologies"
07-20-20 43:20.263 EGL Extensions "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_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"
07-20-20 43:20.271 RGBA2YUVSurface wid 64 height 64 
07-20-20 43:20.272 data addr 0xaed6c7c8 
07-20-20 43:20.272 dma fd 0x18 
07-20-20 43:20.272 width  64  
07-20-20 43:20.272 height  64 
07-20-20 43:20.272 EGLWindowDisplay 0x3 
07-20-20 43:20.272 outTexIndex 0x111710 
07-20-20 43:20.272 outTex 0x111710 
07-20-20 43:20.273 Create YUV surface ok :width 64 height 64 
07-20-20 43:20.273 No memory 
07-20-20 43:20.273 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/RED.PNG
07-20-20 43:20.273 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/SILVER.PNG
07-20-20 43:20.274 [AVMS][9443774]ModelLoader::postLoadGLTexture. Couldn't load Image: avm_qt_app_res/SX12_6_22/WHITE.PNG
07-20-20 43:20.274 FrontTextureData.data() data addr 0xa8dbc008 
07-20-20 43:20.274 data addr 0xa8dbc008 
07-20-20 43:20.274 FrontTextureData.data() data addr 0xa8dbc008 
07-20-20 43:20.274 data addr 0xa8dbc008 
07-20-20 43:20.274 dma fd 0x19 
07-20-20 43:20.275 width  1280  
07-20-20 43:20.275 height  720 
07-20-20 43:20.275 EGLWindowDisplay 0x3 
07-20-20 43:20.275 dma fd 0x1a 
07-20-20 43:20.275 width  1280  
07-20-20 43:20.275 height  720 
07-20-20 43:20.276 EGLWindowDisplay 0x3 
07-20-20 43:20.276 outTexIndex 0x122881 
07-20-20 43:20.276 outTex 0x122881 
07-20-20 43:20.276 data addr 0xa8c6a008 
07-20-20 43:20.276 dma fd 0x1b 
07-20-20 43:20.277 width  1280  
07-20-20 43:20.277 height  720 
07-20-20 43:20.277 EGLWindowDisplay 0x3 
07-20-20 43:20.277 outTexIndex 0x1339f2 
07-20-20 43:20.277 outTexIndex 0x144b63 
07-20-20 43:20.282 outTex 0x1339f2 
07-20-20 43:20.282 data addr 0xa8c6a008 
07-20-20 43:20.283 dma fd 0x1b 
07-20-20 43:20.283 outTex 0x144b63 
07-20-20 43:20.283 data addr 0xa8b18008 
07-20-20 43:20.283 width  1280  
07-20-20 43:20.283 height  720 
07-20-20 43:20.283 EGLWindowDisplay 0x3 
07-20-20 43:20.284 dma fd 0x1c 
07-20-20 43:20.284 width  1280  
07-20-20 43:20.284 outTexIndex 0x155cd4 
07-20-20 43:20.284 height  720 
07-20-20 43:20.285 EGLWindowDisplay 0x3 
07-20-20 43:20.305 outTex 0x155cd4 
07-20-20 43:20.306 data addr 0xa8b18008 
07-20-20 43:20.306 dma fd 0x1c 
07-20-20 43:20.306 width  1280  
07-20-20 43:20.307 height  720 
07-20-20 43:20.307 EGLWindowDisplay 0x3 
07-20-20 43:20.307 outTexIndex 0x166e45 
07-20-20 43:20.307 outTex 0x166e45 
07-20-20 43:20.308 data addr 0xa89c6008 
07-20-20 43:20.308 outTexIndex 0x177fb6 
07-20-20 43:20.308 outTex 0x177fb6 
07-20-20 43:20.308 data addr 0xa89c6008 
07-20-20 43:20.309 dma fd 0x1d 
07-20-20 43:20.309 width  1280  
07-20-20 43:20.309 height  720 
07-20-20 43:20.309 EGLWindowDisplay 0x3 
07-20-20 43:20.310 dma fd 0x1e 
07-20-20 43:20.310 width  1280  
07-20-20 43:20.310 height  720 
07-20-20 43:20.310 EGLWindowDisplay 0x3 
07-20-20 43:20.310 outTexIndex 0x189127 
07-20-20 43:20.311 outTex 0x189127 
07-20-20 43:20.311 outTexIndex 0x19a298 
07-20-20 43:20.313 outTex 0x19a298 
07-20-20 43:20.602 [AVMS][9444116]SyncVideoGetter::fetchSyncVideoProcess. thread. start to wait synced video
07-20-20 43:20.657 SurroundWidget::paintGL 
07-20-20 43:20.657 SummWidget::paintGL 
07-20-20 43:20.658 SurroundWidget::paintGL 
07-20-20 43:20.699 SummWidget::paintGL 
07-20-20 43:20.699 SurroundWidget::paintGL 
07-20-20 43:20.700 SummWidget::paintGL 
07-20-20 43:20.742 SurroundWidget::paintGL 
07-20-20 43:20.743 SummWidget::paintGL 
07-20-20 43:20.784 SurroundWidget::paintGL 
07-20-20 43:20.785 SummWidget::paintGL 
07-20-20 43:20.820 SurroundWidget::paintGL 
07-20-20 43:20.864 SummWidget::paintGL 
07-20-20 43:20.867 SurroundWidget::paintGL 
07-20-20 43:20.901 SummWidget::paintGL 
07-20-20 43:20.946 SurroundWidget::paintGL 
07-20-20 43:20.947 SummWidget::paintGL 
07-20-20 43:20.987 SurroundWidget::paintGL 
07-20-20 43:20.989 SummWidget::paintGL 
07-20-20 43:21.030 SurroundWidget::paintGL 
07-20-20 43:21.085 SummWidget::paintGL 
07-20-20 43:21.094 SurroundWidget::paintGL 
07-20-20 43:21.096 SummWidget::paintGL 
07-20-20 43:21.114 SurroundWidget::paintGL 
07-20-20 43:21.115 SummWidget::paintGL 
07-20-20 43:21.152 SurroundWidget::paintGL 
07-20-20 43:21.154 SummWidget::paintGL 
07-20-20 43:21.194 SurroundWidget::paintGL 
07-20-20 43:21.195 SummWidget::paintGL 
07-20-20 43:21.236 SurroundWidget::paintGL 
07-20-20 43:21.237 SummWidget::paintGL 
07-20-20 43:21.274 SurroundWidget::paintGL 
07-20-20 43:21.314 SummWidget::paintGL 
07-20-20 43:21.358 SurroundWidget::paintGL 
07-20-20 43:21.359 SummWidget::paintGL 
07-20-20 43:21.398 SurroundWidget::paintGL 
07-20-20 43:21.399 SummWidget::paintGL 
07-20-20 43:21.439 SurroundWidget::paintGL 
07-20-20 43:21.440 SummWidget::paintGL 
07-20-20 43:21.540 SurroundWidget::paintGL 
07-20-20 43:21.540 SummWidget::paintGL 
07-20-20 43:21.540 SurroundWidget::paintGL 
07-20-20 43:21.541 SummWidget::paintGL 
07-20-20 43:21.640 SurroundWidget::paintGL 
07-20-20 43:21.640 SummWidget::paintGL 
07-20-20 43:21.641 SurroundWidget::paintGL 
07-20-20 43:21.641 SummWidget::paintGL 
07-20-20 43:21.642 SurroundWidget::paintGL 
07-20-20 43:21.742 SummWidget::paintGL 
07-20-20 43:21.742 SurroundWidget::paintGL 
07-20-20 43:21.742 SummWidget::paintGL 
07-20-20 43:21.743 SurroundWidget::paintGL 
07-20-20 43:21.744 SummWidget::paintGL 
07-20-20 43:21.841 SurroundWidget::paintGL 
07-20-20 43:21.842 SummWidget::paintGL 
07-20-20 43:21.842 SurroundWidget::paintGL 
07-20-20 43:21.843 SummWidget::paintGL 
07-20-20 43:21.944 SurroundWidget::paintGL 
07-20-20 43:21.945 SummWidget::paintGL 
07-20-20 43:21.945 SurroundWidget::paintGL 
07-20-20 43:21.948 SummWidget::paintGL 
07-20-20 43:22.140 SurroundWidget::paintGL 
07-20-20 43:22.140 SummWidget::paintGL 
07-20-20 43:22.140 SurroundWidget::paintGL 
07-20-20 43:22.140 SummWidget::paintGL 
07-20-20 43:22.140 SurroundWidget::paintGL 
07-20-20 43:22.140 SummWidget::paintGL 
07-20-20 43:22.141 SurroundWidget::paintGL 
07-20-20 43:22.141 SummWidget::paintGL 
07-20-20 43:22.142 SurroundWidget::paintGL 
07-20-20 43:22.240 SummWidget::paintGL 
07-20-20 43:22.241 SurroundWidget::paintGL 
07-20-20 43:22.241 SummWidget::paintGL 
07-20-20 43:22.241 SurroundWidget::paintGL 
07-20-20 43:22.242 SummWidget::paintGL 
07-20-20 43:22.340 SurroundWidget::paintGL 
07-20-20 43:22.340 SummWidget::paintGL 
07-20-20 43:22.340 SurroundWidget::paintGL 
07-20-20 43:22.342 SummWidget::paintGL 
07-20-20 43:22.439 SurroundWidget::paintGL 
07-20-20 43:22.440 SummWidget::paintGL 
07-20-20 43:22.440 SurroundWidget::paintGL 
07-20-20 43:22.441 SummWidget::paintGL 
07-20-20 43:22.611 ^C

  • Dear TI expert.

    The background is customer is doing migration from VSDK 0305 to VSDK0308.

    they found the regions in red line can display, other can not display.

    the difference is that customer QT application use GPU(opengl) to generate those regions that can not display.

    would you please help guide how to dump GPU input buffer and GPU output buffer to do further check?

    Thanks a lot!

    yong 

  • Hello,

    Can you please provide us with a log of working vs non-working scenarios?

    You can read the gpu output buffer by calling glReadPixels to check if the problem is with rendering or with displaying. Can you try this out?

    Regards

    Hemant

  • Hi Hemant:

     see the attachment for AVM wokring scene

    avm-working.log
    [BEGIN] 2020/7/28 9:54:37
    root@dra7xx-evm:/opt/ecarx/apps/avm# ./avm_qt_app avm
    ##########################run model is 2 
    
    No such plugin for spec  "Auto"
    [AVMS][175776]log_init. server log_to_console=1, log_to_shm=1
    [AVMS][175874]AvmGpu::avm_gpu_load_db_light. [1]=2004, [2]=2004, [3]=1927, [4]=1927
    [AVMS][175904]AvmGpu::avm_gpu_load_db_light. act_num [1]=233, [2]=233, [3]=174, [4]=174
    [AVMS][175930]avm_gpu_load_db_fisheye. f: offset(-5.000000)
    [AVMS][175931]avm_gpu_load_db_fisheye. r: offset(-5.000000)
    [AVMS][175932]avm_gpu_load_db_fisheye. fc: offset(-5.000000)
    [AVMS][175932]avm_gpu_load_db_fisheye. fc: offset(0.000000)
    [AVMS][175933]avm_gpu_load_db_fisheye. fc: offset(0.000000)
    [AVMS][175934]avm_gpu_load_db_fisheye. rc: offset(-5.000000)
    [AVMS][175934]AvmGpu::avm_gpu_init_avm_table_data. cost 140 ms, struct num=130776
    [AVMS][175938]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 2 ms
    [AVMS][175951]avm_gpu_load_db_fisheye. f: offset(-5.000000)
    [AVMS][175952]avm_gpu_load_db_fisheye. r: offset(-5.000000)
    [AVMS][175953]avm_gpu_load_db_fisheye. fc: offset(-5.000000)
    [AVMS][175953]avm_gpu_load_db_fisheye. fc: offset(0.000000)
    [AVMS][175954]avm_gpu_load_db_fisheye. fc: offset(0.000000)
    [AVMS][175955]avm_gpu_load_db_fisheye. rc: offset(-5.000000)
    [AVMS][175955]AvmGpu::avm_gpu_init_avm_table_data. cost 4 ms, struct num=130776
    [AVMS][175958]OverlayDraw::pre_load_radar_data. file 'avm_qt_app_res/data/radar_block.db' cost 2 ms
    Using Wayland-EGL
    wlpvr: PVR Services Initialised
    max texture 8 
    [AVMS][176386]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3]
    [AVMS][176387]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1]
    [AVMS][176387]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0]
    [AVMS][176387]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2]
    [AVMS][176387]SummWidget::initializeGL. avm_gpu_texture_init ok
    [AVMS][176387]SummWidget::initializeGL. avm_gpu_postion_init ok
    [AVMS][176387]SummWidget::initializeGL. avm_gpu_set_view ok
    [AVMS][176413]SummWidget::initializeGL. gen_model_vbo 
    QOpenGLContext::currentContext()->nativeHandle() is NULL 
    get EGL display 
    [AVMS][176451]SummWidget::initializeGL. init success
    max texture 8 
    [AVMS][176685]AvmGpu::avm_gpu_texture_init. tex[0] - uniform[3]
    [AVMS][176685]AvmGpu::avm_gpu_texture_init. tex[1] - uniform[1]
    [AVMS][176685]AvmGpu::avm_gpu_texture_init. tex[2] - uniform[0]
    [AVMS][176686]AvmGpu::avm_gpu_texture_init. tex[3] - uniform[2]
    [AVMS][176751]SurroundWidget::initializeGL. init success
    p avm is b151d8
    [AVMS][177694]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. min_x=-1.07, min_y=0.00, min_z=-2.29
    [AVMS][177694]ModelLoader::Load 'avm_qt_app_res/SX12_6_22/SX12.3DS'. max_x=1.07, max_y=1.67, max_z=2.29
    [AVMS][177710]ModelDraw::pre_load_model_data. file avm_qt_app_res/SX12_6_22/SX12.3DS cost 1258 ms
    [AVMS][177710]ModelDraw::pre_load_car_data. ini file, det=-1.40
    [AVMS][177718]ModelDraw::pre_load_car_data. ini file, det=-1.40
    [AVMS][177748]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844
    [AVMS][177780]ModelDraw::load_model. vert_size=386532, normal_size=386532, uv_size=1, idx_size=128844
    ### Display [0]: CRTC = 26, Connector = 24, format = 0x34325258
    	Mode chosen [1920x720] : Clock => 85614, Vertical refresh => 60, Type => 72
    	Horizontal => 1920, 1939, 1943, 1952, 0
    	Vertical => 720, 727, 728, 731, 0
    ### Primary display => ConnectorId = 24, Resolution = 1920x720
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    Using display 0x3 with EGL version 1.4
    EGL Version "1.4 build 1.14@3699939 (MAIN)"
    EGL Vendor "Imagination Technologies"
    R_create_context EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import"
    dma fd 0x16 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x111710 
    outTex 0x111710 
    avm_qt_app_res/SX12_6_22/C00.YUV open failed.
    dma fd 0x17 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x122881 
    outTex 0x122881 
    dma fd 0x18 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x1339f2 
    outTex 0x1339f2 
    dma fd 0x19 
    width  64  
    height  64 
    EGLWindowDisplay 0x3 
    outTexIndex 0x144b63 
    outTex 0x144b63 
    dma fd 0x1a 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x155cd4 
    outTex 0x155cd4 
    dma fd 0x1b 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x166e45 
    outTex 0x166e45 
    dma fd 0x1c 
    width  1024  
    height  1024 
    EGLWindowDisplay 0x3 
    outTexIndex 0x177fb6 
    outTex 0x177fb6 
    dma fd 0x1d 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    dma fd 0x1e 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    outTexIndex 0x189127 
    outTex 0x189127 
    outTexIndex 0x19a298 
    outTex 0x19a298 
    dma fd 0x1f 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    dma fd 0x20 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    outTexIndex 0x1ab409 
    outTex 0x1ab409 
    outTexIndex 0x1bc57a 
    outTex 0x1bc57a 
    dma fd 0x21 
    width  1280  
    height  720 
    dma fd 0x22 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    EGLWindowDisplay 0x3 
    outTexIndex 0x1cd6eb 
    outTex 0x1cd6eb 
    dma fd 0x23 
    width  1280  
    height  720 
    outTexIndex 0x1de85c 
    EGLWindowDisplay 0x3 
    outTex 0x1de85c 
    dma fd 0x23 
    width  1280  
    height  720 
    EGLWindowDisplay 0x3 
    outTexIndex 0x1ef9cd 
    outTex 0x1ef9cd 
    outTexIndex 0x200b3e 
    outTex 0x200b3e 
    [AVMS][178968]SyncVideoGetter::fetchSyncVideoProcess. thread. start to wait synced video
    [AVMS][181803]SurroundWidget::calc_fps. fps=6.94
    [AVMS][183998]SyncVideoGetter::statusCalc. fps=21.531101(intv=5000ms)
    [AVMS][186948]SurroundWidget::calc_fps. fps=11.67
    
    [END] 2020/7/28 9:54:55
    

  • Hi:

    the first 6 bytes is 78 19 ce bd ce bf  , others are all zero.
        int *pixel = (int*)malloc(sizeof(int)*1280*720);
              memset(pixel,0,sizeof(int)*1280*720);
              //int pixel[1440][2560];
             // glPixelStorei(GL_PACK_ALIGNMENT,1);
              //printf("---------1-------\n");
              glReadPixels(0, 0, 1280, 720,GL_RGBA, GL_UNSIGNED_BYTE,pixel );
              dump_picture("simple-egl",pixel,1280,720);
              free(pixel);

  • Hello,

    Thanks a lot.

    Can you please check if a non-qt application is working fine?

    Regards

    Hemant

  • Hi Hemant:

    1. raw opengl work like weston-simple-egl

    2. QT wrapper OpenGl works as well.(sample from QT offical)

    Only QT+raw OpenGL not work in QT 5.11 but work in QT 5.6

  • Hi Hemant:

    in visionSDK3.05 the it use Display 4 but in visionSDK3.08 it use Display 2 

    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    Using display 0x3 with EGL version 1.4
    EGL Version "1.4 build 1.14@3699939 (MAIN)"
    EGL Vendor "Imagination Technologies"

    and help?