<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 1 Sep 2020 at 18:59, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Sep 1, 2020 at 9:10 AM Analabha Roy <<a href="mailto:hariseldon99@gmail.com" target="_blank">hariseldon99@gmail.com</a>> wrote:<br>
> Any suggestions on how to trace the config issues? Do I have to debug the va_openDriver() function?<br>
<br>
My guess, without reading any code, is that DRI_PRIME isn't doing what<br>
you want it to, and the nouveau driver is being handed an intel<br>
device. This does not work well. Fixing this will require tracing<br>
through the va winsys code which to figure out how it invokes the<br>
loader.<br>
<br>
<a href="https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/frontends/va/context.c#n111" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/frontends/va/context.c#n111</a><br>
<br>
For the DRM/rendernodes "platform", it will just take whatever fd it<br>
is given. vainfo appears to give it a fixed device:<br>
<br>
<a href="https://github.com/intel/libva-utils/blob/master/common/va_display_drm.c#L39" rel="noreferrer" target="_blank">https://github.com/intel/libva-utils/blob/master/common/va_display_drm.c#L39</a><br>
<br>
However it looks like you can pass in --device /dev/dri/renderD129 or<br>
whatever the right one is, which should pass in the right render node,<br>
as seen here:<br>
<br>
<a href="https://github.com/intel/libva-utils/blob/master/common/va_display.c#L80" rel="noreferrer" target="_blank">https://github.com/intel/libva-utils/blob/master/common/va_display.c#L80</a><br>
<br>
Note that I've never tried this, just did a few google searches to<br>
find this stuff.<br>
<br></blockquote><div><br></div><div>Brilliant googling. get_drm_device_name() does seem to do a crude argparse of "--device"</div><div><br></div><div>So I ran</div><div><br></div><div>$ DRI_PRIME=1 LIBVA_DRIVER_NAME=nouveau vainfo --device /dev/dri/renderD128<br><b><u>vainfo: unrecognized option '--device'<br></u></b>Show information from VA-API driver<br>Usage: vainfo --help<br>        --help print this message<br><br>Usage: vainfo [options]<br>Display options:<br>        --display display | help         Show information for the specified display, or the available display list <br><b><u>        --device device                  Set device name, only available under drm display<br></u></b></div><div><br></div><div><br></div><div>What does this mean?</div><div><br></div><div> Note that I also ran</div><div><br></div><div><br></div><div>$ nm -Dn -o /usr/lib/x86_64-linux-gnu/libva*|grep get_drm_device_name</div><div><br></div><div>Didn't get anything...</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">
Cheers,<br>
<br>
  -ilia<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Analabha Roy<br></div><div>Assistant Professor</div><div><a href="http://www.buruniv.ac.in/academics/department/physics" target="_blank">Department of Physics</a></div><div><a href="http://www.buruniv.ac.in/" target="_blank">The University of Burdwan</a></div><div>Golapbag Campus, Barddhaman 713104</div><div>West Bengal, India</div><div>Emails: <a href="mailto:daneel@utexas.edu" target="_blank">daneel@utexas.edu</a>, <a href="mailto:aroy@phys.buruniv.ac.in" target="_blank">aroy@phys.buruniv.ac.in</a>, <a href="mailto:hariseldon99@gmail.com" target="_blank">hariseldon99@gmail.com</a><br><div><font face="tahoma, sans-serif">Webpage: <a href="http://www.ph.utexas.edu/~daneel/" target="_blank">http://www.ph.utexas.edu/~daneel/</a></font></div></div></div></div></div></div></div>