<div dir="ltr"><div class="gmail_default" style="font-size:small">Andrew, I ran out of time today but will test the 2 submitted vaapi patches, although I only have 1 device, just to make sure single device works as expected still (which I am sure it does, but I like to verify whatever I can).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 26, 2023 at 1:55 AM Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</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">Because I have this dual-gpu laptop with intel and radeon (r600)<br>
decoding devices I tried to get second (mesa/r600) device going but<br>
init failed .. I looked into decoding example:<br>
<br>
<br>
<a href="https://gist.github.com/kajott/d1b29c613be30893c855621edd1f212e" rel="noreferrer" target="_blank">https://gist.github.com/kajott/d1b29c613be30893c855621edd1f212e</a><br>
<br>
and created attached patch<br>
<br>
now you can select your specific device with env variable:<br>
<br>
CIN_DRM_DEC=/dev/dri/renderD129 DRI_PRIME=1 LIBVA_DRIVER_NAME=r600 bin/cin<br>
<br>
in theory same treatment can be applied (with different variable name)<br>
to second instance of av_hwdevice_ctx_create (in hw encoder init) but<br>
I have no device to test it ...<br>
</blockquote></div>