<div dir="ltr">Hello Sir/Madam,<div><br></div><div>I am trying to render some stuff using DRM with Qt GUI application and decoded stream from Intel H/w decoder.</div><div><br></div><div>I have two applications one is for GUI content and another one is for decoded video streams. While doing this I am facing an issue that only singal process acquires DRM mastership while the other one is getting error. </div><div><br></div><div>While wondering how to get the privilege to render stuff I came across GET_MAGIC and AUTH_MAGIC.</div><div>Please refer to this text from the MAN page of DRM.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">All DRM devices provide authentication mechanisms. Only a DRM-Master is allowed to perform mode-setting or modify core state and only one user can be DRM-Master at a time. See </span><span style="box-sizing:border-box;font-weight:700;color:rgb(80,32,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><a href="https://www.commandlinux.com/man-page/man3/drmSetMaster.3.html" target="_blank" style="color:rgb(51,122,183);box-sizing:border-box;background-color:transparent;text-decoration-line:none">drmSetMaster</a></span><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">(3) for information on how to become DRM-Master and what the limitations are. Other DRM users can be authenticated to the DRM-Master via </span><span style="box-sizing:border-box;font-weight:700;color:rgb(80,32,0);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"><a href="https://www.commandlinux.com/man-page/man3/drmAuthMagic.3.html" target="_blank" style="color:rgb(51,122,183);box-sizing:border-box;background-color:transparent;text-decoration-line:none">drmAuthMagic</a></span><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px">(3) so they can perform buffer allocations and rendering. </span><a name="m_3527178621886524055_lbAF" style="color:rgb(51,122,183);box-sizing:border-box;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px"> </a><br></blockquote><div><br></div><div>As per this the client which is authenticated using magic code should be able to allocate buffer and rendering.</div><div>But while doing this I am not able to use drmModeSetPlane() for rendering stuff on display from an authenticated client application. It is giving me Permission Denied.</div><div><br></div><div>As per my understanding if the client is authenticated by using GET/AUTH_MAGIC it should be able to set a plane and render stuff on the display.</div><div><br></div><div>Is my understanding correct? Can we use this method to simultaneously render from two applications? </div><div><br></div><div>Thank you in advance.</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left:1px solid rgb(204,204,204)"><font color="#ff9900">Having Addiction of Self-Dependence</font></blockquote></div><div><b><font color="#3d85c6"><font color="#ff9900"></font><font color="#005000"></font><font color="#b08000"></font><font color="#ff9900"></font>Hardik Panchal</font></b></div><div><font color="#3d85c6" face="arial,helvetica,sans-serif">SDT - Satatya Devices</font></div><div><font color="#3d85c6" face="arial,helvetica,sans-serif">Contact No. : 9924472937</font></div><div><font color="#3d85c6" face="arial,helvetica,sans-serif">Email : <a href="mailto:hardik23398@gmail.com" target="_blank">hardik23398@gmail.com</a></font></div></div></div></div></div></div></div>