<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-05-13 12:39 GMT+08:00 Nicolai Hähnle <span dir="ltr"><<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">On 12.05.2016 20:20, Jammy Zhou wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">
<br>
<br>
2016-05-12 17:39 GMT+08:00 Michel Dänzer <<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a><br></span>
<mailto:<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>>>:<span class=""><br>
<br>
On 12.05.2016 17:58, Yu, Qiang wrote:<br>
> Oh, what a crazy idea. So you mean it can work like this?<br>
><br>
> 1. use the libgbm/gbm_dri/libEGL/libGLES from mesa which will load<br>
> radeonsi_dri.so<br>
><br>
> 2. libGL/amdgpu_dri.so from amdgpu-pro<br>
<br>
glamor uses libEGL/GBM and libGL, so this could only work with Mesa's<br>
libGL (or the GLVND one in the future). Can amdgpu_dri.so work with<br>
Mesa's libGL right now?<br>
<br>
<br>
I think amdgpu_dri.so is not completely compatible with Mesa's libGL<br>
(considering some special feature requirements for amdgpu-pro and Mesa's<br>
evolving). Another problem is that Mesa's libgbm cannot share necessary<br>
buffer attributes (such as tiling info, etc) with amdgpu_dri.so at this<br>
moment.<br>
</span></blockquote>
<br>
I think the long-term plan for such attributes is passing them via amdgpu_bo_metadata (which is defined in libdrm's amdgpu.h). This metadata is read and written directly through libdrm_amdgpu, and so libgbm doesn't have to be involved as far as I can see.<br></blockquote><div><br></div><div>Yes, amdgpu_bo_metadata is exactly one good place for such kind of information. But IMHO there are still several things to take care. Did I miss something?</div><div>- Same meta data definition ("umd_metadata" field) should be used by radeonsi and amdgpu-pro.</div><div>- We need some way to translate gbm_bo or EGLImage into amdgpu_bo, so that libdrm_amdgpu interfaces can be used.</div><div><br></div><div>Regards,</div><div>Jammy</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Or is there some use-case that I'm forgetting where libgbm _does_ need those attributes?<br>
<br>
Cheers,<br>
Nicolai<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">
<br>
<br>
Also, I'm afraid there might still be cases where amdgpu-pro supports<br>
new hardware before radeonsi, in which case amdgpu_dri.so needs to<br>
support GBM for glamor and EGL in general.<br>
<br>
<br>
IIRC radeonsi can support Southern Islands and later ASICs. I don't<br>
think amdgpu-pro can support pre-GCN products easily, given current<br>
amdgpu kernel driver support.<br>
<br>
<br>
<br>
Also note that Nvidia developers were talking about possibly creating an<br>
nvidia specific GBM backend recently on the wayland-devel mailing list.<br>
<br>
<br>
Will nvidia open source their code for GBM backend?<br>
<br>
<br>
<br>
--<br>
Earthling Michel Dänzer | <a href="http://www.amd.com" rel="noreferrer" target="_blank">http://www.amd.com</a><br>
Libre software enthusiast | Mesa and X developer<br>
_______________________________________________<br>
mesa-dev mailing list<br></span>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a> <mailto:<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a>><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><span class=""><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
</span></blockquote>
</blockquote></div><br></div></div>