vainfo discrete GPU not detected on wayland laptop with hybrid graphics

Đang mở
#253 1 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
linux
Lĩnh vực
cli, operating-systems

Hướng nghiên cứu

Trước tiên, hãy tái hiện hành vi vainfo đã được báo cáo trên thiết lập Wayland Intel/AMD lai được liệt kê, bằng cách so sánh lệnh mặc định với --display drm và --device /dev/dri/renderD129. Xác định xem vainfo có thể chọn renderer thay thế như yêu cầu hay không, và coi là hoàn tất khi có kết quả đáng tin cậy hoặc một giới hạn được ghi chép rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

System information
System:
  Host: laptop Kernel: 5.15.7-1-MANJARO x86_64 bits: 64 compiler: gcc
    v: 11.1.0 Desktop: sway 1.6.1 dm: N/A Distro: Manjaro Linux
    base: Arch Linux
CPU:
  Info: dual core model: Intel Core i7-4500U bits: 64 type: MT MCP
    arch: Haswell rev: 1 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
  Speed (MHz): avg: 1647 high: 1818 min/max: 800/3000 cores:
    1: 1536 2: 1440 3: 1796 4: 1818 bogomips: 19163
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics
    vendor: Hewlett-Packard driver: i915 v: kernel bus-ID: 00:02.0
    chip-ID: 8086:0a16
  Device-2: AMD Mars [Radeon HD 8730M]
    vendor: Hewlett-Packard FirePro M4100 driver: amdgpu v: kernel
    bus-ID: 03:00.0 chip-ID: 1002:6601
  Display: wayland server: N/A compositor: sway driver:
    loaded: amdgpu note: n/a (using device driver)
    resolution: <missing: xdpyinfo>
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2)
    v: 4.5 Mesa 21.2.5 compat-v: 3.0 direct render: Yes
Describe the issue

LIBVA_DRIVER_NAME=radeonsi vainfo gives:

kmsro: driver missing
libva error: /usr/lib/dri/radeonsi_drv_video.so init failed
vaInitialize failed with error code 2 (resource allocation failed),exit

While the driver is installed correctly and shows up in /usr/lib/dri/ and confirmed this with mpv and radeontop and intel_gpu_top. so the hardware decoding works on the AMDGPU, however, the application Parsec expects the VAAPI and for the radeonsi it crashes for some reason.

Is there a way to force the use of VAAPI on the other renderer, in this case renderD129?

Because it works with the following flags:
vainfo --display drm --device /dev/dri/card1 gives the correct vainfo output.

> vainfo --display drm --device /dev/dri/renderD129
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Mesa Gallium driver 21.2.5 for AMD Radeon HD 8500M / 8700M (OLAND, DRM 3.42.0, 5.15.7-1-MANJARO, LLVM 13.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
Ngôn ngữ chính
C
Star
244
Fork
175
Merge trung bình
9 ngày 7 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của intel/libva-utils

Tất cả issue của intel/libva-utils

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.