Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79388

OpenGL ES 3 with Weston on X11 problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.14
    • Fix Version/s: None
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Environment:
      Debian 10 (Buster) AMD64
    • Platform/s:
      Linux/Wayland

      Description

      Hello,

      I've built Qt 5.14 with these options:

      ./configure -opensource -nomake examples -nomake tests -confirm-license -opengl es2 -opengles3 -prefix ~/test/lib
      

      When running the hellogles3 example, this works as expected on X11. When starting Weston on X11 and running the example with Wayland, I get the following:

      $ ./hellogles3 -platform wayland
      Requesting 3.0 context
      QOpenGLShaderProgram: could not create shader program
      QOpenGLShader: could not create shader
      Shader Program link failed.
      ""
      

      Is that expected? And if so, how can I adjust my setup for OpenGL ES on Wayland prior to the availabilty of the target hardware?

      This is the Weston output:

      [09:26:31.783] weston 5.0.0
                     https://wayland.freedesktop.org
                     Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                     Build: unknown (not built from git or tarball)
      [09:26:31.783] Command line: weston
      [09:26:31.783] OS: Linux, 4.19.0-6-amd64, #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20), x86_64
      [09:26:31.783] Starting with no config file.
      [09:26:31.784] Output repaint window is 7 ms maximum.
      [09:26:31.784] Loading module '/usr/lib/x86_64-linux-gnu/libweston-5/x11-backend.so'
      [09:26:31.791] Loading module '/usr/lib/x86_64-linux-gnu/libweston-5/gl-renderer.so'
      [09:26:31.792] EGL client extensions: EGL_EXT_device_base
                     EGL_EXT_device_enumeration EGL_EXT_device_query
                     EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
                     EGL_EXT_client_extensions EGL_KHR_debug
                     EGL_EXT_platform_wayland EGL_EXT_platform_x11
                     EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
      libEGL warning: DRI2: failed to authenticate
      [09:26:31.822] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
      [09:26:31.822] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
      [09:26:31.822] warning: Disabling render GPU timeline due to missing EGL_ANDROID_native_fence_sync extension
      [09:26:31.822] EGL_KHR_surfaceless_context available
      [09:26:31.829] EGL version: 1.4
      [09:26:31.829] EGL vendor: Mesa Project
      [09:26:31.829] EGL client APIs: OpenGL OpenGL_ES 
      [09:26:31.829] EGL extensions: EGL_KHR_cl_event2 EGL_KHR_config_attribs
                     EGL_KHR_context_flush_control EGL_KHR_create_context
                     EGL_KHR_create_context_no_error EGL_KHR_fence_sync
                     EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
                     EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
                     EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
                     EGL_KHR_image_base EGL_KHR_no_config_context
                     EGL_KHR_reusable_sync EGL_KHR_surfaceless_context
                     EGL_EXT_pixel_format_float EGL_KHR_wait_sync
                     EGL_MESA_configless_context EGL_MESA_drm_image
      [09:26:31.829] GL version: OpenGL ES 3.0 Mesa 18.3.6
      [09:26:31.829] GLSL version: OpenGL ES GLSL ES 3.00
      [09:26:31.829] GL vendor: VMware, Inc.
      [09:26:31.829] GL renderer: llvmpipe (LLVM 7.0, 128 bits)
      [09:26:31.829] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
                     GL_EXT_texture_compression_s3tc GL_EXT_occlusion_query_boolean
                     GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888
                     GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
                     GL_OES_element_index_uint GL_OES_fbo_render_mipmap
                     GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
                     GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float
                     GL_OES_texture_float_linear GL_OES_texture_half_float
                     GL_OES_texture_half_float_linear GL_OES_texture_npot
                     GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode
                     GL_OES_EGL_image GL_OES_depth_texture
                     GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
                     GL_OES_get_program_binary GL_APPLE_texture_max_level
                     GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
                     GL_EXT_frag_depth GL_NV_fbo_color_attachments
                     GL_OES_EGL_image_external GL_OES_EGL_sync
                     GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3
                     GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg
                     GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
                     GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil
                     GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug
                     GL_KHR_texture_compression_astc_ldr
                     GL_OES_depth_texture_cube_map GL_OES_required_internalformat
                     GL_OES_surfaceless_context GL_EXT_color_buffer_float
                     GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix
                     GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture
                     GL_EXT_copy_image GL_EXT_draw_buffers_indexed
                     GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp
                     GL_EXT_texture_border_clamp GL_KHR_context_flush_control
                     GL_OES_copy_image GL_OES_draw_buffers_indexed
                     GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp
                     GL_OES_texture_stencil8 GL_EXT_blend_func_extended
                     GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d
                     GL_OES_EGL_image_external_essl3 GL_EXT_clip_cull_distance
                     GL_EXT_disjoint_timer_query GL_MESA_shader_integer_functions
      [09:26:31.830] GL ES 2 renderer features:
                     read-back format: BGRA
                     wl_shm sub-image to texture: yes
                     EGL Wayland extension: no
      [09:26:31.830] Using gl renderer
      [09:26:31.880] Registered plugin API 'weston_windowed_output_api_v1' of size 16
      [09:26:31.881] Chosen EGL config details:
                     RGBA bits: 8 8 8 0
                     swap interval range: 1 - 1
      [09:26:31.950] x11 output 1024x600, window id 39845893
      [09:26:31.950] Output 'screen0' enabled with head(s) screen0
      [09:26:31.950] Compositor capabilities:
                     arbitrary surface rotation: yes
                     screen capture uses y-flip: yes
                     presentation clock: CLOCK_MONOTONIC_RAW, id 4
                     presentation clock resolution: 0.000000001 s
      [09:26:31.950] Loading module '/usr/lib/x86_64-linux-gnu/weston/desktop-shell.so'
      [09:26:31.951] launching '/usr/lib/weston/weston-keyboard'
      [09:26:31.952] launching '/usr/lib/weston/weston-desktop-shell'
      

      Best regards and thanks,
      Björn

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              johanhelsing Johan Helsing
              Reporter:
              baherwig Björn Herwig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes