From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 89969] New: vaDriverInit fails with gallium/nouveau
driver
Date: Thu, 09 Apr 2015 15:14:13 +0000
Message-ID:
Bug ID
89969
Summary
vaDriverInit fails with gallium/nouveau driver
Product
Mesa
Version
git
Hardware
Other
OS
All
Status
NEW
Severity
normal
Priority
medium
Component
Drivers/DRI/nouveau
Assignee
nouveau@lists.freedesktop.org
Reporter
julien.isorce@gmail.com
QA Contact
nouveau@lists.freedesktop.org
Created attachment 114987 [details]
build: enable va with nouveau driver
When running vainfo:
libva info: VA-API version 0.37.1
libva info: va_getDriverName() returns 0
libva info: User requested driver 'gallium'
libva info: Trying to open /usr/local/lib/dri/gallium_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/local/lib/dri/gallium_drv_video.so init failed
libva info: va_openDriver() returns 2
vaInitialize failed with error code 2 (resource allocation failed),exit
"vl_screen_create" calls "dd_create_screen" which returns NULL because the
block
#if defined(GALLIUM_NOUVEAU)
if (strcmp(driver_name, "nouveau") == 0)
return pipe_nouveau_create_screen(fd);
else
#endif
is not compiled for va target. Indeed GALLIUM_NOUVEAU is not defined at this
point. See following patch.