<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
        {mso-style-name:x_x_msonormal;
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.ui-provider
        {mso-style-name:ui-provider;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><br>
<span class="ui-provider">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.
</span><br>
<br>
<o:p></o:p></p>
<p class="xxmsonormal">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.<br>
<br>
To build Mesa, I followed these steps after downloading the source code from <a href="https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/" target="_blank" title="https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/">
https://gitlab.freedesktop.org/mesa/mesa/-/tree/main/</a><o:p></o:p></p>
<p class="xxmsonormal">meson setup builddbg/ <br>
meson configure builddbg/ -Dbuildtype=debug<br>
meson install -C builddbg/<o:p></o:p></p>
<p class="xxmsonormal"><o:p> </o:p></p>
<p class="xxmsonormal">I have also tried without specifying build type.<o:p></o:p></p>
<p class="xxmsonormal"><o:p> </o:p></p>
<p class="xxmsonormal"> Can you share the steps you build mesa and how do you attach it to xorg? Thanks in advance for your help!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Joey<o:p></o:p></p>
</div>
</div>
</body>
</html>