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
[Bug]: vaCreateSurfaces (import mode) failed, VA error: resource allocation failed #1498
Comments
VA TRACE |
vainfo output:
|
It is no the config causing failure, but the second attrib in vaCreateSurface which takes an unsupported modifier named 'I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC'. Chromium handles an external surface buffer for vpp, @stolk is it possible to set a correcct attrib value that driver supported in caps? @XinfengZhang Or do we need to support all drm_fourcc format in SetExternalSurfaceTileFormat in driver? |
Auto Created VSMGWL-57653 for further analysis. |
I've been unable to track where this modifier is introduced. If I search the chromium r105 code base for it, I only get a hit on the definition, not a hit on its use?
I wonder if one of the chromium build dependencies injected this. I'll do some more investigation into where this modifier originates from. So far, this is unclear to me. |
It could be that this modifier is pulled in by mesa? |
Using modifiers is not a bug in itself, it's the default behaviour to achieve best performance for any given architecture. But if you have multiple components and one of them doesn't support modifiers then they need to be disabled by whoever has created the buffer/surface. The creator of a buffer may not even be aware they are getting modifiers. It's not something you explicitly request, only something you need to explicitly disable sometimes. |
Still trying to track the origin of the modifier, but I did manage to trace the callstack where the modifier is rejected:
To do: track origin of this external surface, and find out why chromium r104 does not use the modifier, but chromium r105 does. |
I'm facing the same on Arch, I regularly rebuild chromium and validate vaapi decode. Interestingly, even the last known working binary no longer works since some set of software patches in mid to late October.
I have tested rolling back the intel-media-driver, mesa, and a number of wild guesses all with the same result. But as I know this build worked at least on Sept. 26 (built from chromium master Sep 24) I am not lead to believe the modifier is inferred at build time, and also am very curious to find out where it originates. |
@cttipton @KingRayleigh What kernel versions are you on? I am seeing this on 5.19.0 linux kernel. |
This is fixed by:
Using that, I get hardware accelerated H264 decoding, as verified with |
Which component impacted?
Decode
Is it regression? Good in old configuration?
104.0.5112.101 debian package, provided by Intel: works.
105.0.5195.19-hwacc snap package, fails in vaCreateSurfaces().
What happened?
Build chromium, enable vaapi, and then run chromium on a wayland desktop.
Instead of using HW decoding, chromium shows this libva error:
vaCreateSurfaces (import mode) failed, VA error: resource allocation failed
I traced this down to an unsupported modifier: I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC
Full write up here: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1990010
NOTE: HW decoding in chromium does work when on X11 desktop.
NOTE: I've seen this on both Alderlake and Tigerlake systems.
NOTE: va trace is available here: https://launchpadlibrarian.net/625015064/va.log.161716.thd-0x00021d72
What's the usage scenario when you are seeing the problem?
Web browser
What impacted?
Chromium on wayland.
Chromium snap version: 105.0.5195.19-hwacc
Debug Information
libva 2.15.0
gmmlib 22.2.0
media-driver 22.4.4
/dev/dri/card0 Alderlake iGPU
Do you want to contribute a patch to fix the issue?
No response
The text was updated successfully, but these errors were encountered: