<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content=IE=5 http-equiv=X-UA-Compatible>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
TD {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
LI {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
BODY {
        FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN: 10px; LINE-HEIGHT: 1.4
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Dear all,</P>
<P> </P>
<P>Several weeks ago I started to develop an xclient application with dri3 functionality usage.</P>
<P><SPAN style="FONT-FAMILY: Arial">Before that I've built the xwindow system including intel video-driver by myself(sources were cloned from freedesktop.org) and launched it instead of my OS xwindow system(command-line boot).</SPAN></P>
<P><SPAN style="FONT-FAMILY: Arial">During build I was following </SPAN><SPAN style="FONT-FAMILY: Arial"><A href="http://www.x.org/wiki/Building_the_X_Window_System/#index3h2" target=_blank>this guideline</A>.</SPAN></P>
<P><SPAN style="FONT-FAMILY: Arial">x-server was launched in the following way:</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">sudo %path-to-my-Xorg%/Xorg -ac -noreset : 1 vt4</SPAN></P>
<P><SPAN style="FONT-FAMILY: Arial"></SPAN> </P>
<P>The following code from my application tries to open the dri3-connection:</P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">xcb_connection_t* xcb_conn = xcb_connect(display, &scr);</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">xcb_dri3_open_cookie_t open_cookie = xcb_dri3_open(xcb_conn, root, None);<BR>xcb_generic_error_t *e = NULL;<BR>xcb_dri3_open_reply_t* open_reply = xcb_dri3_open_reply(xcb_conn, open_cookie, &e); // got NULL here<BR>if (open_reply && open_reply->nfd == 1)</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">{<BR>    int fd = xcb_dri3_open_reply_fds(xcb_conn, open_reply)[0];</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New">}</SPAN></P>
<P> </P>
<P>Digging in intel-driver(that my xserver was using) and mesa/drm source code helped to figure out what had failed.</P>
<P>Intel-driver couldn't pass the drm-authentication (drmAuthMagic() has failed).<BR></P>
<P>Several times I tried to rebuild a latest version of xserver, driver and whole mesa but still have the same result.</P>
<P>Run of test-application in mesa/drm(auth) caused to the same problem.</P>
<P> </P>
<P>Log of xserver is attached.</P>
<P>I will be grateful for any recommendations.</P>
<P>Thanks</P>
<P> </P>
<P>WBR, Andrey</P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:AWR5WPSSCJT5@namo.co.kr"></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.w1.samsung.net/mailcheck/SeenTimeChecker?do=8fbbb8c66d1835ec188acf67e7b2d858dcd57969fb787e3ca4ebb504b8b04755f549102382dedabcedc9f5ef49d53117695ddd4e0ce9fc6d96ae86e7fda1beb5d6600ca1ffd9c3fdf6ddc9ea09393184cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>