Hello,

I tested the proposed 0006-ExportSurfaceHandle-allocate-bo.patch on an
Intel Broadwell GPU and can confirm successful H.264 hardware decoding in
Brave (Chromium-based).

*Test environment:*

   -

   Hardware: Apple MacBook Air 13-inch (Early 2015)
   -

   CPU: Intel Core i5-5250U (Broadwell)
   -

   GPU: Intel HD Graphics 6000
   -

   Distribution: Fedora 45 KDE Plasma (Wayland)
   -

   VA-API driver: libva-intel-driver 2.4.1^20241027gitd30e013-4.fc45
   -

   Patch: 0006-ExportSurfaceHandle-allocate-bo.patch from this bug report

*Build and test procedure:*

I rebuilt the RPM Fusion libva-intel-driver package from its existing
source revision, adding the proposed patch after the distribution's
existing patches.

The patch applied cleanly using rpmbuild -bp with --fuzz=0, and the RPM
compiled successfully.

I extracted the patched i965_drv_video.so and loaded it using
LIBVA_DRIVERS_PATH and LIBVA_DRIVER_NAME=i965, without replacing the
system-installed driver.

*Results:*

Before applying the patch:

   -

   Brave failed to export VA-API surfaces.
   -

   Error: vaExportSurfaceHandle failed, VA error: invalid VASurfaceID
   -

   Chromium fell back to FFmpegVideoDecoder (software decoding).

After applying the patch:

   -

   Patched driver initialized successfully.
   -

   H.264 hardware decoding profiles were available.
   -

   Brave reported kVideoDecoderName = "VaapiVideoDecoder".
   -

   intel_gpu_top showed activity on the Video engine during H.264 YouTube
   playback.

This confirms that the proposed patch also works on Broadwell / Intel HD
Graphics 6000 in my configuration, in addition to the Sandy Bridge hardware
already tested by the reporter.

The patched driver was tested locally without installing the custom RPM
system-wide.

Thank you for the patch!

Best regards,
Dido

Reply via email to