[Mesa-dev] [PATCH 2/2] loader: driver name radeonsi chosen from kernel name amdgpu
Jiang, Sonny
Sonny.Jiang at amd.com
Tue Sep 3 22:33:57 UTC 2019
Signed-off-by: Sonny Jiang <sonny.jiang at amd.com>
---
src/loader/loader.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/loader/loader.c b/src/loader/loader.c
index d8d71c30200..45834aa2082 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -457,6 +457,14 @@ loader_get_driver_for_fd(int fd)
return driver;
#endif
+ driver = loader_get_kernel_driver_name(fd);
+ if (driver && strcmp(driver, "amdgpu") == 0) {
+ free(driver);
+ driver = strdup("radeonsi");
+ return driver;
+ } else
+ free(driver);
+
if (!loader_get_pci_id_for_fd(fd, &vendor_id, &chip_id)) {
driver = loader_get_kernel_driver_name(fd);
if (driver)
--
2.17.1
More information about the mesa-dev
mailing list