-
Notifications
You must be signed in to change notification settings - Fork 180
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
How to request stride alignment when decoding #507
Comments
It would be great to hear from develovers on this issue. |
Yes, 64 align is ok for mpp. But for some resolution like 4096 width the hardware performance is lower then expected. So we use 256 odd align to keep the performace. |
1 similar comment
Yes, 64 align is ok for mpp. But for some resolution like 4096 width the hardware performance is lower then expected. So we use 256 odd align to keep the performace. |
256 align is also fine, the problem is when it is not 64 aligned, ie 16 or 32. So may be instead of requesting alignment, it is also feasible to bump the minimum alignment to 64. Just like @nyanmisaka s patch for h264 and av1, but for all decoders. |
Because not for vallhall but for <v10 mali gpus, 64 is the minium alignment requirement to import to gpu |
Yes. We need an option to override the MPP built-in Not only does Mali GPU require 64-aligned when importing textures through EGL, but also using RGA3 (RK3588) only supports 64-aligned for 10-bit formats such as NV15 and NV20. (decoder/nv15 -> rga3 -> nv12 -> encoder) |
When drm prime frames are imported with EGL, mesa expects 64 byte aligned frames, if not EGL does not import.
I am working around it by processing the decoded frames with RGA to 64 byte aligned strides but thats kind of non optimal.
Instead, is it possible to request from mpp a custom (ie: 64) byte alignment of strides when decoding?
Reference: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19620
The text was updated successfully, but these errors were encountered: