<div dir="ltr">Sorry about that, I've only used git email maybe three times in my life :)<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 15, 2019 at 10:00 AM Jeremy Newton <<a href="mailto:alexjnewt@gmail.com">alexjnewt@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">Thanks Marek and Michel, see the updated patch below:<br>
<br>
The amdgpu dri is used for the closed source AMD driver. Since this driver<br>
does not implement multimedia, we fall back to radeonsi in mesa to do<br>
multimedia. This corrects the Gallium driver name for when it is set to<br>
amdgpu.<br>
<br>
This will allow dropping the amdgpu-pro specific GBM implementation in<br>
favour of Mesa's libgbm.<br>
<br>
Signed-off-by: Jeremy Newton <Jeremy.Newton at <a href="http://amd.com" rel="noreferrer" target="_blank">amd.com</a>><br>
Signed-off-by: Marek Olšák <marek.olsak at <a href="http://amd.com" rel="noreferrer" target="_blank">amd.com</a>><br>
Reviewed-by: Michel Dänzer <michel.daenzer at <a href="http://amd.com" rel="noreferrer" target="_blank">amd.com</a>><br>
---<br>
 src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c<br>
index 960d63b2c31..6e889539c92 100644<br>
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c<br>
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c<br>
@@ -194,6 +194,11 @@ pipe_loader_drm_probe_fd_nodup(struct pipe_loader_device **dev, int fd)<br>
    if (!ddev->base.driver_name)<br>
       goto fail;<br>
<br>
+   if (strcmp(ddev->base.driver_name, "amdgpu") == 0) {<br>
+      FREE(ddev->base.driver_name);<br>
+      ddev->base.driver_name = strdup("radeonsi");<br>
+   }<br>
+<br>
    struct util_dl_library **plib = NULL;<br>
 #ifndef GALLIUM_STATIC_TARGETS<br>
    plib = &ddev->lib;<br>
-- <br>
2.20.1<br>
<br>
</blockquote></div>