Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed init with amd rx580sp #29

Open
glepnir opened this issue Oct 8, 2023 · 4 comments
Open

failed init with amd rx580sp #29

glepnir opened this issue Oct 8, 2023 · 4 comments

Comments

@glepnir
Copy link

glepnir commented Oct 8, 2023

Error though

Using output DVI-D-1
Opening libva device from DRM device /dev/dri/renderD128
[AVHWDeviceContext @ 0x55ee0f50c9c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
thread 'main' panicked at src/avhw.rs:34:13:
assertion `left == right` failed: failed to open /dev/dri/renderD128
  left: -5
 right: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@kRHYME7
Copy link

kRHYME7 commented Oct 8, 2023

❯ wl-screenrec
Using output eDP-1
Opening libva device from DRM device /dev/dri/renderD128
[AVHWDeviceContext @ 0x55f2e4b0b4c0] libva: /usr/lib/dri/i965_drv_video.so init failed
[AVHWDeviceContext @ 0x55f2e4b0b4c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
thread 'main' panicked at 'assertion failed: (left == right)
left: -5,
right: 0: failed to open /dev/dri/renderD128', src/avhw.rs:34:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

 CPU : Intel i7-10510U (8) @ 1.800GHz
 GPU : Intel CometLake-U GT2 [UHD Graphics]
 GPU Driver : i915

@russelltg
Copy link
Owner

@glepnir make sure you've followed your distribution's setup instructions for vaapi, then if that doesn't work please post the output of vainfo and let me know if wf-recorder -c h264_vaapi -d /dev/dri/card0 works correctly.

@kRHYME7 please open a new issue with your bug with the same info--your hardware is pretty different and I'd like to keep them separate.

@glepnir
Copy link
Author

glepnir commented Oct 25, 2023

vainfo output

Trying display: wayland
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Mesa Gallium driver 23.2.1-arch1.2 for AMD Radeon RX 580 Series (polaris10, LLVM 16.0.6, DRM 3.54, 6.5.8-arch1-1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

@russelltg
Copy link
Owner

Does wf-recorder -c h264_vaapi -d /dev/dri/card0 work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants