X Crashes after Installing Mesa Driver

Chen, Jinyi (Joey) Jinyi.Chen at amd.com
Wed Jul 12 15:55:28 UTC 2023


[AMD Official Use Only - General]

Hi,

I have built and install mesa driver. I install it to system so xorg boots up with it. But I am encountering black screens and flashes.


I first did a local install to a directory. It successfully functions with applications like glxinfo and glxgears when I export the LD_LIBRARY_PATH to the custom Mesa driver I created. But LD_LIBRARY_PATH seemed to be set after xorg loads (even when I put it in /etc/environment). So after I did a system install instead. However, when I try to initiate the X server using the debug Mesa driver, I encounter a flickering black screen. I have experimented with various versions of Mesa, including the main branch, 23.0, and 23.1. It works without installing amdgpu but does not work after installing amdgpu. My os is Ubuntu 22.04.

To build Mesa, I followed these steps after downloading the source code from https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/

meson setup builddbg/
meson configure builddbg/ -Dbuildtype=debug
meson install -C builddbg/



I have also tried without specifying build type.



 Can you share the steps you build mesa and how do you attach it to xorg? Thanks in advance for your help!


Best,
Joey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20230712/095e7afa/attachment.htm>


More information about the mesa-dev mailing list