mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
pipe-loader: use radeonsi for MM if amdgpu dri is used
The amdgpu dri is used for the closed source AMD driver. Since this driver does not implement multimedia, we fall back to radeonsi in mesa to do multimedia. This corrects the dri driver name for when it is set to amdgpu. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (v1) Signed-off-by: Jeremy Newton <Jeremy.Newton@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
1a25980c46
commit
666ea30017
1 changed files with 9 additions and 0 deletions
|
|
@ -194,6 +194,15 @@ pipe_loader_drm_probe_fd_nodup(struct pipe_loader_device **dev, int fd)
|
|||
if (!ddev->base.driver_name)
|
||||
goto fail;
|
||||
|
||||
/* For the closed source AMD OpenGL driver, we want libgbm to load
|
||||
* "amdgpu_dri.so", but we want Gallium multimedia drivers to load
|
||||
* "radeonsi". So change amdgpu to radeonsi for Gallium.
|
||||
*/
|
||||
if (strcmp(ddev->base.driver_name, "amdgpu") == 0) {
|
||||
FREE(ddev->base.driver_name);
|
||||
ddev->base.driver_name = strdup("radeonsi");
|
||||
}
|
||||
|
||||
struct util_dl_library **plib = NULL;
|
||||
#ifndef GALLIUM_STATIC_TARGETS
|
||||
plib = &ddev->lib;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue