Do you know if the other supported distros are affected? This bug is so crippling I am near to considering switching to a card with more serious linux support.
the SimpleGL_exemple is not 100% correcte. it use egl nice... but don't look at extention.
AMD driver have EGL_EXT_plateform_gbm export, (it had to be EGL_KHR_plateform_gbm...) but don't export EGL_KHR_platform_x11... so it may not have support for X11 display.
the eglInitialize use the display... and crach if it is wrong
I test with gbm like here: (change the check to EGL_EXT_platform_gbm) (16.60 & 17.10 amdgpu-pro drivers)
and it work... I can draw surfaceless OpenGL without crach...
so 1 bug is it don't export good extention (EXT/KHR)
the other probleme is not supporting plateform_x11 with EGL.
But the OpenSource driver amdgpu work nice (test on fedora 25 with the default mesa-17.0 and amdgpu)
It is even possible tu use OpenCL stack from amdgpu-pro on top of the open source driver.
of kodi can use egl/gbm (and not the egl/x11) il look possible tu use amdgpu-pro.
to AMD dev:
- can you export EGL_KHR_platform_gbm (in place of EGL_EXT_platform_gbm)
- can you implemente the EGL_KHR_platform_x11
This extension (EGL_KHR_platform_x11) only enables the usage of the
new functionallity of EGL 1.5 (i.e. eglGetPlatformDisplay).
As seen by the code here , one can create an X11 egl window without using the extension...
It is just that EGL is not supported on the driver, as seen on base feature support here
eglGetPlatformDisplay if part of EGL 1.5 but is extension on EGL 1.4 this extention (EGL_EXT_platform_base) and it is expose by AMD drivers and work.
But the only extension tu use it is EGL_EXT_platform_gbm.
To be clear I know EGL is not "supported" but the EGL_EXT_platform_gbm is working.. and I use in on 2 AMD card (RX480 and Firepro) for offscreen rendering and AMDGPU-pro (test with 16.60 and 17.10).
I have the same problem (segfault amdgpu_query_gpu_info) on running KODI.
Ubuntu 16.04.2 (kernel 4.4)
driver: 17.10-450821 (and previous)
card: R9 380X
Ubuntu 16.04.3 (kernel 4.10)
problem still exists
The only solution I came up with was to remove the AMD driver. I only came to check the forum because I have a laptop with A10-8700P and even the windows drivers does not work anymore apparently!
You never posted what version of KODI you have installed. The latest stable version is 17.4. Have you posted this question at KODI Forum to see what they say?