qnixsynapse / chromium-vaapi

Mirror repository of chromium-vaapi from RPMFusion
https://rpmfusion.org
20 stars 1 forks source link

Error initialising vaapi on Gnome Wayland #7

Open darren-steven opened 6 years ago

darren-steven commented 6 years ago

I know this issue might be broader than just this app, but I think vaapi is working on other apps under wayland (vlc for example)

chromium-vaapi-70.0.3538.77-1.fc29.x86_64.rpm from rpmfusion koji Hardware Intel Skylake

$ chromium-vaapi libva error: va_getDriverName() failed with unknown libva error,driver_name=(null) [22955:22955:1116/104946.418564:ERROR:vaapi_wrapper.cc(328)] vaInitialize failed: unknown libva error

Works fine in Gnome X11 session (I see GPU decoder selected in chrome://media-internals for youtube)

vaainfo reports same info on wayland and X11

$ vainfo libva info: VA-API version 1.3.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib64/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_3 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.3 (libva 2.3.0) vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 2.2.0 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD

qnixsynapse commented 6 years ago

Hello. Chromium runs through XWayland unlike vlc. See link

I'm trying my best to compile chromium with wayland ozone but the build is still failing(complaining of a missing vaapi drm file). Unless any of this is solved, chromium on intel wayland won't able to decode in hardware.

Update: Try Launching Chromium with --use-gl=egl

megamaddu commented 6 years ago

That flag doesn't make a difference for me

qnixsynapse commented 6 years ago

@spicydonuts hmm. Anyway that PR is closed now. The only thing left to do is enabling ozone on chromium.

rathann commented 5 years ago

@spicydonuts hmm. Anyway that PR is closed now. The only thing left to do is enabling ozone on chromium.

It is closed, but not merged due to submitter inactivity: https://github.com/intel/intel-vaapi-driver/pull/369#issuecomment-440376357 . It needs to be resubmitted.

qnixsynapse commented 5 years ago

@rathann Yes. Also there is a bug report @ Bugzilla. It's been there since Fedora 26

ghost commented 5 years ago

Hello. Chromium runs through XWayland unlike vlc. See link

I'm trying my best to compile chromium with wayland ozone but the build is still failing(complaining of a missing vaapi drm file). Unless any of this is solved, chromium on intel wayland won't able to decode in hardware.

Update: Try Launching Chromium with --use-gl=egl

are there still problems with Ozone wayland?

mthomos commented 5 years ago

Any update on this issue ?

qnixsynapse commented 5 years ago

@mthomos I am providing chromium-ozone binaries for Fedora in copr. These come with vaapi disabled.

For intel vaapi driver there is still need for someone to add support for DRI3.

You can try building your own version of libva-intel-driver using these patches(for now): 1 and 2