[Libva] [PATCH] driver_name_map: add nouveau and radeon for Mesa Gallium

Julien Isorce j.isorce at samsung.com
Fri Nov 27 00:53:45 PST 2015


This patch allows va_getDriverName to succeed.
It is useful in vaInitialize to select the vaapi
driver provided by Mesa Gallium:
lib/dri/gallium_drv_video.so

Signed-off-by: Julien Isorce <j.isorce at samsung.com>
---
 va/drm/va_drm_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/va/drm/va_drm_utils.c b/va/drm/va_drm_utils.c
index 71091fd..041be79 100644
--- a/va/drm/va_drm_utils.c
+++ b/va/drm/va_drm_utils.c
@@ -41,6 +41,8 @@ static const struct driver_name_map g_driver_name_map[] = {
     { "pvrsrvkm",   8, "pvr"    }, // Intel UMG PVR driver
     { "emgd",       4, "emgd"   }, // Intel ECG PVR driver
     { "hybrid",     6, "hybrid" }, // Intel OTC Hybrid driver
+    { "nouveau",    7, "gallium" }, // Mesa Gallium driver
+    { "radeon",     6, "gallium" }, // Mesa Gallium driver
     { NULL, }
 };
 
-- 
1.9.1



More information about the Libva mailing list