Blank screen on msm_drm/Adreno with gbm_format=XBGR8888 GL-renderer and XRGB8888 Pixman-renderer
weston.ini, must set gbm-format to XBGR8888 or ABGR8888
[core]
gbm-format=XBGR8888
RunLog
root@localhost:/root/install/bin# ./weston --continue-without-input --tty=1
Date: 2022-11-01 UTC
[02:33:20.641] weston 10.0.2
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.2-4-gf88eed4e+
[02:33:20.641] Command line: ./weston --continue-without-input --tty=1
[02:33:20.641] OS: Linux, 4.19.81, #2 SMP PREEMPT Mon Oct 31 18:32:20 CST 2022, aarch64
[02:33:20.641] Flight recorder: enabled
[02:33:20.641] warning: XDG_RUNTIME_DIR "/usr/bin/weston_socket" is not configured
correctly. Unix access mode must be 0700 (current mode is 0777),
and must be owned by the user UID 0 (current owner is UID 0).
Refer to your distribution on how to get it, or
http://www.freedesktop.org/wiki/Specifications/basedir-spec
on how to implement it.
[02:33:20.641] Using config file '/root/install/bin/weston.ini'
[02:33:20.641] Output repaint window is 7 ms maximum.
[02:33:20.641] Loading module '/root/install/lib/aarch64-linux-gnu/libweston-10/drm-backend.so'
[02:33:20.645] initializing drm backend
[02:33:20.645] Trying libseat launcher...
[02:33:20.645] libseat: could not open seat
[02:33:20.645] Trying logind launcher...
[02:33:20.645] logind: cannot find systemd session for uid: 0 -61
[02:33:20.645] logind: cannot setup systemd-logind helper error: (No data available), using legacy fallback
[02:33:20.645] Trying weston_launch launcher...
[02:33:20.646] could not get launcher fd from env
[02:33:20.646] Trying direct launcher...
[02:33:20.652] using /dev/dri/card0
[02:33:20.652] DRM: supports atomic modesetting
[02:33:20.652] DRM: supports GBM modifiers
[02:33:20.652] DRM: supports picture aspect ratio
[02:33:20.652] Loading module '/root/install/lib/aarch64-linux-gnu/libweston-10/gl-renderer.so'
gbm_create_device(156): Info: backend name is: msm_drm
[02:33:20.661] EGL client extensions: EGL_EXT_client_extensions
EGL_KHR_client_get_all_proc_addresses EGL_EXT_platform_base
EGL_KHR_platform_android EGL_KHR_platform_wayland
EGL_KHR_platform_gbm
[02:33:20.665] EGL version: 1.5
[02:33:20.665] EGL vendor: Qualcomm Inc.
[02:33:20.665] EGL client APIs: OpenGL_ES
[02:33:20.665] EGL extensions: EGL_KHR_image EGL_KHR_image_base
EGL_QCOM_create_image EGL_KHR_lock_surface
EGL_KHR_lock_surface2 EGL_KHR_lock_surface3
EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
EGL_KHR_gl_texture_3D_image EGL_KHR_gl_renderbuffer_image
EGL_ANDROID_blob_cache EGL_KHR_create_context
EGL_KHR_surfaceless_context EGL_KHR_create_context_no_error
EGL_KHR_get_all_proc_addresses EGL_QCOM_lock_image2
EGL_EXT_protected_content EGL_KHR_no_config_context
EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_image_dma_buf_import
EGL_EXT_yuv_surface EGL_IMG_context_priority
EGL_WL_bind_wayland_display
EGL_WL_create_wayland_buffer_from_image
[02:33:20.665] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[02:33:20.665] warning: Disabling explicit synchronization dueto missing EGL_KHR_wait_sync extension
[02:33:20.665] EGL_KHR_surfaceless_context available
[02:33:20.666] GL version: OpenGL ES 3.2
[02:33:20.666] GLSL version: OpenGL ES GLSL ES 3.20
[02:33:20.666] GL vendor: Qualcomm
[02:33:20.666] GL renderer: Adreno (TM) 650
[02:33:20.666] GL extensions: GL_OES_EGL_image GL_OES_EGL_image_external
GL_OES_EGL_sync GL_OES_vertex_half_float
GL_OES_framebuffer_object GL_OES_rgb8_rgba8
GL_OES_compressed_ETC1_RGB8_texture
GL_AMD_compressed_ATC_texture
GL_KHR_texture_compression_astc_ldr
GL_KHR_texture_compression_astc_hdr
GL_OES_texture_compression_astc GL_OES_texture_npot
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra
GL_OES_texture_3D GL_EXT_color_buffer_float
GL_EXT_color_buffer_half_float GL_QCOM_alpha_test
GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture
GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float
GL_OES_texture_float_linear GL_OES_texture_half_float
GL_OES_texture_half_float_linear
GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode
GL_EXT_texture_format_sRGB_override GL_OES_element_index_uint
GL_EXT_copy_image GL_EXT_geometry_shader
GL_EXT_tessellation_shader GL_OES_texture_stencil8
GL_EXT_shader_io_blocks GL_OES_shader_image_atomic
GL_OES_sample_variables GL_EXT_texture_border_clamp
GL_EXT_EGL_image_external_wrap_modes
GL_EXT_multisampled_render_to_texture
GL_EXT_multisampled_render_to_texture2
GL_OES_shader_multisample_interpolation
GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed
GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer
GL_EXT_shader_framebuffer_fetch
GL_ARM_shader_framebuffer_fetch_depth_stencil
GL_OES_texture_storage_multisample_2d_array
GL_OES_sample_shading GL_OES_get_program_binary
GL_EXT_debug_label GL_KHR_blend_equation_advanced
GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering
GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box
GL_OES_standard_derivatives GL_OES_vertex_array_object
GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target
GL_EXT_sRGB_write_control GL_EXT_texture_norm16
GL_EXT_discard_framebuffer GL_OES_surfaceless_context
GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8
GL_KHR_no_error GL_EXT_debug_marker
GL_OES_EGL_image_external_essl3
GL_OVR_multiview_multisampled_render_to_texture
GL_EXT_buffer_storage GL_EXT_external_buffer
GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance
GL_EXT_protected_textures
GL_EXT_shader_non_constant_global_initializers
GL_QCOM_texture_foveated
GL_QCOM_texture_foveated_subsampled_layout
GL_QCOM_shader_framebuffer_fetch_noncoherent
GL_QCOM_shader_framebuffer_fetch_rate GL_EXT_memory_object
GL_EXT_memory_object_fd GL_EXT_EGL_image_array
GL_NV_shader_noperspective_interpolation
GL_KHR_robust_buffer_access_behavior GL_EXT_EGL_image_storage
GL_EXT_blend_func_extended GL_EXT_clip_control
GL_OES_texture_view GL_EXT_fragment_invocation_density
GL_QCOM_motion_estimation GL_QCOM_validate_shader_binary
GL_QCOM_YUV_texture_gather
[02:33:20.675] GL ES 3.2 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[02:33:20.685] warning: no input devices found, but none required as per configuration.
[02:33:20.685] DRM: head 'DSI-1' updated, connector 29 is connected, EDID make 'QCM', model 'unknown', serial '1'
[02:33:20.686] DRM: head 'DSI-1' found, connector 29 is connected, EDID make 'QCM', model 'unknown', serial '1'
[02:33:20.686] DRM: failed to create head for connector 46.
[02:33:20.686] DRM: head 'DP-1' updated, connector 56 is disconnected.
[02:33:20.687] DRM: head 'DP-1' found, connector 56 is disconnected.
[02:33:20.687] Registered plugin API 'weston_drm_output_api_v1' of size 24
[02:33:20.687] Registered plugin API 'weston_drm_virtual_output_api_v1' of size 48
[02:33:20.687] Color manager: no-op
[02:33:20.687] Output 'DSI-1' using color profile: built-in default sRGB SDR profile
[02:33:20.689] Chosen EGL config details: id: 5 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 0-1 type: win|pbf|swap_preserved vis_id: XBGR8888 (0x34324258)
[02:33:20.689] Output DSI-1 (crtc 210) video modes:
1920x1080@60.0, preferred, current, 148.5 MHz
[02:33:20.689] Output 'DSI-1' enabled with head(s) DSI-1
[02:33:20.689] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: no
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[02:33:20.690] Loading module '/root/install/lib/aarch64-linux-gnu/weston/desktop-shell.so'
[02:33:20.690] launching '/root/install/libexec/weston-keyboard'
[02:33:20.693] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[02:33:20.694] launching '/root/install/libexec/weston-desktop-shell'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
[02:33:21.611] Warning: computed repaint delay is insane: -2768931 msec
^C[02:33:24.672] caught signal 2
[02:33:24.672] destroy output while page flip pending
[02:33:24.672] panel surface gone
[02:33:24.672] background surface gone
[02:33:24.761] destroy output while page flip pending
[02:33:24.766] destroy output while page flip pending
[02:33:24.766] Output 'DSI-1' no heads left, disabling.
Run weston-info
root@localhost:/root/install/bin# ./weston-info
*** Please use wayland-info instead
*** weston-info is deprecated and will be removed in a future version
interface: 'wl_compositor', version: 4, name: 1
interface: 'wl_subcompositor', version: 1, name: 2
interface: 'wp_viewporter', version: 1, name: 3
interface: 'zxdg_output_manager_v1', version: 2, name: 4
xdg_output_v1
output: 15
name: 'DSI-1'
logical_x: 0, logical_y: 0
logical_width: 1920, logical_height: 1080
interface: 'wp_presentation', version: 1, name: 5
presentation clock id: 1 (CLOCK_MONOTONIC)
interface: 'zwp_relative_pointer_manager_v1', version: 1, name: 6
interface: 'zwp_pointer_constraints_v1', version: 1, name: 7
interface: 'zwp_input_timestamps_manager_v1', version: 1, name: 8
interface: 'wl_data_device_manager', version: 3, name: 9
interface: 'wl_shm', version: 1, name: 10
formats: 'XB4H'(0x48344258) 'AB4H'(0x48344241) 'XB30'(0x30334258) 'AB30'(0x30334241) 'XYUV'(0x56555958) 'YUYV'(0x56595559) 'NV12'(0x3231564e) 'YU12'(0x32315559) RGB565 XRGB8888 ARGB8888
interface: 'wayland_buffer_backend', version: 4, name: 11
interface: 'zwp_linux_dmabuf_v1', version: 3, name: 12
formats:
'XR24'(0x34325258), modifier: 0x00ffffffffffffff
'AR24'(0x34325241), modifier: 0x00ffffffffffffff
interface: 'weston_direct_display_v1', version: 1, name: 13
interface: 'weston_content_protection', version: 1, name: 14
interface: 'wl_output', version: 3, name: 15
x: 0, y: 0, scale: 1,
physical_width: 0 mm, physical_height: 0 mm,
make: 'QCM', model: 'unknown',
subpixel_orientation: unknown, output_transform: normal,
mode:
width: 1920 px, height: 1080 px, refresh: 60.000 Hz,
flags: current preferred
interface: 'zwp_input_panel_v1', version: 1, name: 16
interface: 'zwp_text_input_manager_v1', version: 1, name: 17
interface: 'xdg_wm_base', version: 3, name: 18
interface: 'weston_desktop_shell', version: 1, name: 19
interface: 'weston_screenshooter', version: 1, name: 20
Run weston-flower, no any show on the screen
root@localhost:/root/install/bin# ./weston-flower
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
^C
modetest will work ok on my screen
modetest -M msm_drm -D 0 -a -s 29@210:1920x1080x60x148500vid -P 100@210:1920x1080x60x148500vid -Ftiles
setting mode 1920x1080x60x148500vid-60.00Hz on connectors 29, crtc 210
testing 1920x1080@XR24 on plane 100, crtc 210
Edited by Sky