Hello everyone,
I was checking some information in KDE Info Center and noticed that the OpenGL (EGL) page shows some serious errors and fails to load the correct driver. I’m using the full Mesa stack with AMDGPU on a 5700 XT and this page had no errors when I checked at the beginning after installing and configuring the system as per the Arch Wiki. Probably some update has caused an issue and I have no idea what the problem is. Please see the output of eglinfo (I just included the beginning relevant part):
_amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.
EGL client extensions string:
EGL_EXT_client_extensions, EGL_EXT_device_base,
EGL_EXT_device_enumeration, EGL_EXT_device_query, EGL_EXT_explicit_device,
EGL_EXT_platform_base, EGL_EXT_platform_device, EGL_EXT_platform_wayland,
EGL_EXT_platform_x11, EGL_EXT_platform_xcb,
EGL_KHR_client_get_all_proc_addresses, EGL_KHR_debug,
EGL_KHR_platform_gbm, EGL_KHR_platform_wayland, EGL_KHR_platform_x11,
EGL_MESA_platform_gbm, EGL_MESA_platform_surfaceless
GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
EGL driver name: kms_swrast
EGL extensions string:
EGL_ANDROID_blob_cache, EGL_EXT_buffer_age, EGL_EXT_config_select_group,
EGL_EXT_create_context_robustness, EGL_EXT_image_dma_buf_import,
EGL_EXT_image_dma_buf_import_modifiers, EGL_EXT_pixel_format_float,
EGL_EXT_query_reset_notification_strategy, 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, EGL_KHR_image_base, EGL_KHR_image_pixmap,
EGL_KHR_no_config_context, EGL_KHR_reusable_sync,
EGL_KHR_surfaceless_context, EGL_KHR_wait_sync,
EGL_MESA_configless_context, EGL_MESA_gl_interop,
EGL_MESA_image_dma_buf_export, EGL_MESA_query_driver,
EGL_MESA_x11_native_visual_id
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.5-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL core profile extensions:
........
As you can see, the driver is some “kms_swrast” which is absolutely not how it should be and it’s using software rendering which means it’s broken.